iOS build: fix libdivecomputer build

This uses new configure options added to the Subsurface-branch of
libdivecomputer.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-03-06 10:08:36 -08:00
parent c27a2b47f4
commit 8d9bffff64

View file

@ -307,15 +307,15 @@ if ! git checkout Subsurface-branch ; then
echo "can't check out the Subsurface-branch branch of libdivecomputer -- giving up"
exit 1
fi
if [ ! -f configure ] ; then
autoreconf --install
fi
cd ..
if [ ! -e $PKG_CONFIG_LIBDIR/libdivecomputer.pc ] ; then
if [ ! -f ../libvidecomputer/configure ] ; then
autoreconf --install ../libdivecomputer
fi
mkdir -p libdivecomputer-build-$ARCH
pushd libdivecomputer-build-$ARCH
../libdivecomputer/configure --host=${BUILDCHAIN} --prefix=${PREFIX} --enable-static --disable-shared --enable-examples=no
../libdivecomputer/configure --host=${BUILDCHAIN} --prefix=${PREFIX} --enable-static --disable-shared --enable-examples=no --disable-libusb --disable-hidapi
make
make install
popd