diff options
author | mi <mi@FreeBSD.org> | 2003-10-20 22:05:04 +0800 |
---|---|---|
committer | mi <mi@FreeBSD.org> | 2003-10-20 22:05:04 +0800 |
commit | 025c15c2912d6f31e7672450346f0b6db7c03ea9 (patch) | |
tree | e4b1bad83f6248e6575a8c1cd4e516ee1be2f29d /graphics/png | |
parent | 64072c7130c47d3d4a81ec3d945edbd2a3dc7ac4 (diff) | |
download | freebsd-ports-graphics-025c15c2912d6f31e7672450346f0b6db7c03ea9.tar.gz freebsd-ports-graphics-025c15c2912d6f31e7672450346f0b6db7c03ea9.tar.zst freebsd-ports-graphics-025c15c2912d6f31e7672450346f0b6db7c03ea9.zip |
Minor enhancements, not affecting the resulting package:
. run the vendor-supplied test automaticly upon building;
. link the vendor-supplied test dynamicly (using -rpath to
force the usage of the just-built library) -- to add another
implicit test of the shared library's validity;
. reword one of the shell commands as ``sed ... file'' instead
of ``cat file | sed ...'';
. modify one of the files to make it properly compilable by the
icc -- gcc was, apparently, optimizing the junk out anyway.
Approved by: maintainer (ache)
Diffstat (limited to 'graphics/png')
-rw-r--r-- | graphics/png/Makefile | 5 | ||||
-rw-r--r-- | graphics/png/files/patch-aa | 14 | ||||
-rw-r--r-- | graphics/png/files/patch-icc | 53 |
3 files changed, 68 insertions, 4 deletions
diff --git a/graphics/png/Makefile b/graphics/png/Makefile index 12cbb331302..8617921b12f 100644 --- a/graphics/png/Makefile +++ b/graphics/png/Makefile @@ -22,6 +22,7 @@ MAINTAINER= ache@FreeBSD.org COMMENT= Library for manipulating PNG images MAKEFILE= ${WRKSRC}/scripts/makefile.freebsd +ALL_TARGET= all test INSTALLS_SHLIB= yes SHLIB_VER= 5 @@ -44,8 +45,8 @@ pre-install: ${MKDIR} ${PREFIX}/libdata/pkgconfig post-install: - ${CAT} ${WRKSRC}/scripts/libpng.pc.in | ${SED} -e \ - 's|@PREFIX@|${PREFIX}|' > ${WRKSRC}/scripts/libpng.pc + ${SED} -e 's|@PREFIX@|${PREFIX}|' ${WRKSRC}/scripts/libpng.pc.in \ + > ${WRKSRC}/scripts/libpng.pc ${INSTALL_DATA} ${WRKSRC}/scripts/libpng.pc \ ${PREFIX}/libdata/pkgconfig/libpng12.pc diff --git a/graphics/png/files/patch-aa b/graphics/png/files/patch-aa index 1d3c9840bfe..e676e57368a 100644 --- a/graphics/png/files/patch-aa +++ b/graphics/png/files/patch-aa @@ -1,5 +1,5 @@ ---- scripts/makefile.freebsd.bak Sat May 18 18:46:45 2002 -+++ scripts/makefile.freebsd Thu May 30 08:55:41 2002 +--- scripts/makefile.freebsd Sat May 18 10:46:45 2002 ++++ scripts/makefile.freebsd Mon Oct 20 00:05:40 2003 @@ -25,7 +25,7 @@ DPADD+= ${LIBM} ${LIBZ} @@ -9,3 +9,13 @@ CFLAGS+= -DPNG_NO_ASSEMBLER_CODE .endif +@@ -34,7 +34,7 @@ + pngwtran.c pngmem.c pngerror.c pngpread.c pnggccrd.c + +-pngtest: pngtest.o libpng.a ++pngtest: pngtest.o ${SHLIB_NAME} +- ${CC} ${CFLAGS} -L. -static -o pngtest pngtest.o -lpng -lz -lm ++ ${CC} ${CFLAGS} -L. -Wl,-rpath=${.OBJDIR} -o pngtest pngtest.o -lpng -lz -lm + + CLEANFILES= pngtest pngtest.o pngout.png + diff --git a/graphics/png/files/patch-icc b/graphics/png/files/patch-icc new file mode 100644 index 00000000000..6fcef39d88b --- /dev/null +++ b/graphics/png/files/patch-icc @@ -0,0 +1,53 @@ +This patch is needed by Intel's C Compiler (icc), which otherwise +gets confused and treats _const4 and _const6 as undefined symbols. + +I don't see, how it can hurt the GCC either. + + -mi + +--- pnggccrd.c Thu Oct 3 07:32:28 2002 ++++ pnggccrd.c Sun Oct 19 23:55:15 2003 +@@ -327,7 +327,7 @@ + static unsigned long long _mask48_0 = 0x4040808080808080LL; + +-static unsigned long long _const4 = 0x0000000000FFFFFFLL; ++static const unsigned long long _const4 = 0x0000000000FFFFFFLL; + //static unsigned long long _const5 = 0x000000FFFFFF0000LL; // NOT USED +-static unsigned long long _const6 = 0x00000000000000FFLL; ++static const unsigned long long _const6 = 0x00000000000000FFLL; + + // These are used in the row-filter routines and should/would be local +@@ -344,33 +344,4 @@ + #endif + +-void /* PRIVATE */ +-png_squelch_warnings(void) +-{ +-#ifdef PNG_THREAD_UNSAFE_OK +- _dif = _dif; +- _patemp = _patemp; +- _pbtemp = _pbtemp; +- _pctemp = _pctemp; +- _MMXLength = _MMXLength; +-#endif +- _const4 = _const4; +- _const6 = _const6; +- _mask8_0 = _mask8_0; +- _mask16_1 = _mask16_1; +- _mask16_0 = _mask16_0; +- _mask24_2 = _mask24_2; +- _mask24_1 = _mask24_1; +- _mask24_0 = _mask24_0; +- _mask32_3 = _mask32_3; +- _mask32_2 = _mask32_2; +- _mask32_1 = _mask32_1; +- _mask32_0 = _mask32_0; +- _mask48_5 = _mask48_5; +- _mask48_4 = _mask48_4; +- _mask48_3 = _mask48_3; +- _mask48_2 = _mask48_2; +- _mask48_1 = _mask48_1; +- _mask48_0 = _mask48_0; +-} + #endif /* PNG_ASSEMBLER_CODE_SUPPORTED */ + |