2013-01-22 00:25:49 -05:00
|
|
|
#! /bin/sh
|
|
|
|
|
2013-02-08 04:25:55 -05:00
|
|
|
export XCODEDIR="/Applications/Xcode.app/Contents/Developer"
|
2013-01-22 00:25:49 -05:00
|
|
|
export BASEDIR="${XCODEDIR}/Platforms/iPhoneOS.platform/Developer"
|
|
|
|
export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
|
|
|
|
export SDK="${BASEDIR}/SDKs/iPhoneOS6.1.sdk"
|
|
|
|
export CFLAGS="-Oz -mthumb -arch armv7 -isysroot ${SDK}"
|
|
|
|
export LDFLAGS="-mthumb -arch armv7 -isysroot ${SDK}"
|
2013-05-31 01:56:18 -04:00
|
|
|
export PREFIX="$(pwd)/libsodium-ios"
|
2013-01-22 00:25:49 -05:00
|
|
|
|
2013-05-31 01:56:18 -04:00
|
|
|
./configure --host=arm-apple-darwin10 \
|
|
|
|
--disable-shared \
|
|
|
|
--prefix="$PREFIX" && \
|
|
|
|
make -j3 install && \
|
|
|
|
echo "libsodium has been installed into $PREFIX"
|