diff options
author | Brandon Low <lostlogic@gentoo.org> | 2003-01-15 22:59:40 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@gentoo.org> | 2003-01-15 22:59:40 +0000 |
commit | 2aa9ac487f5e4daf244e1aeab1b184860fd334a0 (patch) | |
tree | 7b2eb68650bb175cdf29dcb83ac13cb70f3f9f43 /media-libs/libgd | |
parent | fix gcc not finding internal headers, bug #8132 (diff) | |
download | gentoo-2-2aa9ac487f5e4daf244e1aeab1b184860fd334a0.tar.gz gentoo-2-2aa9ac487f5e4daf244e1aeab1b184860fd334a0.tar.bz2 gentoo-2-2aa9ac487f5e4daf244e1aeab1b184860fd334a0.zip |
remove supersed dependency
Diffstat (limited to 'media-libs/libgd')
-rw-r--r-- | media-libs/libgd/ChangeLog | 8 | ||||
-rw-r--r-- | media-libs/libgd/files/digest-libgd-1.8.3-r6 | 1 | ||||
-rw-r--r-- | media-libs/libgd/libgd-1.8.3-r6.ebuild | 81 |
3 files changed, 89 insertions, 1 deletions
diff --git a/media-libs/libgd/ChangeLog b/media-libs/libgd/ChangeLog index 2e482e2daf67..c0830d812a42 100644 --- a/media-libs/libgd/ChangeLog +++ b/media-libs/libgd/ChangeLog @@ -1,9 +1,15 @@ # 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.10 2002/12/13 10:59:35 blizzy Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libgd/ChangeLog,v 1.11 2003/01/15 22:59:40 lostlogic Exp $ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords +*libgd-1.8.3-r6 (15 Jan 2003) + + 15 Jan 2003; Brandon Low <lostlogic@gentoo.org> libgd-1.8.3-r6.ebuild: + Drop dependancy on supersed, switch to >=sed-4.0. This is unstable on the + ppc pending the stability of sed-4 on the ppc. + *libgd-2.0.1 (9 Sep 2002) 14 Sep 2002; <mcummings@gentoo.org> : bzip'd patch and moved to mirror diff --git a/media-libs/libgd/files/digest-libgd-1.8.3-r6 b/media-libs/libgd/files/digest-libgd-1.8.3-r6 new file mode 100644 index 000000000000..1ebc96c7257d --- /dev/null +++ b/media-libs/libgd/files/digest-libgd-1.8.3-r6 @@ -0,0 +1 @@ +MD5 ad0e7dd1dda2812dbaeaa9706c4be536 gd-1.8.3.tar.gz 274318 diff --git a/media-libs/libgd/libgd-1.8.3-r6.ebuild b/media-libs/libgd/libgd-1.8.3-r6.ebuild new file mode 100644 index 000000000000..e25cd389fd9c --- /dev/null +++ b/media-libs/libgd/libgd-1.8.3-r6.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2002 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.3-r6.ebuild,v 1.1 2003/01/15 22:59:40 lostlogic 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=">=sys-apps/sed-4.0 + 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_JPEG" \ + && libsopts="${libsopts} -ljpeg" + + + compopts="${compopts} -DHAVE_PNG" \ + libsopts="${libsopts} -lpng" + + use truetype \ + && compopts="${compopts} -DHAVE_LIBTTF" \ + && libsopts="${libsopts} -lttf" + + if use truetype + then + sed -i -e "s:^\(CFLAGS\)=.*:\1=${CFLAGS} ${compopts} :" \ + -e "s:^\(LIBS\)=.*:\1=-lm -lgd -lz ${libsopts}:" \ + -e "s:^\(INCLUDEDIRS\)=:\1=-I/usr/include/freetype :" \ + Makefile + else + sed -i -e "s:^\(CFLAGS\)=.*:\1=${CFLAGS} ${compopts} :" \ + -e "s:^\(LIBS\)=.*:\1=-lm -lgd -lz ${libsopts}:" \ + 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 ./ +} |