pkgsrc/archivers/libzip/buildlink3.mk
wiz 3496e1b1b6 libzip: update bl3.mk
Stop linking lib/libzip/include, does not exist since 1.3.1; and depend
on that version (from 2017).

Link bin/zipcmp for the cmake infrastructure (the cmake support
files are looking for zipcmp in the same place as the headers/library).

The latter fixes a build problem in mgba reported by nia.
2020-06-14 22:18:54 +00:00

29 lines
778 B
Makefile

# $NetBSD: buildlink3.mk,v 1.23 2020/06/14 22:18:54 wiz Exp $
BUILDLINK_TREE+= libzip
.if !defined(LIBZIP_BUILDLINK3_MK)
LIBZIP_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.libzip+= libzip>=1.3.1
BUILDLINK_ABI_DEPENDS.libzip+= libzip>=1.6.1nb2
BUILDLINK_PKGSRCDIR.libzip?= ../../archivers/libzip
BUILDLINK_FILES.libzip+= bin/zipcmp
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.fast.prefs.mk"
pkgbase := libzip
.include "../../mk/pkg-build-options.mk"
.if ${PKG_BUILD_OPTIONS.libzip:Mgnutls}
.include "../../security/gnutls/buildlink3.mk"
.endif
.if ${PKG_BUILD_OPTIONS.libzip:Mopenssl}
.include "../../security/openssl/buildlink3.mk"
.endif
.endif # LIBZIP_BUILDLINK3_MK
BUILDLINK_TREE+= -libzip