diff options
Diffstat (limited to 'media-libs/libgd/libgd-1.8.3-r1.ebuild')
-rw-r--r-- | media-libs/libgd/libgd-1.8.3-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/media-libs/libgd/libgd-1.8.3-r1.ebuild b/media-libs/libgd/libgd-1.8.3-r1.ebuild new file mode 100644 index 000000000000..c1ca49bfed8e --- /dev/null +++ b/media-libs/libgd/libgd-1.8.3-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2000 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-r1.ebuild,v 1.1 2000/08/08 13:24:41 achim Exp $ + +P=libgd-1.8.3 +A=gd-1.8.3.tar.gz +S=${WORKDIR}/gd-1.8.3 +CATEGORY="media-libs" +DESCRIPTION="A graphics library for fast image creation" +SRC_URI="http://www.boutell.com/gd/http/"${A} +HOMEPAGE="http://www.boutell.com/gd/" + +src_unpack() { + unpack ${A} + cd ${S} + cp Makefile Makefile.orig + sed -e "s/^CFLAGS=.*/CFLAGS=$CFLAGS -DHAVE_XPM -DHAVE_JPEG -DHAVE_LIBTTF -DHAVE_PNG /" \ + -e "s/^LIBS=.*/LIBS=-lm -lgd -lpng -lz -ljpeg -lttf -lXpm -lX11/" \ + -e "s/^INCLUDEDIRS=/INCLUDEDIRS=-I\/usr\/include\/freetype /" \ + Makefile.orig > Makefile +} + +src_compile() { + cd ${S} + make +} + +src_install() { + cd ${S} + dodir /usr/bin + dodir /usr/lib + dodir /usr/include + make INSTALL_LIB=${D}/usr/lib INSTALL_BIN=${D}/usr/bin \ + INSTALL_INCLUDE=${D}/usr/include install + dodoc readme.txt + docinto html + dodoc index.html +} + + + + |