Revert previous change making compilation of mmx-optimised routines a default

option. It appears that resulting binary can't be used on a CPU without
mmx instruction set (for example Pentium Pro).

PR:		25377
Submitted by:	Michael Hohmuth <hohmuth@inf.tu-dresden.de>
This commit is contained in:
Maxim Sobolev 2001-02-27 09:52:30 +00:00
parent 3565c45754
commit ab787c9e60
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=38845

View file

@ -7,6 +7,7 @@
PORTNAME= png
PORTVERSION= 1.0.9
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.libpng.org/pub/png/src/ \
${MASTER_SITE_SOURCEFORGE}
@ -31,7 +32,7 @@ MAN5= png.5
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_PNG_MMX) && (${ARCH} == "i386")
.if defined(WITH_PNG_MMX) && (${ARCH} == "i386")
MAKE_ENV+= USE_MMX=yes
.endif
@ -39,11 +40,13 @@ post-extract:
# Please don't delete the following line - this link used by ghostscript* ports
@${LN} -sf ${WRKSRC} ${WRKDIR}/libpng
#
.if !defined(WITHOUT_PNG_MMX) && (${ARCH} == "i386")
.if !defined(WITH_PNG_MMX) && (${ARCH} == "i386")
@${ECHO_MSG}
@${ECHO_MSG} " If you have a CPU without MMX instruction set (anything below Pentium/P55C) you"
@${ECHO_MSG} " can add \"WITHOUT_PNG_MMX=YES\" to /etc/make.conf to build libpng without"
@${ECHO_MSG} " MMX-optimized assembler routines."
@${ECHO_MSG} " If you have a CPU with MMX instruction set (Pentium/P55C and higher) you can"
@${ECHO_MSG} " try to add \"WITH_PNG_MMX=YES\" to /etc/make.conf to build libpng with"
@${ECHO_MSG} " MMX-optimized assembler routines. Please beware that it would make impossible"
@${ECHO_MSG} " to use resulting png library on processors without MMX instruction set"
@${ECHO_MSG} " (486 and downward, old Pentiums and clones, PentiumPro etc.)."
@${ECHO_MSG}
.endif