diff --git a/satellites/sdl2.sat b/satellites/sdl2.sat index e6ef84c..47052bc 100644 --- a/satellites/sdl2.sat +++ b/satellites/sdl2.sat @@ -1,7 +1,4 @@ -# The configure script's --disable-static flag is broken. - -#import 'compile/configure' -import 'compile/cmake' +import 'compile/configure' name=SDL2 version=2.0.4 @@ -9,16 +6,25 @@ update_url='https://libsdl.org/download-2.0.php' dlextract "https://libsdl.org/release/$name-$version.tar.gz" \ '44fc4a023349933e7f5d7a582f7b886e' +dlfile "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/libsdl2/files/libsdl2-$version-static-libs.patch" \ + '75b16a68afd2487421a815ec24871da0' header_end cd "$name-$version" +patch -p1 -i ../libsdl2-$version-static-libs.patch +./autogen.sh -# Fix paths -sed -i -e "/DESTINATION/s/bin/\"$(safe_sed "$dir_bindir")\"/" \ - -e "/DESTINATION/s/lib\${LIB_SUFFIX}/$(safe_sed "$dir_libdir")/" \ - -e "/DESTINATION/s/share/$(safe_sed "$dir_datadir")/" CMakeLists.txt - -#compile_configure -- --disable-static -compile_cmake -- -DSDL_STATIC=OFF +compile_configure -- --disable-static \ + --disable-alsa-shared \ + --disable-esd-shared \ + --disable-pulseaudio-shared \ + --disable-arts-shared \ + --disable-nas-shared \ + --disable-sndio-shared \ + --disable-wayland-shared \ + --disable-mir-shared \ + --disable-x11-shared \ + --disable-directfb-shared \ + --disable-fusionsound-shared # vim:set tabstop=4 shiftwidth=4 syntax=sh et: diff --git a/satellites/sdl2_image.sat b/satellites/sdl2_image.sat new file mode 100644 index 0000000..b0ac776 --- /dev/null +++ b/satellites/sdl2_image.sat @@ -0,0 +1,18 @@ +import 'compile/configure' + +name=SDL2_image +version=2.0.1 +update_url='https://www.libsdl.org/projects/SDL_image/' + +dlextract "https://www.libsdl.org/projects/SDL_image/release/$name-$version.tar.gz" \ + 'd94b94555ba022fa249a53a021dc3606' +header_end + +cd "$name-$version" +compile_configure -- --disable-static \ + --disable-jpg-shared \ + --disable-png-shared \ + --disable-tif-shared \ + --disable-webp-shared + +# vim:set tabstop=4 shiftwidth=4 syntax=sh et: diff --git a/satellites/sdl2_mixer.sat b/satellites/sdl2_mixer.sat new file mode 100644 index 0000000..5829d6b --- /dev/null +++ b/satellites/sdl2_mixer.sat @@ -0,0 +1,21 @@ +import 'compile/configure' + +name=SDL2_mixer +version=2.0.1 +update_url='https://www.libsdl.org/projects/SDL_mixer/' +update_names="$name-$version.tar.gz" + +dlextract "https://www.libsdl.org/projects/SDL_mixer/release/$name-$version.tar.gz" \ + 'c6c4f556d4415871f526248f5c9a627d' +header_end + +cd "$name-$version" +compile_configure -- --disable-static \ + --disable-music-mod-modplug-shared \ + --disable-music-mod-mikmod-shared \ + --disable-music-midi-fluidsynth-shared \ + --disable-music-ogg-shared \ + --disable-music-flac-shared \ + --disable-music-mp3-smpeg-shared + +# vim:set tabstop=4 shiftwidth=4 syntax=sh et: diff --git a/satellites/teeworlds.sat b/satellites/teeworlds.sat index 900e6e9..507cb96 100644 --- a/satellites/teeworlds.sat +++ b/satellites/teeworlds.sat @@ -16,7 +16,7 @@ convert other/icons/Teeworlds.ico "$name.png" sed -i -e "/CONF_RELEASE/arelease_settings.cc.flags:Add('$CFLAGS')\nrelease_settings.link.flags:Add('$LDFLAGS')" bam.lua # Fix data path -sed -i -e "s/usr\/share\/$name\/data/$(safe_sed "$dir_prefix/$dir_datadir/$name")/" src/engine/shared/storage.cpp +sed -i -e "s/\/usr\/share\/$name\/data/$(safe_sed "$dir_sysroot/$dir_prefix/$dir_datadir/$name")/" src/engine/shared/storage.cpp bam-0.4 $BAMFLAGS game_release