diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-25 23:08:15 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-25 23:08:15 (GMT) |
commit | 1ddbeb522842009b40a9404f15a4e56ae4c6dda4 (patch) | |
tree | 170476e66da38d7e489fb746634cd8650b30d77a /contrib/build-scripts/build-arabica-macosx.sh | |
parent | 43a0db67ba6527b00d7c60347675803ac3b1cfaa (diff) | |
download | uscxml-1ddbeb522842009b40a9404f15a4e56ae4c6dda4.zip uscxml-1ddbeb522842009b40a9404f15a4e56ae4c6dda4.tar.gz uscxml-1ddbeb522842009b40a9404f15a4e56ae4c6dda4.tar.bz2 |
Fixed building on MacOSX 10.9 Mavericks
Diffstat (limited to 'contrib/build-scripts/build-arabica-macosx.sh')
-rwxr-xr-x | contrib/build-scripts/build-arabica-macosx.sh | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/contrib/build-scripts/build-arabica-macosx.sh b/contrib/build-scripts/build-arabica-macosx.sh new file mode 100755 index 0000000..98a0b0e --- /dev/null +++ b/contrib/build-scripts/build-arabica-macosx.sh @@ -0,0 +1,99 @@ +#!/bin/bash + +# +# build libevent for MacOSX +# + +# exit on error +set -e + +ME=`basename $0` +DIR="$( cd "$( dirname "$0" )" && pwd )" +DEST_DIR="${DIR}/../prebuilt/darwin-i386/gnu" + +if [ ! -f src/arabica.cpp ]; then + echo + echo "Cannot find src/arabica.cpp" + echo "Run script from within arabica directory:" + echo "arabica $ ../../${ME}" + echo + exit +fi + +if [ -f Makefile ]; then + make clean +fi + +./configure \ +CFLAGS="-g -mmacosx-version-min=10.6 -arch x86_64" \ +CXXFLAGS="-g -mmacosx-version-min=10.6 -arch x86_64" \ +LDFLAGS="-g -mmacosx-version-min=10.6 -arch x86_64" \ +--with-libxml2=${SYSROOT}/usr \ +--with-parser=libxml2 \ +--with-tests=no \ +--with-boost=/opt/local/include \ +--disable-shared \ +--disable-dependency-tracking \ +--with-pic \ +--prefix=${DEST_DIR} + + +make +cp ./src/.libs/libarabica.a ./libarabica_d.x86_64.a +make install # once for headers +rm ${DEST_DIR}/lib/libarabica* +make clean + + +./configure \ +CFLAGS="-mmacosx-version-min=10.6 -arch x86_64" \ +CXXFLAGS="-mmacosx-version-min=10.6 -arch x86_64" \ +LDFLAGS="-mmacosx-version-min=10.6 -arch x86_64" \ +--with-libxml2=${SYSROOT}/usr \ +--with-parser=libxml2 \ +--with-tests=no \ +--with-boost=/opt/local/include \ +--disable-shared \ +--disable-dependency-tracking \ +--with-pic + +make +cp ./src/.libs/libarabica.a ./libarabica.x86_64.a +make clean + + +./configure \ +CFLAGS="-g -mmacosx-version-min=10.6 -arch i386" \ +CXXFLAGS="-g -mmacosx-version-min=10.6 -arch i386" \ +LDFLAGS="-g -mmacosx-version-min=10.6 -arch i386" \ +--with-libxml2=${SYSROOT}/usr \ +--with-parser=libxml2 \ +--with-tests=no \ +--with-boost=/opt/local/include \ +--disable-shared \ +--disable-dependency-tracking \ +--with-pic + +make +cp ./src/.libs/libarabica.a ./libarabica_d.i386.a +make clean + +./configure \ +CFLAGS="-mmacosx-version-min=10.6 -arch i386" \ +CXXFLAGS="-mmacosx-version-min=10.6 -arch i386" \ +LDFLAGS="-mmacosx-version-min=10.6 -arch i386" \ +--with-libxml2=${SYSROOT}/usr \ +--with-parser=libxml2 \ +--with-tests=no \ +--with-boost=/opt/local/include \ +--disable-shared \ +--disable-dependency-tracking \ +--with-pic + +make +cp ./src/.libs/libarabica.a ./libarabica.i386.a +make clean + + +lipo -create ./libarabica.i386.a ./libarabica.x86_64.a -output ${DEST_DIR}/lib/libarabica.a +lipo -create ./libarabica_d.i386.a ./libarabica_d.x86_64.a -output ${DEST_DIR}/lib/libarabica_d.a |