aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/png
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-09-21 15:52:05 +0800
committersobomax <sobomax@FreeBSD.org>2000-09-21 15:52:05 +0800
commitff14cbd805f24a45b2dc59f78c1fc60d54800863 (patch)
treed219ab828322c96c03ae7dfc5fe43e4a5f4d79fb /graphics/png
parent6e700b8507304960bfbdcee4b0ec672a69909841 (diff)
downloadfreebsd-ports-gnome-ff14cbd805f24a45b2dc59f78c1fc60d54800863.tar.gz
freebsd-ports-gnome-ff14cbd805f24a45b2dc59f78c1fc60d54800863.tar.zst
freebsd-ports-gnome-ff14cbd805f24a45b2dc59f78c1fc60d54800863.zip
Update MMX-optimisation patch to 1.0.9pre3. This update doesn't affect anything
if USE_MMX not used.
Diffstat (limited to 'graphics/png')
-rw-r--r--graphics/png/Makefile14
-rw-r--r--graphics/png/distinfo2
2 files changed, 11 insertions, 5 deletions
diff --git a/graphics/png/Makefile b/graphics/png/Makefile
index 7ba4e63f3989..97f6b4be18de 100644
--- a/graphics/png/Makefile
+++ b/graphics/png/Makefile
@@ -8,18 +8,19 @@
PORTNAME= png
PORTVERSION= 1.0.8
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.libpng.org/pub/png/src/ \
${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= lib${PORTNAME}
-DISTFILES= lib${PKGNAME}${EXTRACT_SUFX} pnggccrd-1.0.9pre2${EXTRACT_SUFX}
+DISTFILES= lib${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
PATCH_SITES= ftp://ftp.libpng.org/pub/png/src/
#PATCHFILES=
MAINTAINER= ache@FreeBSD.org
-WRKSRC= ${WRKDIR}/lib${PKGNAME}
+WRKSRC= ${WRKDIR}/lib${PORTNAME}-${PORTVERSION}
INSTALLS_SHLIB= yes
SHLIB_VER= 4
@@ -34,15 +35,20 @@ MAN5= png.5
.if defined(WITH_MMX) && (${ARCH} == "i386")
MAKE_ENV+= USE_MMX=yes
+MMX_PATCH= libpng-mmx-1.0.9pre3.zip
+DISTFILES+= ${MMX_PATCH}
+BUILD_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
+EXTRACT_ONLY= lib${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
.endif
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")
+ @cd ${WRKDIR} && unzip ${DISTDIR}/${MMX_PATCH} >/dev/null
@${CP} ${WRKDIR}/pnggccrd.c ${WRKSRC}/pnggccrd.c
-
-.if !defined(WITH_MMX) && (${ARCH} == "i386")
+.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."
diff --git a/graphics/png/distinfo b/graphics/png/distinfo
index 9bceed0b98ae..5c1b74a50248 100644
--- a/graphics/png/distinfo
+++ b/graphics/png/distinfo
@@ -1,2 +1,2 @@
MD5 (libpng-1.0.8.tar.gz) = 5ac355d7ec9e27f20bfe00aa10f9fdde
-MD5 (pnggccrd-1.0.9pre2.tar.gz) = 39df0d4c5325067b184e33faecc839bf
+MD5 (libpng-mmx-1.0.9pre3.zip) = 24f8a5fa3097fd5deabfefafbd773a70