Browse Source

Fixed SDL2 and added image and mixer

master
mid-kid 8 years ago
parent
commit
8a49ea215a
  1. 28
      satellites/sdl2.sat
  2. 18
      satellites/sdl2_image.sat
  3. 21
      satellites/sdl2_mixer.sat
  4. 2
      satellites/teeworlds.sat

28
satellites/sdl2.sat

@ -1,7 +1,4 @@
# The configure script's --disable-static flag is broken. import 'compile/configure'
#import 'compile/configure'
import 'compile/cmake'
name=SDL2 name=SDL2
version=2.0.4 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" \ dlextract "https://libsdl.org/release/$name-$version.tar.gz" \
'44fc4a023349933e7f5d7a582f7b886e' '44fc4a023349933e7f5d7a582f7b886e'
dlfile "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/libsdl2/files/libsdl2-$version-static-libs.patch" \
'75b16a68afd2487421a815ec24871da0'
header_end header_end
cd "$name-$version" cd "$name-$version"
patch -p1 -i ../libsdl2-$version-static-libs.patch
./autogen.sh
# Fix paths compile_configure -- --disable-static \
sed -i -e "/DESTINATION/s/bin/\"$(safe_sed "$dir_bindir")\"/" \ --disable-alsa-shared \
-e "/DESTINATION/s/lib\${LIB_SUFFIX}/$(safe_sed "$dir_libdir")/" \ --disable-esd-shared \
-e "/DESTINATION/s/share/$(safe_sed "$dir_datadir")/" CMakeLists.txt --disable-pulseaudio-shared \
--disable-arts-shared \
#compile_configure -- --disable-static --disable-nas-shared \
compile_cmake -- -DSDL_STATIC=OFF --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: # vim:set tabstop=4 shiftwidth=4 syntax=sh et:

18
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:

21
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</A>"
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:

2
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 sed -i -e "/CONF_RELEASE/arelease_settings.cc.flags:Add('$CFLAGS')\nrelease_settings.link.flags:Add('$LDFLAGS')" bam.lua
# Fix data path # 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 bam-0.4 $BAMFLAGS game_release

Loading…
Cancel
Save