Juri Pakaste committed dd884ec

Added .hgignore and a script for building zeromq, modified from the one in their wiki so it works

Comments (0)

Files changed (2)

+syntax: glob


+#!/usr/bin/env zsh
+make clean &>>|/dev/null
+if [[ -d $BUILD_DIR ]]; then
+  rm -fr $BUILD_DIR
+mkdir -p $BUILD_DIR
+echo "-- Configuring with prefix $BUILD_DIR"
+SDK_ROOT="$(xcode-select -print-path)/Platforms/iPhoneOS.platform/Developer"
+export CPP="cpp"
+export CXXCPP="cpp"
+export CXX="${SDK_ROOT}/usr/bin/arm-apple-darwin10-llvm-g++-4.2"
+export CXXFLAGS="-O -isysroot $SDK_ROOT/SDKs/$SDK"
+export CC="${SDK_ROOT}/usr/bin/arm-apple-darwin10-llvm-gcc-4.2"
+export CFLAGS="-O -isysroot $SDK_ROOT/SDKs/$SDK"
+export AR=$SDK_ROOT"/usr/bin/ar"
+export AS=$SDK_ROOT"/usr/bin/as"
+export LD=$SDK_ROOT"/usr/bin/ld"
+export LDFLAGS="-lstdc++ -isysroot $SDK_ROOT/SDKs/$SDK"
+export LIBTOOL=$SDK_ROOT"/usr/bin/libtool"
+export STRIP=$SDK_ROOT"/usr/bin/strip"
+export RANLIB=$SDKROOT"/usr/bin/ranlib"
+./configure --disable-dependency-tracking --enable-static --disable-shared --host=arm-apple-darwin10 --prefix=$BUILD_DIR &>>| $ZMQ_BUILD_LOG_FILE
+echo "-- Building"
+make &>>| $ZMQ_BUILD_LOG_FILE
+echo "-- Installing to $BUILD_DIR"
+make install &>>| $ZMQ_BUILD_LOG_FILE
+echo "-- Cleaning up"
+make clean &>>| /dev/null
+echo "-- Copying headers"
+mkdir $BUILD_DIR/usr && cp -R include $BUILD_DIR/usr