summaryrefslogtreecommitdiff
path: root/Ports/SDL2
diff options
context:
space:
mode:
Diffstat (limited to 'Ports/SDL2')
-rwxr-xr-xPorts/SDL2/SDL2.sh16
-rwxr-xr-xPorts/SDL2/package.sh12
2 files changed, 12 insertions, 16 deletions
diff --git a/Ports/SDL2/SDL2.sh b/Ports/SDL2/SDL2.sh
deleted file mode 100755
index f21cc24604..0000000000
--- a/Ports/SDL2/SDL2.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-PORT_DIR=SDL
-fetch() {
- run_fetch_git "https://github.com/SerenityOS/SDL"
-}
-configure() {
- CMAKEOPTS="-DPULSEAUDIO=OFF"
- run_configure_cmake
-}
-build() {
- run_make
-}
-install() {
- run_make_install
-}
-. ../.port_include.sh
diff --git a/Ports/SDL2/package.sh b/Ports/SDL2/package.sh
new file mode 100755
index 0000000000..a1a2c0a8f4
--- /dev/null
+++ b/Ports/SDL2/package.sh
@@ -0,0 +1,12 @@
+#!/bin/bash ../.port_include.sh
+port=SDL2
+version=serenity-git
+workdir=SDL-master-serenity
+useconfigure=true
+curlopts="-L"
+files="https://github.com/SerenityOS/SDL/archive/master-serenity.tar.gz SDL2-git.tar.gz"
+configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_ROOT/Toolchain/CMakeToolchain.txt -DPULSEAUDIO=OFF"
+
+configure() {
+ run cmake $configopts
+}