diff options
author | adam <adam@pkgsrc.org> | 2005-07-13 14:52:39 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2005-07-13 14:52:39 +0000 |
commit | 33e7e10884099a929a7d5ba12c25422473347597 (patch) | |
tree | 45f4c8b35772fe743f9544ad50437161203929c7 /graphics/optipng | |
parent | 955af1f9e49981f0c6fb2a0dd0b8de41cb78d02b (diff) | |
download | pkgsrc-33e7e10884099a929a7d5ba12c25422473347597.tar.gz |
OptiPNG is a PNG optimizer that recompresses the image files to a smaller size,
without losing any information. The idea has been inspired from pngcrush, and
is explained in detail in the PNG-Tech article: "A Guide to PNG optimization"
<http://www.cs.toronto.edu/~cosmin/pngtech/optipng.html>. The implementation
is carried forward in OptiPNG, which offers a faster execution per trial, and
a wider search space.
Diffstat (limited to 'graphics/optipng')
-rw-r--r-- | graphics/optipng/DESCR | 6 | ||||
-rw-r--r-- | graphics/optipng/Makefile | 14 | ||||
-rw-r--r-- | graphics/optipng/PLIST | 2 | ||||
-rw-r--r-- | graphics/optipng/distinfo | 7 | ||||
-rw-r--r-- | graphics/optipng/patches/patch-aa | 21 | ||||
-rw-r--r-- | graphics/optipng/patches/patch-ab | 14 |
6 files changed, 64 insertions, 0 deletions
diff --git a/graphics/optipng/DESCR b/graphics/optipng/DESCR new file mode 100644 index 00000000000..b5bfa5c35d7 --- /dev/null +++ b/graphics/optipng/DESCR @@ -0,0 +1,6 @@ +OptiPNG is a PNG optimizer that recompresses the image files to a smaller size, +without losing any information. The idea has been inspired from pngcrush, and +is explained in detail in the PNG-Tech article: "A Guide to PNG optimization" +<http://www.cs.toronto.edu/~cosmin/pngtech/optipng.html>. The implementation +is carried forward in OptiPNG, which offers a faster execution per trial, and +a wider search space. diff --git a/graphics/optipng/Makefile b/graphics/optipng/Makefile new file mode 100644 index 00000000000..91fad38e8f5 --- /dev/null +++ b/graphics/optipng/Makefile @@ -0,0 +1,14 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/07/13 14:52:39 adam Exp $ + +DISTNAME= optipng-0.4.8 +CATEGORIES= graphics +MASTER_SITES= http://www.cs.toronto.edu/~cosmin/pngtech/optipng/ + +MAINTAINER= adam@NetBSD.org +HOMEPAGE= http://www.cs.toronto.edu/~cosmin/pngtech/optipng/ +COMMENT= Advances PNG Optimizer + +WRKSRC= ${WRKDIR}/${DISTNAME}/src + +.include "../../graphics/png/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/optipng/PLIST b/graphics/optipng/PLIST new file mode 100644 index 00000000000..6b079bb04a5 --- /dev/null +++ b/graphics/optipng/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/07/13 14:52:39 adam Exp $ +bin/optipng diff --git a/graphics/optipng/distinfo b/graphics/optipng/distinfo new file mode 100644 index 00000000000..ee544579d61 --- /dev/null +++ b/graphics/optipng/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/07/13 14:52:39 adam Exp $ + +SHA1 (optipng-0.4.8.tar.gz) = e1b7c00d276828bb9324011d1a19c7916307fdff +RMD160 (optipng-0.4.8.tar.gz) = 0484daacbdba1b7e7c424d3af24f34b9a7e3177f +Size (optipng-0.4.8.tar.gz) = 666570 bytes +SHA1 (patch-aa) = aca716bdffabecad8f6c024c16751f61483c3659 +SHA1 (patch-ab) = e044f6cde38c4e3c1f95c38934daaa938e11b101 diff --git a/graphics/optipng/patches/patch-aa b/graphics/optipng/patches/patch-aa new file mode 100644 index 00000000000..f7b2e7b2ecb --- /dev/null +++ b/graphics/optipng/patches/patch-aa @@ -0,0 +1,21 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/07/13 14:52:39 adam Exp $ + +--- /dev/null 2005-07-13 16:20:21.000000000 +0000 ++++ Makefile +@@ -0,0 +1,16 @@ ++OBJS = optipng.o opngio.o opngreduc.o cbitset.o osys.o ++ ++all: $(OBJS) ++ $(CC) -o optipng $(LDFLAGS) $(OBJS) -lz -lpng ++ ++.c.o: ++ $(CC) -c $(CFLAGS) -I${PREFIX}/include $*.c ++ ++optipng.o : optipng.c opng.h osys.h cbitset.h cexcept.h ++opngio.o : opngio.c opng.h ++opngreduc.o: opngreduc.c opng.h ++cbitset.o : cbitset.c cbitset.h ++osys.o : osys.c osys.h ++ ++install: ++ ${BSD_INSTALL_PROGRAM} optipng ${PREFIX}/bin diff --git a/graphics/optipng/patches/patch-ab b/graphics/optipng/patches/patch-ab new file mode 100644 index 00000000000..8b1fd5812de --- /dev/null +++ b/graphics/optipng/patches/patch-ab @@ -0,0 +1,14 @@ +$NetBSD: patch-ab,v 1.1.1.1 2005/07/13 14:52:39 adam Exp $ + +--- opng.h.orig 2005-07-13 16:41:40.000000000 +0000 ++++ opng.h +@@ -33,9 +33,6 @@ + + #include "png.h" + +-#if !(PNG_LIBPNG_BUILD_TYPE & PNG_LIBPNG_BUILD_PRIVATE) +-#error This program requires the BUNDLED libpng version 1.0.x-optipng +-#endif + + + #define OPNG_IMAGE_REDUCTIONS_SUPPORTED /* implemented here */ |