diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2014-05-29 00:17:41 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2014-05-29 00:17:41 +0800 |
commit | be15435ca6e06c34b71a8eb9edb102479c3ce1bd (patch) | |
tree | d40969934982ada7a7fa7a8c054c1974d7cee443 /www | |
parent | 8f0ff9d7f368cfffb47d25b08a5ac4b41b1916a3 (diff) | |
download | freebsd-ports-gnome-be15435ca6e06c34b71a8eb9edb102479c3ce1bd.tar.gz freebsd-ports-gnome-be15435ca6e06c34b71a8eb9edb102479c3ce1bd.tar.zst freebsd-ports-gnome-be15435ca6e06c34b71a8eb9edb102479c3ce1bd.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> |