2011-12-01 17:41:27 +01:00
#!/bin/bash
2012-03-08 20:45:55 +01:00
. $( dirname $0 ) /environment.sh
2012-05-25 01:23:21 +02:00
pushd $KIVYIOSROOT /src/SDL/Xcode-iOS/SDL
xcodebuild -project SDL.xcodeproj -target libSDL -configuration Release -sdk iphoneos$SDKVER
2011-12-01 17:41:27 +01:00
popd
2011-12-02 16:28:03 +01:00
2012-10-15 00:23:28 +02:00
cp src/SDL/Xcode-iOS/SDL/build/Release-iphoneos/libSDL2.a $BUILDROOT /lib
2012-03-08 20:45:55 +01:00
cp -a src/SDL/include $BUILDROOT /include/SDL
2012-07-21 16:54:24 +02:00
cat>$BUILDROOT /pkgconfig/sdl.pc<<EOF
# sdl pkg-config source file
prefix = $BUILDROOT
exec_prefix = \$ { prefix}
libdir = \$ { exec_prefix} /lib
includedir = \$ { prefix} /include
Name: sdl
Description: Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
Version: 1.2.15
Requires:
Conflicts:
Libs: -L\$ { libdir} -lSDLmain -lSDL -Wl,-framework,Cocoa
Libs.private: \$ { libdir} /libSDLmain.a \$ { libdir} /libSDL.a -Wl,-framework,OpenGL -Wl,-framework,Cocoa -Wl,-framework,ApplicationServices -Wl,-framework,Carbon -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,IOKit
Cflags: -I\$ { includedir} /SDL -D_GNU_SOURCE= 1 -D_THREAD_SAFE
EOF