summaryrefslogtreecommitdiffstats
path: root/contrib/build-scripts/build-arabica-macosx.sh
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2016-05-12 13:12:33 (GMT)
committerStefan Radomski <github@mintwerk.de>2016-05-12 13:12:33 (GMT)
commitb62e7979600feee23dc7cdb61042a8fc7673122b (patch)
treef7351372f37979dd2d048e0b68a16a4cd3b2aadb /contrib/build-scripts/build-arabica-macosx.sh
parent1b11b310be61e51b3ac5ebb83f7c8a33aef3d6e8 (diff)
downloaduscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.zip
uscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.tar.gz
uscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.tar.bz2
Major Refactoring v2.0
Diffstat (limited to 'contrib/build-scripts/build-arabica-macosx.sh')
-rwxr-xr-xcontrib/build-scripts/build-arabica-macosx.sh108
1 files changed, 0 insertions, 108 deletions
diff --git a/contrib/build-scripts/build-arabica-macosx.sh b/contrib/build-scripts/build-arabica-macosx.sh
deleted file mode 100755
index c79cc2e..0000000
--- a/contrib/build-scripts/build-arabica-macosx.sh
+++ /dev/null
@@ -1,108 +0,0 @@
-#!/bin/bash
-
-#
-# build arabica for MacOSX
-#
-# ./configure --with-boost=/opt/local/include/ --with-libxml2=`xcrun --show-sdk-path`/usr --with-parser=libxml2
-
-# exit on error
-set -e
-
-ME=`basename $0`
-DIR="$( cd "$( dirname "$0" )" && pwd )"
-MACOSX_VER=`/usr/bin/sw_vers -productVersion`
-MACOSX_COMP=(`echo $MACOSX_VER | tr '.' ' '`)
-PLATFORM_ID=`${DIR}/platform-id-mac.sh`
-DEST_DIR="${DIR}/../prebuilt/${PLATFORM_ID}"
-SYSROOT=`xcrun --show-sdk-path`
-
-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
-
-if [ ${MACOSX_COMP[1]} -lt 9 ]; then
- MACOSX_VERSION_MIN="-mmacosx-version-min=10.6"
-fi
-
-./configure \
-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 \
---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="${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 \
---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 ${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 \
---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="${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 \
---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