From 18249b599634be4162b4ddbb32f002c75ee07060 Mon Sep 17 00:00:00 2001 From: Larkin <45925460+larb0b@users.noreply.github.com> Date: Tue, 24 Sep 2019 02:56:39 -0400 Subject: 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. --- Ports/SDL2/SDL2.sh | 16 ---------------- Ports/SDL2/package.sh | 12 ++++++++++++ 2 files changed, 12 insertions(+), 16 deletions(-) delete mode 100755 Ports/SDL2/SDL2.sh create mode 100755 Ports/SDL2/package.sh (limited to 'Ports/SDL2') 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 +} -- cgit v1.2.3