summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@libreoffice.org>2018-05-13 13:09:40 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-17 11:16:50 -0700
commit77b9a62f7f1f7132cf47ac0e00c5167c084de2ae (patch)
treea4d4cb749574992d448fa5bc63dc8f7093a1b2eb /packaging
parentb55c5d55e6aa90df61dde259766fd43b8339671d (diff)
downloadsubsurface-77b9a62f7f1f7132cf47ac0e00c5167c084de2ae.tar.gz
iOS: added get-dep-lib to build.sh
Removed all 3rd party download/clone, and used common get-dep-lib instead Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/ios/build.sh37
1 files changed, 4 insertions, 33 deletions
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh
index 0b7ec71cf..17471efa3 100755
--- a/packaging/ios/build.sh
+++ b/packaging/ios/build.sh
@@ -43,13 +43,6 @@ if [ -z $QT_VERSION ] ; then
exit 1
fi
-# Which versions are we building against?
-LIBXSLT_VERSION=1.1.28
-LIBZIP_VERSION=1.2.0
-LIBGIT2_VERSION=v0.26.0
-# remark LIBXSLT are only used on this platform
-# due to Apple not publizing the version included in iOS
-
# set up the Subsurface versions by hand
GITVERSION=$(git describe --abbrev=12)
CANONICALVERSION=$(git describe --abbrev=12 | sed -e 's/-g.*$// ; s/^v//' | sed -e 's/-/./')
@@ -131,15 +124,10 @@ echo next building for $ARCH
target=$ARCH
hosttarget=$ARCH
- if [ ! -d libxslt ] ; then
- git clone https://github.com/GNOME/libxslt.git libxslt
- fi
+ ../../scripts/get-dep-lib.sh ios .
+
# libxslt have too old config.sub
pushd libxslt
- if ! git checkout v$LIBXSLT_VERSION ; then
- echo "Can't find the right tag in libxslt - giving up"
- exit 1
- fi
autoreconf --install
popd
if [ ! -e $PKG_CONFIG_LIBDIR/libxslt.pc ] ; then
@@ -151,30 +139,16 @@ echo next building for $ARCH
popd
fi
- if [ ! -e libzip-${LIBZIP_VERSION}.tar.gz ] ; then
- curl -O https://libzip.org/download/libzip-${LIBZIP_VERSION}.tar.gz
- fi
- if [ ! -e libzip-${LIBZIP_VERSION} ] ; then
- tar -zxf libzip-${LIBZIP_VERSION}.tar.gz
- fi
if [ ! -e $PKG_CONFIG_LIBDIR/libzip.pc ] ; then
mkdir -p libzip-build-$ARCH_NAME
pushd libzip-build-$ARCH_NAME
- ../libzip-${LIBZIP_VERSION}/configure --host=${BUILDCHAIN} --prefix=${PREFIX} --enable-static --disable-shared
+ ../libzip/configure --host=${BUILDCHAIN} --prefix=${PREFIX} --enable-static --disable-shared
make
make install
popd
fi
- if [ ! -d libgit2 ] ; then
- git clone https://github.com/libgit2/libgit2.git
- fi
pushd libgit2
- git fetch origin
- if ! git checkout $LIBGIT2_VERSION ; then
- echo "Can't find the right tag in libgit2 - giving up"
- exit 1
- fi
# libgit2 with -Wall on iOS creates megabytes of warnings...
sed -i.bak 's/ADD_C_FLAG_IF_SUPPORTED(-W/# ADD_C_FLAG_IF_SUPPORTED(-W/' CMakeLists.txt
popd
@@ -205,9 +179,9 @@ echo next building for $ARCH
if [ ! -d ../../libdivecomputer/src ] ; then
pushd ../..
git submodule init
+ git submodule update --recursive
popd
fi
- git submodule update --recursive
if [ ! -f ../../libdivecomputer/configure ] ; then
pushd ../../libdivecomputer
autoreconf --install
@@ -232,9 +206,6 @@ echo next building for $ARCH
done
# build googlemaps
-if [ ! -d googlemaps ] ; then
- git clone git://github.com/subsurface-divelog/googlemaps
-fi
mkdir -p googlemaps-build
pushd googlemaps-build
${IOS_QT}/${QT_VERSION}/ios/bin/qmake ../googlemaps/googlemaps.pro CONFIG+=release