diff options
Diffstat (limited to 'graphics/png/files/patch-aa')
-rw-r--r-- | graphics/png/files/patch-aa | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/graphics/png/files/patch-aa b/graphics/png/files/patch-aa index e42a97dc39d6..396cec04bdf7 100644 --- a/graphics/png/files/patch-aa +++ b/graphics/png/files/patch-aa @@ -1,47 +1,45 @@ ---- scripts/makefile.freebsd.orig Sat Feb 25 15:37:11 2006 -+++ scripts/makefile.freebsd Thu Jul 27 22:03:50 2006 -@@ -8,27 +8,26 @@ +--- scripts/makefile.freebsd.orig 2007-06-21 02:10:26.000000000 +0400 ++++ scripts/makefile.freebsd 2007-10-13 17:24:24.000000000 +0400 +@@ -8,26 +8,27 @@ LIB= png SHLIB_MAJOR= ${SHLIB_VER} SHLIB_MINOR= 0 +-NOPROFILE= YES +.if (${OSVERSION} > 600007) -+NO_PROFILE= YES -+NO_OBJ= YES ++NO_PROFILE= YES ++NO_OBJ= YES +.else - NOPROFILE= YES --NOOBJ= YES -+NOOBJ= YES ++NOPROFILE= YES + NOOBJ= YES +.endif # where make install puts libpng.a and png.h -DESTDIR= ${PREFIX} -LIBDIR= /lib -+LIBDIR= ${PREFIX}/lib ++LIBDIR= ${PREFIX}/lib INCS= png.h pngconf.h -INCSDIR= /include/libpng -+INCSDIR= ${PREFIX}/include/libpng ++INCSDIR= ${PREFIX}/include/libpng INCDIR= ${INCSDIR} # for 4.x bsd.lib.mk MAN= libpng.3 libpngpf.3 png.5 -MANDIR= /man/man -+MANDIR= ${PREFIX}/man/man ++MANDIR= ${PREFIX}/man/man SYMLINKS= libpng/png.h ${INCSDIR}/../png.h \ libpng/pngconf.h ${INCSDIR}/../pngconf.h LDADD+= -lm -lz DPADD+= ${LIBM} ${LIBZ} --CFLAGS+= -I. -DPNG_USE_PNGGCCRD + CFLAGS+= -I. -.if (${MACHINE_ARCH} != "i386") -CFLAGS+= -DPNG_NO_MMX_CODE -.endif -- + SRCS= png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \ pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \ - pngwtran.c pngmem.c pngerror.c pngpread.c pnggccrd.c -@@ -44,5 +43,23 @@ - DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO +@@ -45,4 +46,22 @@ writelock: chmod a-w *.[ch35] $(DOCS) scripts/* -+ + +libpng-config: + ( cat scripts/libpng-config-head.in; \ + echo prefix=\"${PREFIX}\"; \ @@ -59,5 +57,5 @@ + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + libpng-config ${PREFIX}/bin + ln -sf libpng-config ${PREFIX}/bin/libpng12-config - ++ .include <bsd.lib.mk> |