summaryrefslogtreecommitdiff
path: root/graphics/png/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/png/Makefile')
-rw-r--r--graphics/png/Makefile20
1 files changed, 17 insertions, 3 deletions
diff --git a/graphics/png/Makefile b/graphics/png/Makefile
index 16aac1cee717..0e3a9046f332 100644
--- a/graphics/png/Makefile
+++ b/graphics/png/Makefile
@@ -9,7 +9,7 @@
# png version number) when updating this port. Thank you.
PORTNAME= png
-PORTVERSION= 1.0.7
+PORTVERSION= 1.0.8
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.libpng.org/pub/png/src/ \
${MASTER_SITE_SOURCEFORGE}
@@ -30,7 +30,21 @@ PLIST_SUB= SHLIB_VER="${SHLIB_VER}"
MAN3= libpng.3 libpngpf.3
MAN5= png.5
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MMX) && (${ARCH} == "i386")
+MAKE_ENV+= USE_MMX=yes
+.endif
+
+.if !defined(WITH_MMX) && (${ARCH} == "i386")
+post-extract:
+ @${ECHO_MSG}
+ @${ECHO_MSG} " If you have a CPU with MMX instruction set (Pentium/P55C and higher) you can"
+ @${ECHO_MSG} " try to add \"-DWITH_MMX\" to build libpng with MMX-optimized assembler routines."
+ @${ECHO_MSG}
+.endif
+
do-configure:
- cd ${WRKSRC} && ${CP} scripts/makefile.std Makefile
+ ${LN} -sf ${WRKSRC}/scripts/makefile.std ${WRKSRC}/Makefile
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>