Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Sep 2018 17:31:04 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r480098 - head/archivers/libarchive
Message-ID:  <201809191731.w8JHV4Tt087205@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Wed Sep 19 17:31:04 2018
New Revision: 480098
URL: https://svnweb.freebsd.org/changeset/ports/480098

Log:
  - 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)

Modified:
  head/archivers/libarchive/Makefile

Modified: head/archivers/libarchive/Makefile
==============================================================================
--- head/archivers/libarchive/Makefile	Wed Sep 19 17:19:18 2018	(r480097)
+++ head/archivers/libarchive/Makefile	Wed Sep 19 17:31:04 2018	(r480098)
@@ -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 <bsd.port.pre.mk>
 
@@ -103,8 +102,5 @@ CONFIGURE_ENV+=	ac_cv_header_localcharset_h=no \
 		ac_cv_func_locale_charset=no \
 		ac_cv_lib_charset_locale_charset=no
 .endif
-
-check:
-	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check)
 
 .include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809191731.w8JHV4Tt087205>