diff options
author | Tavis Ormandy <taviso@gentoo.org> | 2003-10-31 12:54:37 +0000 |
---|---|---|
committer | Tavis Ormandy <taviso@gentoo.org> | 2003-10-31 12:54:37 +0000 |
commit | aa2f902ad66e9c88855c98e936c1036a31890e07 (patch) | |
tree | 11cfa9aae0c9bf8a1a11a68b8421e49fabdaaacb /media-gfx | |
parent | initial import (diff) | |
download | gentoo-2-aa2f902ad66e9c88855c98e936c1036a31890e07.tar.gz gentoo-2-aa2f902ad66e9c88855c98e936c1036a31890e07.tar.bz2 gentoo-2-aa2f902ad66e9c88855c98e936c1036a31890e07.zip |
initial import
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/optipng/ChangeLog | 12 | ||||
-rw-r--r-- | media-gfx/optipng/Manifest | 4 | ||||
-rw-r--r-- | media-gfx/optipng/files/digest-optipng-0.4.3 | 1 | ||||
-rw-r--r-- | media-gfx/optipng/files/optipng-more-makefile-options.diff | 38 | ||||
-rw-r--r-- | media-gfx/optipng/metadata.xml | 12 | ||||
-rw-r--r-- | media-gfx/optipng/optipng-0.4.3.ebuild | 65 |
6 files changed, 131 insertions, 1 deletions
diff --git a/media-gfx/optipng/ChangeLog b/media-gfx/optipng/ChangeLog new file mode 100644 index 000000000000..125c2558080c --- /dev/null +++ b/media-gfx/optipng/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for media-gfx/optipng +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/ChangeLog,v 1.1 2003/10/31 12:54:29 taviso Exp $ + +*optipng-0.4.3 (31 Oct 2003) + + 31 Oct 2003; Tavis Ormandy <taviso@gentoo.org> optipng-0.4.3.ebuild, + files/optipng-more-makefile-options.diff: + Initial import, closing bug #23157. + Thanks to brian@jubue.org, who provided the ebuild this was based + on in #23157. + diff --git a/media-gfx/optipng/Manifest b/media-gfx/optipng/Manifest index 1ebd0ef951fe..8128765dc1a4 100644 --- a/media-gfx/optipng/Manifest +++ b/media-gfx/optipng/Manifest @@ -1,3 +1,5 @@ -MD5 a98fe34529256f6cbb6b74c7d71fb531 optipng-0.4.3.ebuild 1640 +MD5 dc8365e3798272938f41a7963e584193 optipng-0.4.3.ebuild 1757 +MD5 23541b9e03ee336c7dd2d71ca5871dda ChangeLog 486 +MD5 d1fd781dd463a1e5d87df46fad732ec6 metadata.xml 400 MD5 776935461c2653df2b47f23f7b7c60d7 files/digest-optipng-0.4.3 65 MD5 eab5451d70e601bb80438372adbcc3cd files/optipng-more-makefile-options.diff 1423 diff --git a/media-gfx/optipng/files/digest-optipng-0.4.3 b/media-gfx/optipng/files/digest-optipng-0.4.3 new file mode 100644 index 000000000000..f8b671d7617c --- /dev/null +++ b/media-gfx/optipng/files/digest-optipng-0.4.3 @@ -0,0 +1 @@ +MD5 3ed23ff9c204d7ffbd0fa6b3c53d830e optipng-0.4.3.tar.gz 555842 diff --git a/media-gfx/optipng/files/optipng-more-makefile-options.diff b/media-gfx/optipng/files/optipng-more-makefile-options.diff new file mode 100644 index 000000000000..872bc634db49 --- /dev/null +++ b/media-gfx/optipng/files/optipng-more-makefile-options.diff @@ -0,0 +1,38 @@ +--- scripts/Makefile.gcc.orig 2003-10-31 11:49:17.000000000 +0000 ++++ scripts/Makefile.gcc 2003-10-31 12:17:46.000000000 +0000 +@@ -3,19 +3,26 @@ + + 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 \ +- wildargs.o libpng.a libz.a ++optipng: CFLAGS += -I../lib-cos/zlib -I../lib-cos/libpng ++optipng: optipng.o opngio.o opngreduc.o cbitset.o libpng.a libz.a ++ ${CC} ${LDFLAGS} -o optipng optipng.o opngio.o opngreduc.o cbitset.o libpng.a libz.a ++ ++optipng-extpng: CFLAGS += -I../lib-cos/libpng ++optipng-extpng: optipng.o opngio.o opngreduc.o cbitset.o libz.a ++ ${CC} ${LDFLAGS} -lpng -o optipng optipng.o opngio.o opngreduc.o cbitset.o libz.a ++ ++optipng-extzlib: CFLAGS += -I../lib-cos/zlib ++optipng-extzlib: optipng.o opngio.o opngreduc.o cbitset.o libpng.a ++ ${CC} ${LDFLAGS} -lz -o optipng optipng.o opngio.o opngreduc.o cbitset.o libpng.a ++ ++optipng-allext: optipng.o opngio.o opngreduc.o cbitset.o ++ ${CC} ${LDFLAGS} -lpng -lz -o optipng optipng.o opngio.o opngreduc.o cbitset.o + + .c.o: #png.h opng.h +- gcc -c -O2 -I../lib-cos/zlib -I../lib-cos/libpng -Wall $*.c ++ gcc ${CFLAGS} -c $*.c + + cbitset.o: cbitset.c cbitset.h +- gcc -c -O2 -Wall $*.c +- +-wildargs.o: xtra/wildargs.c +- gcc -c -O2 xtra/wildargs.c ++ gcc ${CFLAGS} -c $*.c + + libpng.a: ../lib-cos/libpng/libpng.a + cp ../lib-cos/libpng/libpng.a libpng.a diff --git a/media-gfx/optipng/metadata.xml b/media-gfx/optipng/metadata.xml new file mode 100644 index 000000000000..eea4d1c78308 --- /dev/null +++ b/media-gfx/optipng/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>taviso@gentoo.org</email> + <name>Tavis Ormandy</name> +</maintainer> +<longdescription> +OptiPNG is a PNG optimizer that recompresses the image files to a smaller size, without losing any information. +</longdescription> +</pkgmetadata> diff --git a/media-gfx/optipng/optipng-0.4.3.ebuild b/media-gfx/optipng/optipng-0.4.3.ebuild new file mode 100644 index 000000000000..de57c2123b64 --- /dev/null +++ b/media-gfx/optipng/optipng-0.4.3.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/optipng-0.4.3.ebuild,v 1.1 2003/10/31 12:54:29 taviso Exp $ + +DESCRIPTION="PNG optimizing utility" +SRC_URI="http://www.cs.toronto.edu/~cosmin/pngtech/optipng/${P}.tar.gz" +HOMEPAGE="http://www.cs.toronto.edu/~cosmin/pngtech/optipng/" + +LICENSE="as-is" + +SLOT="0" +KEYWORDS="~x86 ~ppc ~alpha" + +IUSE="ext-png ext-zlib" + +DEPEND="virtual/glibc + ext-png? ( media-libs/libpng ) + ext-zlib? ( sys-libs/zlib )" + +S=${WORKDIR}/${P} + +src_unpack() { + unpack ${A} + + # optionally use the system binaries, rather than the bundled + # patched versions (some archs/configurations require patches + # not included here) + cd ${S}/src; epatch ${FILESDIR}/${PN}-more-makefile-options.diff +} + +src_compile() { + cd ${S}/src + + # some logic to decide which version to build... + if ! use ext-png; then + if ! use ext-zlib; then + # use the included patched zlib/libpng + einfo "Building ${PN} with bundled libraries..." + emake -f scripts/Makefile.gcc optipng + else + # use the system zlib. + einfo "Building ${PN} with bundled libpng..." + emake -f scripts/Makefile.gcc optipng-extzlib + fi + else + if use ext-zlib; then + # use the system zlib and libpng. + einfo "Building ${PN} without bundled libraries..." + emake -f scripts/Makefile.gcc optipng-allext + else + # use the system libpng. + einfo "Building ${PN} with bundled zlib..." + emake -f scripts/Makefile.gcc optipng-extpng + fi + fi + + # some feedback everything went ok... + echo; ls -l optipng; size optipng +} + +src_install() { + dobin optipng + dodoc ${S}/doc/{CAVEAT,DESIGN,FEATURES,HISTORY,LICENSE,README,TODO,USAGE} + dohtml ${S}/doc/index.html +} |