mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
build-system: libgit2 depends on libcurl and libssh2
When building with -builddeps on a "virgin" mac, configure of libgit2 could not find libcurl and libssh2 moved building of libcurl and libssh2 in front of libgit2 Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
aab33694f2
commit
96079d7e6a
1 changed files with 26 additions and 21 deletions
|
@ -194,6 +194,32 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $PLATFORM = Darwin && "$BUILD_DEPS" == "1" ]] ; then
|
||||||
|
# when building distributable binaries on a Mac, we cannot rely on anything from Homebrew,
|
||||||
|
# because that always requires the latest OS (how stupid is that - and they consider it a
|
||||||
|
# feature). So we painfully need to build the dependencies ourselves.
|
||||||
|
cd $SRC
|
||||||
|
./subsurface/scripts/get-dep-lib.sh single . libcurl
|
||||||
|
pushd libcurl
|
||||||
|
bash ./buildconf
|
||||||
|
mkdir -p build
|
||||||
|
cd build
|
||||||
|
CFLAGS="$OLDER_MAC" ../configure --prefix=$INSTALL_ROOT --with-darwinssl \
|
||||||
|
--disable-tftp --disable-ftp --disable-ldap --disable-ldaps --disable-imap --disable-pop3 --disable-smtp --disable-gopher --disable-smb --disable-rtsp
|
||||||
|
make -j4
|
||||||
|
make install
|
||||||
|
popd
|
||||||
|
|
||||||
|
./subsurface/scripts/get-dep-lib.sh single . libssh2
|
||||||
|
pushd libssh2
|
||||||
|
mkdir -p build
|
||||||
|
cd build
|
||||||
|
cmake $OLDER_MAC_CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF ..
|
||||||
|
make -j4
|
||||||
|
make install
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$LIBGIT" < "24" ]] ; then
|
if [[ "$LIBGIT" < "24" ]] ; then
|
||||||
LIBGIT_ARGS=" -DLIBGIT2_INCLUDE_DIR=$INSTALL_ROOT/include -DLIBGIT2_LIBRARIES=$INSTALL_ROOT/lib/libgit2.$SH_LIB_EXT "
|
LIBGIT_ARGS=" -DLIBGIT2_INCLUDE_DIR=$INSTALL_ROOT/include -DLIBGIT2_LIBRARIES=$INSTALL_ROOT/lib/libgit2.$SH_LIB_EXT "
|
||||||
|
|
||||||
|
@ -232,7 +258,6 @@ if [[ $PLATFORM = Darwin && "$BUILD_DEPS" == "1" ]] ; then
|
||||||
make install
|
make install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
./subsurface/scripts/get-dep-lib.sh single . hidapi
|
./subsurface/scripts/get-dep-lib.sh single . hidapi
|
||||||
pushd hidapi
|
pushd hidapi
|
||||||
# there is no good tag, so just build master
|
# there is no good tag, so just build master
|
||||||
|
@ -244,17 +269,6 @@ if [[ $PLATFORM = Darwin && "$BUILD_DEPS" == "1" ]] ; then
|
||||||
make install
|
make install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
./subsurface/scripts/get-dep-lib.sh single . libcurl
|
|
||||||
pushd libcurl
|
|
||||||
bash ./buildconf
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
|
||||||
CFLAGS="$OLDER_MAC" ../configure --prefix=$INSTALL_ROOT --with-darwinssl \
|
|
||||||
--disable-tftp --disable-ftp --disable-ldap --disable-ldaps --disable-imap --disable-pop3 --disable-smtp --disable-gopher --disable-smb --disable-rtsp
|
|
||||||
make -j4
|
|
||||||
make install
|
|
||||||
popd
|
|
||||||
|
|
||||||
./subsurface/scripts/get-dep-lib.sh single . libusb
|
./subsurface/scripts/get-dep-lib.sh single . libusb
|
||||||
pushd libusb
|
pushd libusb
|
||||||
bash ./bootstrap.sh
|
bash ./bootstrap.sh
|
||||||
|
@ -275,15 +289,6 @@ if [[ $PLATFORM = Darwin && "$BUILD_DEPS" == "1" ]] ; then
|
||||||
make -j4 -k
|
make -j4 -k
|
||||||
make -k install
|
make -k install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
./subsurface/scripts/get-dep-lib.sh single . libssh2
|
|
||||||
pushd libssh2
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
|
||||||
cmake $OLDER_MAC_CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF ..
|
|
||||||
make -j4
|
|
||||||
make install
|
|
||||||
popd
|
|
||||||
else
|
else
|
||||||
# we are getting libusb and hidapi from pkg-config and that goes wrong
|
# we are getting libusb and hidapi from pkg-config and that goes wrong
|
||||||
# or more specifically, the way libdivecomputer references
|
# or more specifically, the way libdivecomputer references
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue