diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2014-05-28 16:17:41 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2014-05-28 16:17:41 +0000 |
commit | da6925543d25dcab6184a5a7c968ad51d0488287 (patch) | |
tree | d40969934982ada7a7fa7a8c054c1974d7cee443 /www | |
parent | 284e0975a0d8ff7f915d2c361e4b5819516c115d (diff) | |
download | freebsd-ports-da6925543d25dcab6184a5a7c968ad51d0488287.zip |
- Use jemalloc only on FreeBSD 10 and above
- Strip shared library in post-install:
- Bump PORTREVISION
Diffstat (limited to 'www')
-rw-r--r-- | www/nghttp2/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/www/nghttp2/Makefile b/www/nghttp2/Makefile index 8ee9f948027c..4d8892a2ce83 100644 --- a/www/nghttp2/Makefile +++ b/www/nghttp2/Makefile @@ -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:${PORTSDIR}/devel/jansson 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> |