aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--graphics/png/Makefile1
-rw-r--r--graphics/png/files/patch-aa16
2 files changed, 11 insertions, 6 deletions
diff --git a/graphics/png/Makefile b/graphics/png/Makefile
index 6d7cae7ec623..059599edc9ab 100644
--- a/graphics/png/Makefile
+++ b/graphics/png/Makefile
@@ -12,6 +12,7 @@ CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= lib${PORTNAME}
DISTNAME= lib${PORTNAME}-${PORTVERSION}
+
PATCH_SITES= ${MASTER_SITES}
#PATCH_SITE_SUBDIR= ${MASTER_SITE_SUBDIR}
#PATCHFILES=
diff --git a/graphics/png/files/patch-aa b/graphics/png/files/patch-aa
index bab843ac6da9..2bac1cb5f3d2 100644
--- a/graphics/png/files/patch-aa
+++ b/graphics/png/files/patch-aa
@@ -1,13 +1,17 @@
---- scripts/makefile.freebsd.orig Sat May 18 18:46:45 2002
-+++ scripts/makefile.freebsd Mon Apr 24 17:59:39 2006
-@@ -8,26 +8,26 @@
+--- scripts/makefile.freebsd.orig Sat May 18 22:46:45 2002
++++ scripts/makefile.freebsd Thu Apr 27 23:54:36 2006
+@@ -8,26 +8,31 @@
LIB= png
SHLIB_MAJOR= ${SHLIB_VER}
SHLIB_MINOR= 0
--NOPROFILE= YES
--NOOBJ= YES
++.if (${OSVERSION} > 600007)
+NO_PROFILE= YES
+NO_OBJ= YES
++.else
+ NOPROFILE= YES
+-NOOBJ= YES
++NOOBJ= YES
++.endif
# where make install puts libpng.a and png.h
-DESTDIR= ${PREFIX}
@@ -36,7 +40,7 @@
SRCS= png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
-@@ -44,5 +44,23 @@
+@@ -44,5 +49,23 @@
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
writelock:
chmod a-w *.[ch35] $(DOCS) scripts/*