Update MMX-optimisation patch to 1.0.9pre3. This update doesn't affect anything

if USE_MMX not used.
This commit is contained in:
Maxim Sobolev 2000-09-21 07:52:05 +00:00
parent d60cf6bd3d
commit 14f0863d28
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=32922
2 changed files with 11 additions and 5 deletions

View file

@ -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."

View file

@ -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