diff options
author | krion <krion@FreeBSD.org> | 2003-07-23 22:04:26 +0000 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2003-07-23 22:04:26 +0000 |
commit | 82f22e6298292e98309a912774d60519e3e55df4 (patch) | |
tree | 21e10b5eb601268e7f4b05e3c0be7ee7b0df1f2e /graphics/optipng/files | |
parent | 1ab9ba79c66e52e5cc3490dd061bdc31986d7c73 (diff) | |
download | FreeBSD-ports-82f22e6298292e98309a912774d60519e3e55df4.zip FreeBSD-ports-82f22e6298292e98309a912774d60519e3e55df4.tar.gz |
New port: optipng-0.4.2
OptiPNG is a PNG optimizer that recompresses the image files to
a smaller size, without losing any information.
PR: 54260
Submitted by: Thomas Hurst <freaky@aagh.net>
Approved by: fjoe (mentor) (implicit)
Diffstat (limited to 'graphics/optipng/files')
-rw-r--r-- | graphics/optipng/files/patch-lib-cos-zlib-Makefile.in | 40 | ||||
-rw-r--r-- | graphics/optipng/files/patch-src-scripts-Makefile.gcc | 43 |
2 files changed, 83 insertions, 0 deletions
diff --git a/graphics/optipng/files/patch-lib-cos-zlib-Makefile.in b/graphics/optipng/files/patch-lib-cos-zlib-Makefile.in new file mode 100644 index 0000000..b4671ec --- /dev/null +++ b/graphics/optipng/files/patch-lib-cos-zlib-Makefile.in @@ -0,0 +1,40 @@ +--- lib-cos/zlib/Makefile.in.orig Mon Mar 11 18:58:30 2002 ++++ lib-cos/zlib/Makefile.in Wed Jul 9 02:36:33 2003 +@@ -12,28 +12,28 @@ + # To install in $HOME instead of /usr/local, use: + # make install prefix=$HOME + +-CC=cc ++CC?=cc + +-CFLAGS=-O ++CFLAGS?=-O + #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 + #CFLAGS=-g -DDEBUG + #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ + # -Wstrict-prototypes -Wmissing-prototypes + +-LDFLAGS=-L. -lz ++LDFLAGS=-L. -lz + LDSHARED=$(CC) +-CPP=$(CC) -E ++CPP?=$(CC) -E + + VER=1.1.4 + LIBS=libz.a + SHAREDLIB=libz.so + +-AR=ar rc +-RANLIB=ranlib +-TAR=tar +-SHELL=/bin/sh ++AR+= rc ++RANLIB?=ranlib ++TAR?=tar ++SHELL?=/bin/sh + +-prefix = /usr/local ++prefix ?= /usr/local + exec_prefix = ${prefix} + libdir = ${exec_prefix}/lib + includedir = ${prefix}/include diff --git a/graphics/optipng/files/patch-src-scripts-Makefile.gcc b/graphics/optipng/files/patch-src-scripts-Makefile.gcc new file mode 100644 index 0000000..235e5cb --- /dev/null +++ b/graphics/optipng/files/patch-src-scripts-Makefile.gcc @@ -0,0 +1,43 @@ +--- src/scripts/Makefile.gcc.orig Mon May 12 22:11:56 2003 ++++ src/scripts/Makefile.gcc Wed Jul 9 13:29:49 2003 +@@ -1,21 +1,25 @@ + # ** OptiPNG + # ** Quick and dirty makefile for GCC + ++CC?= gcc ++CFLAGS?= -pipe -O2 -g ++CP?= cp ++ + all: optipng + + optipng: optipng.o opngio.o opngreduc.o cbitset.o \ + wildargs.o libpng.a libz.a +- gcc -s -o optipng optipng.o opngio.o opngreduc.o cbitset.o \ ++ ${CC} ${CFLAGS} -o optipng optipng.o opngio.o opngreduc.o cbitset.o \ + wildargs.o libpng.a libz.a + + .c.o: #png.h opng.h +- gcc -c -O2 -I../lib-cos/zlib -I../lib-cos/libpng -Wall $*.c ++ ${CC} ${CFLAGS} -c -I../lib-cos/zlib -I../lib-cos/libpng -Wall $*.c + + cbitset.o: cbitset.c cbitset.h +- gcc -c -O2 -Wall $*.c ++ ${CC} ${CFLAGS} -c -Wall $*.c + + wildargs.o: xtra/wildargs.c +- gcc -c -O2 xtra/wildargs.c ++ ${CC} ${CFLAGS} -c xtra/wildargs.c + + libpng.a: ../lib-cos/libpng/libpng.a + cp ../lib-cos/libpng/libpng.a libpng.a +@@ -24,7 +28,8 @@ + cp ../lib-cos/zlib/libz.a libz.a + + ../lib-cos/libpng/libpng.a: ../lib-cos/zlib/libz.a +- cd ../lib-cos/libpng; ${MAKE} -f scripts/makefile.gcc; cd ../../src ++ cd ../lib-cos/libpng; ${MAKE} CFLAGS="-I../zlib ${CFLAGS}" -f scripts/makefile.freebsd libpng.a; cd ../../src + + ../lib-cos/zlib/libz.a: +- cd ../lib-cos/zlib; ./configure; ${MAKE}; cd ../../src ++# gcc 2.95 seems to break when using -O w/ x86. Force -O2 over -O0. ++ cd ../lib-cos/zlib; ./configure; ${MAKE} CFLAGS="${CFLAGS} -O2"; cd ../../src |