svn commit: r355641 - head/www/nghttp2

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Wed May 28 16:17:42 UTC 2014


Author: sunpoet
Date: Wed May 28 16:17:41 2014
New Revision: 355641
URL: http://svnweb.freebsd.org/changeset/ports/355641
QAT: https://qat.redports.org/buildarchive/r355641/

Log:
  - Use jemalloc only on FreeBSD 10 and above
  - Strip shared library in post-install:
  - Bump PORTREVISION

Modified:
  head/www/nghttp2/Makefile

Modified: head/www/nghttp2/Makefile
==============================================================================
--- head/www/nghttp2/Makefile	Wed May 28 15:59:55 2014	(r355640)
+++ head/www/nghttp2/Makefile	Wed May 28 16:17:41 2014	(r355641)
@@ -3,6 +3,7 @@
 
 PORTNAME=	nghttp2
 PORTVERSION=	0.4.0
+PORTREVISION=	1
 CATEGORIES=	www net
 MASTER_SITES=	https://github.com/tatsuhiro-t/${PORTNAME}/releases/download/v${PORTVERSION}/ \
 		LOCAL/sunpoet
@@ -21,7 +22,6 @@ OPTIONS_SUB=	yes
 CONFIGURE_ARGS=	--disable-python-bindings \
 		--enable-app \
 		--enable-examples \
-		--with-jemalloc \
 		--with-spdylay
 CONFIGURE_ENV=	OPENSSL_CFLAGS="-I${OPENSSLINC}" \
 		OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl" \
@@ -45,10 +45,14 @@ HPACK_LIB_DEPENDS=	libjansson.so:${PORTS
 IGNORE=		nghttp2 requires OpenSSL 1.0.1+
 .endif
 
+.if ${OSVERSION} >= 1000000
+CONFIGURE_ARGS+=--with-jemalloc
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e '/JEMALLOC_LIBS/ s|-ljemalloc||' ${WRKSRC}/configure
 
-post-build:
-	@${STRIP_CMD} ${WRKSRC}/lib/.libs/libnghttp2.so.3
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnghttp2.so.3.0.0
 
 .include <bsd.port.post.mk>


More information about the svn-ports-all mailing list