From 0e924f640751b0b7b6bbe4fe34d17ee90c5688a4 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Sat, 3 Feb 2018 12:04:03 +0000 Subject: 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 --- archivers/libzip/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'archivers') 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" -- cgit v1.2.3