aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/libmng/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/libmng/Makefile')
-rw-r--r--graphics/libmng/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/graphics/libmng/Makefile b/graphics/libmng/Makefile
index 282196bba50d..bf3bfc751ba3 100644
--- a/graphics/libmng/Makefile
+++ b/graphics/libmng/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= libmng
-PORTVERSION= 1.0.8
+PORTVERSION= 1.0.9
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.libmng.com/download/
@@ -18,14 +18,26 @@ COMMENT= Multiple-image Network Graphics (MNG) reference library
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
lcms:${PORTSDIR}/graphics/lcms
+OPTIONS= MNG_OPTIMIZE "Use vendor's new optimization flags" no
+
+USE_REINPLACE= yes
+REINPLACE_ARGS= -i ""
MAKEFILE= ${FILESDIR}/Makefile.bsd
-MAKE_ARGS+= -j2
+MAKE_ARGS+= -j2 WITH_MNG_OPTIMIZE=${WITH_MNG_OPTIMIZE}
INSTALLS_SHLIB= yes
MAN3= libmng.3
MAN5= mng.5 jng.5
+post-extract:
+ #
+ # Getting rid of the DOS-style end-of-lines left by the vendor
+ #
+ ${FIND} ${WRKSRC} -type f | ${XARGS} ${FILE} | \
+ ${AWK} -F: '/CRLF/ { print $$1 }' | \
+ ${XARGS} ${REINPLACE_CMD} -Ee 's,[[:space:]]+$$,,'
+
post-install:
cd ${WRKSRC}/doc/man && ${INSTALL_MAN} ${MAN3} ${PREFIX}/man/man3 \
&& ${INSTALL_MAN} ${MAN5} ${PREFIX}/man/man5