2022-08-04 13:24:28 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. ./config.sh
|
|
|
|
|
2022-08-09 10:40:16 +00:00
|
|
|
UNBOUND_VERSION=release-1.16.2
|
|
|
|
UNBOUND_HASH="cbed768b8ff9bfcf11089a5f1699b7e5707f1ea5"
|
2022-08-04 13:24:28 +00:00
|
|
|
UNBOUND_URL="https://www.nlnetlabs.nl/downloads/unbound/unbound-${UNBOUND_VERSION}.tar.gz"
|
2022-08-09 10:40:16 +00:00
|
|
|
UNBOUND_DIR_PATH="${EXTERNAL_IOS_SOURCE_DIR}/unbound-1.16.2"
|
2022-08-04 13:24:28 +00:00
|
|
|
|
|
|
|
echo "============================ Unbound ============================"
|
2022-08-09 10:40:16 +00:00
|
|
|
rm -rf ${UNBOUND_DIR_PATH}
|
|
|
|
git clone https://github.com/NLnetLabs/unbound.git -b ${UNBOUND_VERSION} ${UNBOUND_DIR_PATH}
|
2022-08-04 13:24:28 +00:00
|
|
|
cd $UNBOUND_DIR_PATH
|
2022-08-09 10:40:16 +00:00
|
|
|
test `git rev-parse HEAD` = ${UNBOUND_HASH} || exit 1
|
2022-08-04 13:24:28 +00:00
|
|
|
|
|
|
|
export IOS_SDK=iPhone
|
|
|
|
export IOS_CPU=arm64
|
|
|
|
export IOS_PREFIX=$EXTERNAL_IOS_DIR
|
|
|
|
export AUTOTOOLS_HOST=aarch64-apple-ios
|
|
|
|
export AUTOTOOLS_BUILD="$(./config.guess)"
|
|
|
|
source ./contrib/ios/setenv_ios.sh
|
|
|
|
./contrib/ios/install_tools.sh
|
|
|
|
./contrib/ios/install_expat.sh
|
2022-08-09 10:40:16 +00:00
|
|
|
./configure --build="$AUTOTOOLS_BUILD" --host="$AUTOTOOLS_HOST" --prefix="$IOS_PREFIX" --with-ssl="$IOS_PREFIX" --with-libexpat="$IOS_PREFIX"
|
2022-08-04 13:24:28 +00:00
|
|
|
make
|
|
|
|
make install
|