summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-12-27 06:16:23 +0000
committerMike Frysinger <vapier@gentoo.org>2003-12-27 06:16:23 +0000
commit9f38afdd526618f26f516a8957b5c57104b0be35 (patch)
tree7c87efa957df4bd88d04eb84e7af5783d509364b /media-libs/libgd
parentInitial import. (diff)
downloadhistorical-9f38afdd526618f26f516a8957b5c57104b0be35.tar.gz
historical-9f38afdd526618f26f516a8957b5c57104b0be35.tar.bz2
historical-9f38afdd526618f26f516a8957b5c57104b0be35.zip
ver bump + optional DEPENDs #36271
Diffstat (limited to 'media-libs/libgd')
-rw-r--r--media-libs/libgd/ChangeLog11
-rw-r--r--media-libs/libgd/files/digest-libgd-2.0.171
-rw-r--r--media-libs/libgd/libgd-2.0.17.ebuild63
3 files changed, 72 insertions, 3 deletions
diff --git a/media-libs/libgd/ChangeLog b/media-libs/libgd/ChangeLog
index 309c59139dca..c39cc53a5e99 100644
--- a/media-libs/libgd/ChangeLog
+++ b/media-libs/libgd/ChangeLog
@@ -1,12 +1,17 @@
# 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.34 2003/11/25 03:58:37 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libgd/ChangeLog,v 1.35 2003/12/27 06:16:23 vapier Exp $
- 24 Nov 2003; Aron Griffis <agriffis@gentoo.org> libgd-1.8.4-r2.ebuild:
- Stable on alpha
+*libgd-2.0.17 (27 Dec 2003)
+
+ 27 Dec 2003; Mike Frysinger <vapier@gentoo.org> :
+ Version bump + optionalize jpeg/png/xpm/freetype #36271.
*libgd-1.8.4-r2 (30 Jun 2003)
+ 24 Nov 2003; Aron Griffis <agriffis@gentoo.org> libgd-1.8.4-r2.ebuild:
+ Stable on alpha
+
02 Oct 2003; Mike Frysinger <vapier@gentoo.org> :
Make jpeg support optional again and fix it so that it'll actually
compile when jpeg is not present #23648.
diff --git a/media-libs/libgd/files/digest-libgd-2.0.17 b/media-libs/libgd/files/digest-libgd-2.0.17
new file mode 100644
index 000000000000..4f41a8dc63e3
--- /dev/null
+++ b/media-libs/libgd/files/digest-libgd-2.0.17
@@ -0,0 +1 @@
+MD5 a1c0b12e69df63c22c7f90a4e8618c83 gd-2.0.17.tar.gz 541198
diff --git a/media-libs/libgd/libgd-2.0.17.ebuild b/media-libs/libgd/libgd-2.0.17.ebuild
new file mode 100644
index 000000000000..f51802067a88
--- /dev/null
+++ b/media-libs/libgd/libgd-2.0.17.ebuild
@@ -0,0 +1,63 @@
+# 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-2.0.17.ebuild,v 1.1 2003/12/27 06:16:23 vapier Exp $
+
+MY_P=${P/lib/}
+#GIF_PATCH=patch_gd2.0.15_gif_030801
+DESCRIPTION="A graphics library for fast image creation"
+HOMEPAGE="http://www.boutell.com/gd/ http://www.rime.com.au/gd/"
+SRC_URI="http://www.boutell.com/gd/http/${MY_P}.tar.gz"
+# gif? ( http://downloads.rhyme.com.au/gd/${GIF_PATCH}.gz )"
+
+LICENSE="as-is | BSD"
+SLOT="2"
+KEYWORDS="~x86 ~ppc ~sparc ~mips ~hppa ~arm ~alpha"
+IUSE="jpeg png X freetype" # gif"
+
+DEPEND="jpeg? ( >=media-libs/jpeg-6b )
+ png? ( >=media-libs/libpng-1.2.5 sys-libs/zlib )
+ freetype? ( >=media-libs/freetype-2.1.2 )
+ X? ( virtual/x11 )"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+# [ -n "`use gif`" ] && epatch ${WORKDIR}/${GIF_PATCH}
+ use png || echo 'void main(){}' > circletexttest.c
+ use jpeg || echo 'void main(){}' > circletexttest.c
+}
+
+src_compile() {
+ local myconf=""
+ use freetype \
+ && myconf="${myconf} --with-freetype=yes" \
+ || myconf="${myconf} --with-freetype=no"
+ use png \
+ && myconf="${myconf} --with-png=yes" \
+ || myconf="${myconf} --with-png=no"
+ econf \
+ `use_with png` \
+ `use_with jpeg` \
+ `use_with X xpm` \
+ --includedir=/usr/include/gd-2 \
+ ${myconf} \
+ || die
+ emake || die
+}
+
+src_install() {
+ emake DESTDIR=${D} install || die
+ dodoc INSTALL README*
+ dohtml -r ./
+
+ # make it slotable
+ mv ${D}/usr/lib/libgd{,2}.a
+ dosed 's:libgd\.a:libgd2.a:' /usr/lib/libgd.la
+ dosym libgd2.a /usr/lib/libgd.a
+ cd ${D}/usr/include/gd-2/
+ for f in * ; do
+ dosym gd-2/${f} /usr/include/${f}
+ done
+}