diff options
author | D.M.D. Ljungmark <spider@gentoo.org> | 2002-04-12 21:57:33 +0000 |
---|---|---|
committer | D.M.D. Ljungmark <spider@gentoo.org> | 2002-04-12 21:57:33 +0000 |
commit | 7ab03e5d83679f8e99c6426915637023db3ae9aa (patch) | |
tree | 81280581da3c5a8883fb1ec6fe1a648e1b32d77a /media-libs/libgd | |
parent | libpng update in new revision (diff) | |
download | gentoo-2-7ab03e5d83679f8e99c6426915637023db3ae9aa.tar.gz gentoo-2-7ab03e5d83679f8e99c6426915637023db3ae9aa.tar.bz2 gentoo-2-7ab03e5d83679f8e99c6426915637023db3ae9aa.zip |
libpng update
Diffstat (limited to 'media-libs/libgd')
-rw-r--r-- | media-libs/libgd/ChangeLog | 5 | ||||
-rw-r--r-- | media-libs/libgd/files/digest-libgd-1.8.3-r5 | 1 | ||||
-rw-r--r-- | media-libs/libgd/libgd-1.8.3-r5.ebuild | 58 |
3 files changed, 63 insertions, 1 deletions
diff --git a/media-libs/libgd/ChangeLog b/media-libs/libgd/ChangeLog index 963340f34f7d..09c5b5ff1c9e 100644 --- a/media-libs/libgd/ChangeLog +++ b/media-libs/libgd/ChangeLog @@ -1,7 +1,10 @@ # ChangeLog for media-libs/libgd # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/media-libs/libgd/ChangeLog,v 1.3 2002/04/03 22:20:46 blocke Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libgd/ChangeLog,v 1.4 2002/04/12 21:53:57 spider Exp $ +*libgd-1.8.3-r5 (12 Apr 2002) + 12 Apr 2002; Spider <spider@gentoo.org> libgd-1.8.3-r5.ebuild : + Updating revision with new libpng *libgd-1.8.3-r4 (3 Apr 2002) diff --git a/media-libs/libgd/files/digest-libgd-1.8.3-r5 b/media-libs/libgd/files/digest-libgd-1.8.3-r5 new file mode 100644 index 000000000000..1ebc96c7257d --- /dev/null +++ b/media-libs/libgd/files/digest-libgd-1.8.3-r5 @@ -0,0 +1 @@ +MD5 ad0e7dd1dda2812dbaeaa9706c4be536 gd-1.8.3.tar.gz 274318 diff --git a/media-libs/libgd/libgd-1.8.3-r5.ebuild b/media-libs/libgd/libgd-1.8.3-r5.ebuild new file mode 100644 index 000000000000..6a53f03ea43e --- /dev/null +++ b/media-libs/libgd/libgd-1.8.3-r5.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/media-libs/libgd/libgd-1.8.3-r5.ebuild,v 1.1 2002/04/12 21:53:57 spider Exp $ + +MY_P=gd-1.8.3 +S=${WORKDIR}/${MY_P} +DESCRIPTION="A graphics library for fast image creation" +SRC_URI="http://www.boutell.com/gd/http/${MY_P}.tar.gz" +HOMEPAGE="http://www.boutell.com/gd/" + +DEPEND=">=media-libs/jpeg-6b + >=media-libs/libpng-1.0.7 + ~media-libs/freetype-1.3.1 + X? ( virtual/x11 )" + +src_unpack() { + + unpack ${A} + cd ${S} + cp Makefile Makefile.orig + if [ "`use X`" ] + then + sed -e "s/^\(CFLAGS\)=.*/\1=$CFLAGS -DHAVE_XPM -DHAVE_JPEG -DHAVE_LIBTTF -DHAVE_PNG /" \ + -e "s/^\(LIBS\)=.*/\1=-lm -lgd -lpng -lz -ljpeg -lttf -lXpm -lX11/" \ + -e "s/^\(INCLUDEDIRS\)=/\1=-I\/usr\/include\/freetype /" \ + Makefile.orig > Makefile + else + sed -e "s/^\(CFLAGS\)=.*/\1=$CFLAGS -DHAVE_JPEG -DHAVE_LIBTTF -DHAVE_PNG /" \ + -e "s/^\(LIBS\)=.*/\1=-lm -lgd -lpng -lz -ljpeg -lttf/" \ + -e "s/^\(INCLUDEDIRS\)=/\1=-I\/usr\/include\/freetype /" \ + Makefile.orig > Makefile + fi + +} + +src_compile() { + + emake || die + +} + +src_install() { + + dodir /usr/{bin,lib,include} + + make \ + INSTALL_LIB=${D}/usr/lib \ + INSTALL_BIN=${D}/usr/bin \ + INSTALL_INCLUDE=${D}/usr/include \ + install || die + + preplib /usr + + dodoc readme.txt + dohtml -r ./ + +} |