From 514e662b3e487e57b7361c0bd6f5cc220e23501b Mon Sep 17 00:00:00 2001 From: amdmi3 Date: Wed, 19 Sep 2018 17:31:04 +0000 Subject: - Openssl and nettle support are not mutually exclusive, add independent options for each - Add LICENSE_FILE - Switch to USES=localbase - Switch to new test framework PR: 231150 Approved by: maintainer timeout (glewis, 2 weeks) --- archivers/libarchive/Makefile | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'archivers') diff --git a/archivers/libarchive/Makefile b/archivers/libarchive/Makefile index 965bec45e113..6254c0c9ae73 100644 --- a/archivers/libarchive/Makefile +++ b/archivers/libarchive/Makefile @@ -3,6 +3,7 @@ PORTNAME= libarchive PORTVERSION= 3.3.2 PORTEPOCH= 1 +PORTREVISION= 1 CATEGORIES= archivers MASTER_SITES= https://libarchive.org/downloads/ @@ -10,20 +11,23 @@ MAINTAINER= glewis@FreeBSD.org COMMENT= Library to create and read several streaming archive formats LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libexpat.so:textproc/expat2 -OPTIONS_DEFINE= LZ4 LZO NETTLE -OPTIONS_DEFAULT=LZ4 LZO +OPTIONS_DEFINE= LZ4 LZO OPENSSL NETTLE +OPTIONS_DEFAULT=LZ4 LZO OPENSSL LZ4_DESC= Support lz4 compression via liblz4 LZO_DESC= Support lzo compression via liblzo2 -NETTLE_DESC= Use Nettle instead of OpenSSL +OPENSSL_DESC= Mtree and xar hashes support through openssl +NETTLE_DESC= Crypto support from Nettle -USES= cpe iconv libtool pathfix +USES= cpe iconv libtool localbase:ldflags pathfix GNU_CONFIGURE= yes INSTALL_TARGET= install-strip USE_LDCONFIG= yes +TEST_TARGET= check CONFIGURE_ARGS= --without-xml2 @@ -81,10 +85,6 @@ PLIST_FILES= bin/bsdcat \ man/man5/mtree.5.gz \ man/man5/tar.5.gz -CFLAGS+= "-I${LOCALBASE}/include" -CPPFLAGS+= "-I${LOCALBASE}/include" -LDFLAGS+= "-L${LOCALBASE}/lib" - LZO_LIB_DEPENDS= liblzo2.so:archivers/lzo2 LZO_CONFIGURE_WITH= lzo2 LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4 @@ -92,9 +92,8 @@ LZ4_CONFIGURE_WITH= lz4 NETTLE_LIB_DEPENDS= libnettle.so:security/nettle NETTLE_CONFIGURE_WITH= nettle -NETTLE_CONFIGURE_ON= --without-openssl -NETTLE_USES_OFF= ssl -NETTLE_CONFIGURE_OFF= --with-openssl +OPENSSL_USES= ssl +OPENSSL_CONFIGURE_WITH= openssl .include @@ -104,7 +103,4 @@ CONFIGURE_ENV+= ac_cv_header_localcharset_h=no \ ac_cv_lib_charset_locale_charset=no .endif -check: - @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check) - .include -- cgit