diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-28 20:06:55 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-28 20:06:55 (GMT) |
commit | e2a9a6f822372e09162ba6793f11fdf40e83cd90 (patch) | |
tree | 16b616138d8a951a781cad464f46b07bd29561c0 /contrib/build-scripts/build-arabica-macosx.sh | |
parent | a68b6c1d31cb94675dd4dda0a2da11d8e83063c3 (diff) | |
download | uscxml-e2a9a6f822372e09162ba6793f11fdf40e83cd90.zip uscxml-e2a9a6f822372e09162ba6793f11fdf40e83cd90.tar.gz uscxml-e2a9a6f822372e09162ba6793f11fdf40e83cd90.tar.bz2 |
New prebuilt build scripts for mavericks
Diffstat (limited to 'contrib/build-scripts/build-arabica-macosx.sh')
-rwxr-xr-x | contrib/build-scripts/build-arabica-macosx.sh | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/contrib/build-scripts/build-arabica-macosx.sh b/contrib/build-scripts/build-arabica-macosx.sh index 98a0b0e..4f2dddf 100755 --- a/contrib/build-scripts/build-arabica-macosx.sh +++ b/contrib/build-scripts/build-arabica-macosx.sh @@ -9,7 +9,9 @@ set -e ME=`basename $0` DIR="$( cd "$( dirname "$0" )" && pwd )" -DEST_DIR="${DIR}/../prebuilt/darwin-i386/gnu" +MACOSX_VER=`/usr/bin/sw_vers -productVersion` +MACOSX_COMP=(`echo $MACOSX_VER | tr '.' ' '`) +DEST_DIR="${DIR}/../prebuilt/darwin-i386/${MACOSX_COMP[0]}.${MACOSX_COMP[1]}/gnu" if [ ! -f src/arabica.cpp ]; then echo @@ -24,10 +26,14 @@ if [ -f Makefile ]; then make clean fi +if [ ${MACOSX_COMP[1]} -lt 9 ]; then + MACOSX_VERSION_MIN="-mmacosx-version-min=10.6" +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" \ +CFLAGS="-g ${MACOSX_VERSION_MIN} -arch x86_64" \ +CXXFLAGS="-g ${MACOSX_VERSION_MIN} -arch x86_64" \ +LDFLAGS="-g ${MACOSX_VERSION_MIN} -arch x86_64" \ --with-libxml2=${SYSROOT}/usr \ --with-parser=libxml2 \ --with-tests=no \ @@ -46,9 +52,9 @@ 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" \ +CFLAGS="${MACOSX_VERSION_MIN} -arch x86_64" \ +CXXFLAGS="${MACOSX_VERSION_MIN} -arch x86_64" \ +LDFLAGS="${MACOSX_VERSION_MIN} -arch x86_64" \ --with-libxml2=${SYSROOT}/usr \ --with-parser=libxml2 \ --with-tests=no \ @@ -63,9 +69,9 @@ 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" \ +CFLAGS="-g ${MACOSX_VERSION_MIN} -arch i386" \ +CXXFLAGS="-g ${MACOSX_VERSION_MIN} -arch i386" \ +LDFLAGS="-g ${MACOSX_VERSION_MIN} -arch i386" \ --with-libxml2=${SYSROOT}/usr \ --with-parser=libxml2 \ --with-tests=no \ @@ -79,9 +85,9 @@ 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" \ +CFLAGS="${MACOSX_VERSION_MIN} -arch i386" \ +CXXFLAGS="${MACOSX_VERSION_MIN} -arch i386" \ +LDFLAGS="${MACOSX_VERSION_MIN} -arch i386" \ --with-libxml2=${SYSROOT}/usr \ --with-parser=libxml2 \ --with-tests=no \ @@ -94,6 +100,7 @@ make cp ./src/.libs/libarabica.a ./libarabica.i386.a make clean +exit 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 |