diff options
author | Michael Cummings <mcummings@gentoo.org> | 2002-09-10 01:55:15 +0000 |
---|---|---|
committer | Michael Cummings <mcummings@gentoo.org> | 2002-09-10 01:55:15 +0000 |
commit | 8bfc67d917bcca7c136fcd1e9aaf74bfd2addd6d (patch) | |
tree | d94c724242efab552dcfd0839b00a24cbdb2a297 /media-libs/libgd | |
parent | Added a if ARCH = ppc and set CXXFLAGS to be less aggressive (it segfaults on... (diff) | |
download | gentoo-2-8bfc67d917bcca7c136fcd1e9aaf74bfd2addd6d.tar.gz gentoo-2-8bfc67d917bcca7c136fcd1e9aaf74bfd2addd6d.tar.bz2 gentoo-2-8bfc67d917bcca7c136fcd1e9aaf74bfd2addd6d.zip |
New ebuild corrects reported problems with gd support
Diffstat (limited to 'media-libs/libgd')
-rw-r--r-- | media-libs/libgd/ChangeLog | 6 | ||||
-rw-r--r-- | media-libs/libgd/files/digest-libgd-2.0.1 | 1 | ||||
-rw-r--r-- | media-libs/libgd/libgd-2.0.1.ebuild | 64 |
3 files changed, 70 insertions, 1 deletions
diff --git a/media-libs/libgd/ChangeLog b/media-libs/libgd/ChangeLog index 41a6dcde8428..9561a96569ff 100644 --- a/media-libs/libgd/ChangeLog +++ b/media-libs/libgd/ChangeLog @@ -1,7 +1,11 @@ # 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.5 2002/08/07 05:09:50 gerk Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libgd/ChangeLog,v 1.6 2002/09/10 01:55:15 mcummings Exp $ +*libgd-2.0.1 (9 Sep 2002) + 9 Sep 2002; <mcummings@gentoo.org> : + Fixes bugs with perl versions using gd; corrects a few compile options + *libgd-1.8.3-r5 (12 Apr 2002) 07 Aug 2002; Mark Guertin <gerk@gentoo.org> : Added ppc to keywords diff --git a/media-libs/libgd/files/digest-libgd-2.0.1 b/media-libs/libgd/files/digest-libgd-2.0.1 new file mode 100644 index 000000000000..bacd566c6a64 --- /dev/null +++ b/media-libs/libgd/files/digest-libgd-2.0.1 @@ -0,0 +1 @@ +MD5 43af994a97f3300a1165ca4888176ece gd-2.0.1.tar.gz 436945 diff --git a/media-libs/libgd/libgd-2.0.1.ebuild b/media-libs/libgd/libgd-2.0.1.ebuild new file mode 100644 index 000000000000..85c29fed4ab9 --- /dev/null +++ b/media-libs/libgd/libgd-2.0.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Original from libgd-1.8.3-r3.ebuild slightly edited for libgd-2.0.1 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libgd/libgd-2.0.1.ebuild,v 1.1 2002/09/10 01:55:15 mcummings Exp $ + +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" + +DEPEND=">=media-libs/jpeg-6b + >=media-libs/libpng-1.0.7 + >=media-libs/freetype-2.0.9 + X? ( virtual/x11 )" + +src_unpack() { + + unpack ${A} + cd ${S} + patch -p <${FILESDIR}/gd-2.0.1.patch + cp Makefile Makefile.orig + if [ "`use X`" ] + then + sed -e "s/^\(CFLAGS\)=.*/\1=$CFLAGS -DHAVE_XPM -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -DHAVE_LIBPNG /" \ + -e "s/^\(LIBS\)=.*/\1=-lm -lgd -lpng -lz -ljpeg -lfreetype -lXpm -lX11/" \ + -e "s/^\(INCLUDEDIRS\)=/\1=-I\/usr\/include\/freetype /" \ + -e "s/^\(LIBDIRS\)=/\1=-L\$(INSTALL_LIB) /" \ + Makefile.orig > Makefile + else + sed -e "s/^\(CFLAGS\)=.*/\1=$CFLAGS -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -DHAVE_LIBPNG /" \ + -e "s/^\(LIBS\)=.*/\1=-lm -lgd -lpng -lz -ljpeg -lfreetype/" \ + -e "s/^\(INCLUDEDIRS\)=/\1=-I\/usr\/include\/freetype /" \ + -e "s/^\(LIBDIRS\)=/\1=-L\$(INSTALL_LIB) /" \ + 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 ./ +} |