summaryrefslogtreecommitdiff
path: root/Ports/gltron/package.sh
diff options
context:
space:
mode:
authorGrigoris Pavlakis <grigpavl@ece.auth.gr>2022-06-13 16:26:37 +0300
committerLinus Groh <mail@linusgroh.de>2022-06-20 23:24:45 +0100
commit2fa907b31a4172b7cbe3cc67e63dc590e9f3a23b (patch)
treef61527aa570e4711165ea30101ab568723c2b3d7 /Ports/gltron/package.sh
parentc98a27593168d6f23c810681e6e28b248682e31d (diff)
downloadserenity-2fa907b31a4172b7cbe3cc67e63dc590e9f3a23b.zip
Ports/gltron: Use sdl12-compat instead of SDL2
Diffstat (limited to 'Ports/gltron/package.sh')
-rwxr-xr-xPorts/gltron/package.sh38
1 files changed, 14 insertions, 24 deletions
diff --git a/Ports/gltron/package.sh b/Ports/gltron/package.sh
index 29a84f4501..e3e1c4cc3a 100755
--- a/Ports/gltron/package.sh
+++ b/Ports/gltron/package.sh
@@ -1,28 +1,18 @@
#!/usr/bin/env -S bash ../.port_include.sh
-port=gltron
-useconfigure="true"
-use_fresh_config_sub=true
-version="0.70"
-files="http://mirror.sobukus.de/files/grimoire/games-arcade-2d/gltron-${version}-source.tar.gz gltron-${version}-source.tar.gz e0c8ebb41a18a1f8d7302a9c2cb466f5b1dd63e9a9966c769075e6b6bdad8bb0"
-auth_type=sha256
-depends=("libpng" "SDL2_sound" "SDL2" "zlib")
+port='gltron'
+useconfigure='true'
+use_fresh_config_sub='true'
+version='0.70'
+files="http://mirror.sobukus.de/files/grimoire/games-arcade-2d/gltron-${version}-source.tar.gz gltron-${version}.tar.gz e0c8ebb41a18a1f8d7302a9c2cb466f5b1dd63e9a9966c769075e6b6bdad8bb0"
+auth_type='sha256'
+depends=("libpng" "glu" "SDL_sound" "sdl12-compat" "zlib")
configopts=(
"--disable-warn"
+ "--with-sdl-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
+ "CPPFLAGS=-I${SERENITY_INSTALL_ROOT}/usr/include/LibGL"
+ "LIBS=-lm -lSDL_sound"
)
-
-launcher_name="GLTron"
-launcher_category="Games"
-launcher_command="/usr/local/bin/gltron"
-icon_file="art/default/gltron.png"
-
-pre_configure() {
- export CPPFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/include/LibGL -I${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2"
- export LIBS="-lSDL2_sound"
- export SDL_CONFIG="${SERENITY_INSTALL_ROOT}/usr/local/bin/sdl2-config"
-}
-
-post_configure() {
- unset CPPFLAGS
- unset LIBS
- unset SDL_CONFIG
-}
+launcher_name='GLTron'
+launcher_category='Games'
+launcher_command='/usr/local/bin/gltron'
+icon_file='art/default/gltron.png'