diff options
author | Robert Coie <rac@gentoo.org> | 2003-02-19 00:57:32 +0000 |
---|---|---|
committer | Robert Coie <rac@gentoo.org> | 2003-02-19 00:57:32 +0000 |
commit | 7445baee64a2bada8032514e0cbd3e2111bd2ecb (patch) | |
tree | 2ef109b1660749cef213185ba2ffc073f12d3a86 /media-libs/libgd | |
parent | defconfig updates from gerk (diff) | |
download | historical-7445baee64a2bada8032514e0cbd3e2111bd2ecb.tar.gz historical-7445baee64a2bada8032514e0cbd3e2111bd2ecb.tar.bz2 historical-7445baee64a2bada8032514e0cbd3e2111bd2ecb.zip |
adding 1.8.4 ebuild
Diffstat (limited to 'media-libs/libgd')
-rw-r--r-- | media-libs/libgd/ChangeLog | 9 | ||||
-rw-r--r-- | media-libs/libgd/files/digest-libgd-1.8.4 | 1 | ||||
-rw-r--r-- | media-libs/libgd/libgd-1.8.4.ebuild | 81 |
3 files changed, 90 insertions, 1 deletions
diff --git a/media-libs/libgd/ChangeLog b/media-libs/libgd/ChangeLog index b0cdd766d2e3..cd3bcb669b30 100644 --- a/media-libs/libgd/ChangeLog +++ b/media-libs/libgd/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-libs/libgd # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libgd/ChangeLog,v 1.16 2003/02/12 07:10:31 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libgd/ChangeLog,v 1.17 2003/02/19 00:57:32 rac Exp $ + +*libgd-1.8.3-r6 (18 Feb 2003) + + 18 Feb 2003; Robert Coie <rac@gentoo.org>; libgd-1.8.4.ebuild : + Based off of 1.8.3-r6, changed library defines HAVE_JPEG and + HAVE_PNG to HAVE_LIBJPEG and HAVE_LIBPNG to reflect upstream name + changes. *libgd-1.8.3-r6 (15 Jan 2003) diff --git a/media-libs/libgd/files/digest-libgd-1.8.4 b/media-libs/libgd/files/digest-libgd-1.8.4 new file mode 100644 index 000000000000..e41c6df5c626 --- /dev/null +++ b/media-libs/libgd/files/digest-libgd-1.8.4 @@ -0,0 +1 @@ +MD5 2aef76e79f206f9798233f025f5dd28d gd-1.8.4.tar.gz 257631 diff --git a/media-libs/libgd/libgd-1.8.4.ebuild b/media-libs/libgd/libgd-1.8.4.ebuild new file mode 100644 index 000000000000..83de2969f706 --- /dev/null +++ b/media-libs/libgd/libgd-1.8.4.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libgd/libgd-1.8.4.ebuild,v 1.1 2003/02/19 00:57:32 rac Exp $ + +IUSE="X" + +MY_P=${P/lib/} +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/" + +SLOT="0" +LICENSE="as-is | BSD" +KEYWORDS="~x86 ~ppc ~sparc" + +DEPEND="media-libs/libpng + X? ( virtual/x11 ) + jpeg? ( media-libs/jpeg ) + truetype? ( =media-libs/freetype-1.3* )" + +src_unpack() { + + unpack ${A} + cd ${S} + + local compopts + local libsopts + + use X \ + && compopts="${compopts} -DHAVE_XPM" \ + && libsopts="${libsopts} -lXpm -lX11" + + use jpeg \ + && compopts="${compopts} -DHAVE_LIBJPEG" \ + && libsopts="${libsopts} -ljpeg" + + + compopts="${compopts} -DHAVE_LIBPNG" \ + libsopts="${libsopts} -lpng" + + use truetype \ + && compopts="${compopts} -DHAVE_LIBTTF" \ + && libsopts="${libsopts} -lttf" + + mv Makefile Makefile.old || die + if [ `use truetype` ] + then + sed -e "s:^\(CFLAGS\)=.*:\1=${CFLAGS} ${compopts} :" \ + -e "s:^\(LIBS\)=.*:\1=-lm -lgd -lz ${libsopts}:" \ + -e "s:^\(INCLUDEDIRS\)=:\1=-I/usr/include/freetype :" \ + Makefile.old > Makefile || die + else + sed -e "s:^\(CFLAGS\)=.*:\1=${CFLAGS} ${compopts} :" \ + -e "s:^\(LIBS\)=.*:\1=-lm -lgd -lz ${libsopts}:" \ + Makefile.old > Makefile || die + 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 ./ +} |