mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
build-system/macOS: build libz and libftdi as part of Mac dependencies
Usually people will install these via Homebrew, but when we need to build everything ourselves (required for release binaries), then these two were missing before. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
605ce56ea2
commit
e6ac0665c7
1 changed files with 25 additions and 0 deletions
|
@ -280,6 +280,20 @@ if [[ $PLATFORM = Darwin && "$BUILD_DEPS" == "1" ]] ; then
|
|||
# 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"
|
||||
|
||||
./${SRC_DIR}/scripts/get-dep-lib.sh single . libz
|
||||
pushd libz
|
||||
# no, don't install pkgconfig files in .../libs/share/pkgconf - that's just weird
|
||||
sed -i .bak 's/share\/pkgconfig/pkgconfig/' CMakeLists.txt
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake "$OLDER_MAC_CMAKE" -DCMAKE_BUILD_TYPE="$DEBUGRELEASE" \
|
||||
-DCMAKE_INSTALL_PREFIX="$INSTALL_ROOT" \
|
||||
..
|
||||
make -j4
|
||||
make install
|
||||
popd
|
||||
|
||||
./${SRC_DIR}/scripts/get-dep-lib.sh single . libcurl
|
||||
pushd libcurl
|
||||
bash ./buildconf
|
||||
|
@ -380,6 +394,17 @@ if [[ $PLATFORM = Darwin && "$BUILD_DEPS" == "1" ]] ; then
|
|||
make -j4
|
||||
make install
|
||||
popd
|
||||
|
||||
./${SRC_DIR}/scripts/get-dep-lib.sh single . libftdi1
|
||||
pushd libftdi1
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake "$OLDER_MAC_CMAKE" -DCMAKE_BUILD_TYPE="$DEBUGRELEASE" \
|
||||
-DCMAKE_INSTALL_PREFIX="$INSTALL_ROOT" \
|
||||
..
|
||||
make -j4
|
||||
make install
|
||||
popd
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue