aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-31 16:09:26 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-31 16:09:37 -0700
commit43f15f1b481dc2dd90e56f87f63a3d01d91bccba (patch)
tree93b051392ddefb140abc9af60e6c3cf18782d521 /scripts
parentcc04f5d3f8a40ff71aafef2678240ca7ff792a11 (diff)
downloadsubsurface-43f15f1b481dc2dd90e56f87f63a3d01d91bccba.tar.gz
build-system: build libmtp for macOS if requested
If we are building our own dependencies (usually only for release builds), we now also need to build libmtp. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index 4c2fd8acb..fef234ac5 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -394,6 +394,16 @@ if [[ $PLATFORM = Darwin && "$BUILD_DEPS" == "1" ]] ; then
make install
popd
+ ./${SRC_DIR}/scripts/get-dep-lib.sh single . libmtp
+ pushd libmtp
+ echo 'N' | NOCONFIGURE="1" bash ./autogen.sh
+ mkdir -p build
+ cd build
+ CFLAGS="$OLDER_MAC" ../configure --prefix="$INSTALL_ROOT"
+ make -j4
+ make install
+ popd
+
./${SRC_DIR}/scripts/get-dep-lib.sh single . libftdi1
pushd libftdi1
mkdir -p build