equal
deleted
inserted
replaced
36 rm -f $TARBALL |
36 rm -f $TARBALL |
37 rm -rf $BUILDBOTDIR |
37 rm -rf $BUILDBOTDIR |
38 mkdir -p $BUILDBOTDIR |
38 mkdir -p $BUILDBOTDIR |
39 pushd $BUILDBOTDIR |
39 pushd $BUILDBOTDIR |
40 |
40 |
41 export CC=/opt/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc |
41 SYSROOT="/opt/rpi-sysroot" |
|
42 export CC="/opt/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc --sysroot=$SYSROOT -I$SYSROOT/opt/vc/include -I$SYSROOT/usr/include -I$SYSROOT/opt/vc/include/interface/vcos/pthreads -I$SYSROOT/opt/vc/include/interface/vmcs_host/linux" |
|
43 # -L$SYSROOT/usr/lib/arm-linux-gnueabihf" |
42 # !!! FIXME: shouldn't have to --disable-* things here. |
44 # !!! FIXME: shouldn't have to --disable-* things here. |
43 ../configure --host=arm-raspberry-linux-gnueabihf --disable-pulseaudio --disable-esd --prefix="$PWD/rpi-sdl2-installed" |
45 ../configure --with-sysroot=$SYSROOT --host=arm-raspberry-linux-gnueabihf --prefix=$PWD/rpi-sdl2-installed --disable-pulseaudio --disable-esd |
44 $MAKE |
46 $MAKE |
45 $MAKE install |
47 $MAKE install |
46 # Fix up a few things to a real install path on a real Raspberry Pi... |
48 # Fix up a few things to a real install path on a real Raspberry Pi... |
47 perl -w -pi -e "s#$PWD/rpi-sdl2-installed#/usr/local#g;" ./rpi-sdl2-installed/lib/libSDL2.la ./rpi-sdl2-installed/lib/pkgconfig/sdl2.pc ./rpi-sdl2-installed/bin/sdl2-config |
49 perl -w -pi -e "s#$PWD/rpi-sdl2-installed#/usr/local#g;" ./rpi-sdl2-installed/lib/libSDL2.la ./rpi-sdl2-installed/lib/pkgconfig/sdl2.pc ./rpi-sdl2-installed/bin/sdl2-config |
48 mkdir -p ./usr |
50 mkdir -p ./usr |