summaryrefslogtreecommitdiff
path: root/graphics/png
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2000-10-25 01:06:11 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2000-10-25 01:06:11 +0000
commit7c3dbda98c1beaf98cc47277094566b0854fc33e (patch)
tree3ad0776cb3a8e913b452932a443dcffa91baf2cc /graphics/png
parentOops, forgot the new patch.... (diff)
Rename WITH_MMX to PNG_WITH_MMX to allow it to be added to /etc/make.conf
Notes
Notes: svn path=/head/; revision=34205
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