summaryrefslogtreecommitdiff
path: root/Ports/sdl12-compat/package.sh
diff options
context:
space:
mode:
authorGrigoris Pavlakis <grigpavl@ece.auth.gr>2022-05-21 21:33:02 +0300
committerLinus Groh <mail@linusgroh.de>2022-05-29 18:30:39 +0100
commit3c1f899050559472542abb719c3233a4adbaa2bc (patch)
tree9c999a4b364ab9b569f7a91769b212b6e931f7e1 /Ports/sdl12-compat/package.sh
parent0c3db153cf252a26df30fd65209e2f37344c06ba (diff)
downloadserenity-3c1f899050559472542abb719c3233a4adbaa2bc.zip
Ports: Add SDL2 compatibility layer port (sdl12-compat)
Diffstat (limited to 'Ports/sdl12-compat/package.sh')
-rwxr-xr-xPorts/sdl12-compat/package.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/Ports/sdl12-compat/package.sh b/Ports/sdl12-compat/package.sh
new file mode 100755
index 0000000000..5976d865ff
--- /dev/null
+++ b/Ports/sdl12-compat/package.sh
@@ -0,0 +1,28 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port=sdl12-compat
+version=1.2.52
+workdir=sdl12-compat-release-${version}
+useconfigure=true
+files="https://github.com/libsdl-org/sdl12-compat/archive/refs/tags/release-${version}.tar.gz ${port}-${version}.tar.gz 5bd7942703575554670a8767ae030f7921a0ac3c5e2fd173a537b7c7a8599014"
+auth_type=sha256
+
+configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=${SERENITY_INSTALL_ROOT}/usr/local/" "-B./build")
+depends=("SDL2")
+
+configure() {
+ run cmake "${configopts[@]}"
+}
+
+build() {
+ (
+ cd ${workdir}/build/
+ make "${makeopts[@]}"
+ )
+}
+
+install() {
+ (
+ cd ${workdir}/build/
+ make install
+ )
+}