diff options
author | jdolecek <jdolecek@pkgsrc.org> | 2018-02-03 12:04:03 +0000 |
---|---|---|
committer | jdolecek <jdolecek@pkgsrc.org> | 2018-02-03 12:04:03 +0000 |
commit | 0e924f640751b0b7b6bbe4fe34d17ee90c5688a4 (patch) | |
tree | f61a6f09d56d753e3b6f460a292fdaac1b410ef3 | |
parent | 81de674642132846e0b408928a14a3819e67d2d8 (diff) | |
download | pkgsrc-0e924f640751b0b7b6bbe4fe34d17ee90c5688a4.tar.gz |
Add a workaround so libzip 1.4.0 builds successfully on Darwin/Mac OS X
Skip running the regression tests since for some reason the setting
of LD_LIBRARY_PATH isn't passed down through cmake invocation; this
avoids error:
dyld: Library not loaded: @rpath/libzip.5.dylib
Referenced from: ${WRKSRC}/regress/../src/ziptool
Reason: image not found
-rw-r--r-- | archivers/libzip/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/archivers/libzip/Makefile b/archivers/libzip/Makefile index 1094fd3efe5..4d180c8a37f 100644 --- a/archivers/libzip/Makefile +++ b/archivers/libzip/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.32 2017/12/30 00:19:56 wiz Exp $ +# $NetBSD: Makefile,v 1.33 2018/02/03 12:04:03 jdolecek Exp $ DISTNAME= libzip-1.4.0 CATEGORIES= archivers devel @@ -17,6 +17,16 @@ TEST_TARGET= test # for tests MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/lib +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "Darwin" +# avoid running regression tests with not yet installed libs, +# the above LD_LIBRARY_PATH is not passed to commands executed +# via cmake and zip lib is not found when invoking ziptool +BUILD_TARGET= zip +INSTALL_TARGET= install/fast +.endif + .include "../../devel/zlib/buildlink3.mk" .include "../../archivers/bzip2/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |