mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Update to 1.0.8. This release includes experimental MMX support, but it should
explicitly turned on by defining WITH_MMX make variable.
This commit is contained in:
parent
d346e6965a
commit
3763bff0d8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31040
@ -9,7 +9,7 @@
|
|||||||
# png version number) when updating this port. Thank you.
|
# png version number) when updating this port. Thank you.
|
||||||
|
|
||||||
PORTNAME= png
|
PORTNAME= png
|
||||||
PORTVERSION= 1.0.7
|
PORTVERSION= 1.0.8
|
||||||
CATEGORIES= graphics
|
CATEGORIES= graphics
|
||||||
MASTER_SITES= ftp://ftp.libpng.org/pub/png/src/ \
|
MASTER_SITES= ftp://ftp.libpng.org/pub/png/src/ \
|
||||||
${MASTER_SITE_SOURCEFORGE}
|
${MASTER_SITE_SOURCEFORGE}
|
||||||
@ -30,7 +30,21 @@ PLIST_SUB= SHLIB_VER="${SHLIB_VER}"
|
|||||||
MAN3= libpng.3 libpngpf.3
|
MAN3= libpng.3 libpngpf.3
|
||||||
MAN5= png.5
|
MAN5= png.5
|
||||||
|
|
||||||
do-configure:
|
.include <bsd.port.pre.mk>
|
||||||
cd ${WRKSRC} && ${CP} scripts/makefile.std Makefile
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.if defined(WITH_MMX) && (${ARCH} == "i386")
|
||||||
|
MAKE_ENV+= USE_MMX=yes
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if !defined(WITH_MMX) && (${ARCH} == "i386")
|
||||||
|
post-extract:
|
||||||
|
@${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}
|
||||||
|
.endif
|
||||||
|
|
||||||
|
do-configure:
|
||||||
|
${LN} -sf ${WRKSRC}/scripts/makefile.std ${WRKSRC}/Makefile
|
||||||
|
|
||||||
|
.include <bsd.port.post.mk>
|
||||||
|
@ -1,4 +1 @@
|
|||||||
MD5 (libpng-1.0.7.tar.gz) = e238fce0af74f4c68a97cf303e01ca96
|
MD5 (libpng-1.0.8.tar.gz) = 5ac355d7ec9e27f20bfe00aa10f9fdde
|
||||||
MD5 (libpng-1.0.6-patch-a.txt.gz) = 03ba973e3b9110198a7e4965360fe0e1
|
|
||||||
MD5 (libpng-1.0.6-patch-b.txt.gz) = de2aad6bd0f03b84d2c013eb8b59e653
|
|
||||||
MD5 (libpng-1.0.6-patch-c.txt.gz) = 12ef2b1c2410721ff69dbcdb862cfc3c
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
--- scripts/makefile.std.orig Thu Dec 9 01:44:40 1999
|
--- scripts/makefile.std.orig Thu Dec 9 01:44:40 1999
|
||||||
+++ scripts/makefile.std Tue Jul 4 09:16:46 2000
|
+++ scripts/makefile.std Wed Jul 26 10:00:14 2000
|
||||||
@@ -2,18 +2,30 @@
|
@@ -2,18 +2,30 @@
|
||||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||||
# For conditions of distribution and use, see copyright notice in png.h
|
# For conditions of distribution and use, see copyright notice in png.h
|
||||||
@ -37,11 +37,16 @@
|
|||||||
|
|
||||||
#RANLIB=echo
|
#RANLIB=echo
|
||||||
RANLIB=ranlib
|
RANLIB=ranlib
|
||||||
@@ -22,12 +34,24 @@
|
@@ -22,12 +34,29 @@
|
||||||
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
||||||
pngwtran.o pngmem.o pngerror.o pngpread.o
|
pngwtran.o pngmem.o pngerror.o pngpread.o
|
||||||
|
|
||||||
-all: libpng.a pngtest
|
-all: libpng.a pngtest
|
||||||
|
+.if defined(USE_MMX)
|
||||||
|
+CFLAGS+=-DPNG_USE_PNGGCCRD -funroll-loops -fomit-frame-pointer
|
||||||
|
+OBJS+=pnggccrd.o
|
||||||
|
+.endif
|
||||||
|
+
|
||||||
+.SUFFIXES: .c .so .o
|
+.SUFFIXES: .c .so .o
|
||||||
+
|
+
|
||||||
+.c.so:
|
+.c.so:
|
||||||
@ -63,7 +68,7 @@
|
|||||||
pngtest: pngtest.o libpng.a
|
pngtest: pngtest.o libpng.a
|
||||||
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
|
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
|
||||||
|
|
||||||
@@ -37,12 +61,12 @@
|
@@ -37,12 +66,12 @@
|
||||||
install: libpng.a
|
install: libpng.a
|
||||||
-@mkdir $(prefix)/include
|
-@mkdir $(prefix)/include
|
||||||
-@mkdir $(prefix)/lib
|
-@mkdir $(prefix)/lib
|
||||||
@ -82,3 +87,9 @@
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o libpng.a pngtest pngout.png
|
rm -f *.o libpng.a pngtest pngout.png
|
||||||
|
@@ -69,4 +98,5 @@
|
||||||
|
pngwtran.o: png.h pngconf.h
|
||||||
|
pngwutil.o: png.h pngconf.h
|
||||||
|
pngpread.o: png.h pngconf.h
|
||||||
|
+pnggccrd.o: png.h pngconf.h pngasmrd.h
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user