summaryrefslogtreecommitdiff
path: root/Ports/SDL2
diff options
context:
space:
mode:
authorLarkin <45925460+larb0b@users.noreply.github.com>2019-09-24 02:56:39 -0400
committerAndreas Kling <awesomekling@gmail.com>2019-09-24 08:56:39 +0200
commit18249b599634be4162b4ddbb32f002c75ee07060 (patch)
treedd7c700f0f0833ffffc782995da3108d82c43a3e /Ports/SDL2
parentd5f1c57fe2cc7cf863b4c99b4d11460f3b547c2c (diff)
downloadserenity-18249b599634be4162b4ddbb32f002c75ee07060.zip
Ports: Switch to new ports system (#594)
Much redundancy is removed from package scripts with this system. It also supports simple dependency management, uninstalling (through BSD ports style plist files), cleaning up after itself (with clean, clean_dist, clean_all commands), etc.
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
+}