diff options
author | Tijl Coosemans <tijl@FreeBSD.org> | 2014-03-06 18:21:04 +0000 |
---|---|---|
committer | Tijl Coosemans <tijl@FreeBSD.org> | 2014-03-06 18:21:04 +0000 |
commit | 15337d471b503a58535e64859de57c593eeb4a9f (patch) | |
tree | 796ea187c3c2333cbd04662501d89e782c82b17b /www/netsurf | |
parent | 2e1f6ab5c9f3d1f2d9a609add72466c9d3d0d42f (diff) | |
download | ports-15337d471b503a58535e64859de57c593eeb4a9f.tar.gz ports-15337d471b503a58535e64859de57c593eeb4a9f.zip |
Notes
Diffstat (limited to 'www/netsurf')
-rw-r--r-- | www/netsurf/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/www/netsurf/Makefile b/www/netsurf/Makefile index 64e9196d7bd7..fc6e0ed8c5c6 100644 --- a/www/netsurf/Makefile +++ b/www/netsurf/Makefile @@ -46,6 +46,8 @@ LIB_DEPENDS+= libssl.so:${PORTSDIR}/security/openssl BUILD_DEPENDS+= gperf:${PORTSDIR}/devel/gperf .endif +.include <bsd.port.pre.mk> + post-patch: @${REINPLACE_CMD} '/^NSFB_LINUX_AVAILABLE/ s|yes|no| ; s| -g||' \ ${WRKSRC}/src/libnsfb-${NSFB_VERSION}/Makefile @@ -53,7 +55,7 @@ post-patch: ${WRKSRC}/src/libnsfb-${NSFB_VERSION}/src/plot/*bpp*.c @${REINPLACE_CMD} 's| -O2||' \ ${WRKSRC}/src/netsurf-${PORTVERSION}/gtk/Makefile.defaults - @${REINPLACE_CMD} '/OpenSSL/d ; s| -g||' \ + @${REINPLACE_CMD} '/OpenSSL/d ; s| -g|| ; s|-DG_DISABLE_DEPRECATED||' \ ${WRKSRC}/src/netsurf-${PORTVERSION}/gtk/Makefile.target @${REINPLACE_CMD} -e '/ifeq.*clang/s/word 1/filter clang/' \ ${WRKSRC}/src/buildsystem-1.0/makefiles/Makefile.tools @@ -62,6 +64,10 @@ post-patch: do-configure: @${CP} ${FILESDIR}/Makefile.config ${WRKSRC}/src/netsurf-${PORTVERSION} +.if empty(ICONV_LIB) + @${REINPLACE_CMD} '/NETSURF_USE_LIBICONV_PLUG/ s|NO|YES|' \ + ${WRKSRC}/src/netsurf-${PORTVERSION}/Makefile.config +.endif .if ${PORT_OPTIONS:MGSTREAMER} @${REINPLACE_CMD} '/NETSURF_USE_VIDEO/ s|NO|YES|' \ ${WRKSRC}/src/netsurf-${PORTVERSION}/Makefile.config @@ -71,4 +77,4 @@ do-configure: ${WRKSRC}/src/netsurf-${PORTVERSION}/Makefile.config .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |