forked from SuperTux/supertux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding prebuilding for SDL2 and SDL2 image
- Loading branch information
Showing
2 changed files
with
44 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
[ ! -d "build_SDL2" ] && mkdir "build_SDL2" | ||
[ ! -d "build_SDL2_image" ] && mkdir "build_SDL2_image" | ||
export ROOT=${PWD} | ||
export PKG_CONFIG_PATH=${ROOT}/SDL2_build/${ARCH_TRIPLET} | ||
export SDL2_CONFIG=${PKG_CONFIG_PATH}/bin/sdl2-config | ||
git clone https://github.com/libsdl-org/SDL SDL2 | ||
cd SDL2 | ||
git reset c49ecf6f7c10b668ebd87b89dfc3c7bfd215cb75 --hard | ||
cd ../build_SDL2 | ||
../SDL2/configure --enable-video-mir --disable-mir-shared --disable-video-x11 --enable-shared --disable-atomic --disable-joystick --disable-video-dummy --disable-video-dummy --disable-video-opengl --disable-video-opengles1 --enable-video-opengles2 --disable-dbus --disable-ibus --disable-diskaudio --disable-dummyaudio --disable-oss --disable-alsa --disable-esd --disable-arts --disable-nas --disable-sndio --enable-pulseaudio --disable-pulseaudio-shared --host=${ARCH_TRIPLET} --prefix=${ROOT}/SDL2_build/${ARCH_TRIPLET} | ||
make -j4 | ||
make install | ||
|
||
echo "DONE SDL2" | ||
|
||
echo "Building SDL Image" | ||
cd .. | ||
git clone https://github.com/libsdl-org/SDL_image SDL2_image | ||
cd SDL2_image | ||
git reset a21dc0ae4e2bec35be108ffd1040969fce5a3ec0 --hard | ||
cd ../build_SDL2_image | ||
../SDL2_image/configure --disable-shared --enable-static --disable-bmp --disable-gif --disable-jpg --disable-lbm --disable-pcx --enable-png --disable-png-shared --disable-pnm --disable-tga --disable-tif --disable-xcf --disable-xpm --disable-xv --disable-webp --host=${ARCH_TRIPLET} --prefix=${ROOT}/SDL2_build/${ARCH_TRIPLET} | ||
make -j4 | ||
make install | ||
|
||
echo "DONE SDL2 image" |