aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/png
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2000-10-25 09:06:11 +0800
committerache <ache@FreeBSD.org>2000-10-25 09:06:11 +0800
commit339e524e5dccf4c2aa20fdb74e983e970d1e096e (patch)
tree23dac119bb56961ef0415af86aa6bf2b0c803888 /graphics/png
parentfea24dbb8dfc1467368ebccd106285202118bfa6 (diff)
downloadfreebsd-ports-gnome-339e524e5dccf4c2aa20fdb74e983e970d1e096e.tar.gz
freebsd-ports-gnome-339e524e5dccf4c2aa20fdb74e983e970d1e096e.tar.zst
freebsd-ports-gnome-339e524e5dccf4c2aa20fdb74e983e970d1e096e.zip
Rename WITH_MMX to PNG_WITH_MMX to allow it to be added to /etc/make.conf
Diffstat (limited to 'graphics/png')
-rw-r--r--graphics/png/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/graphics/png/Makefile b/graphics/png/Makefile
index 97f6b4be18de..a22318702b26 100644
--- a/graphics/png/Makefile
+++ b/graphics/png/Makefile
@@ -1,5 +1,4 @@
# New ports collection makefile for: PNG images library
-# ftp://ftp.libpng.org/pub/png/libpng.html
# Date created: 5 Dec 1995
# Whom: ache
#
@@ -33,7 +32,7 @@ MAN5= png.5
.include <bsd.port.pre.mk>
-.if defined(WITH_MMX) && (${ARCH} == "i386")
+.if defined(PNG_WITH_MMX) && (${ARCH} == "i386")
MAKE_ENV+= USE_MMX=yes
MMX_PATCH= libpng-mmx-1.0.9pre3.zip
DISTFILES+= ${MMX_PATCH}
@@ -45,13 +44,14 @@ post-extract:
# Please don't delete the following line - this link used by ghostscript* ports
@${LN} -sf ${WRKSRC} ${WRKDIR}/libpng
#
-.if defined(WITH_MMX) && (${ARCH} == "i386")
+.if defined(PNG_WITH_MMX) && (${ARCH} == "i386")
@cd ${WRKDIR} && unzip ${DISTDIR}/${MMX_PATCH} >/dev/null
@${CP} ${WRKDIR}/pnggccrd.c ${WRKSRC}/pnggccrd.c
.elif ${ARCH} == "i386"
@${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} " try to add \"PNG_WITH_MMX=YES\" to /etc/make.conf to build libpng with"
+ @${ECHO_MSG} " MMX-optimized assembler routines."
@${ECHO_MSG}
.endif