summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Holzer <mholzer@gentoo.org>2004-01-27 20:09:26 +0000
committerMartin Holzer <mholzer@gentoo.org>2004-01-27 20:09:26 +0000
commit8417358e88e04fb484c1b4aea9a6eb6ecdf18514 (patch)
tree4ab3793189668b95efd04db90789941c97f540d7 /media-libs/netpbm/netpbm-10.11.14.ebuild
parentChanging depend and configure script (diff)
downloadgentoo-2-8417358e88e04fb484c1b4aea9a6eb6ecdf18514.tar.gz
gentoo-2-8417358e88e04fb484c1b4aea9a6eb6ecdf18514.tar.bz2
gentoo-2-8417358e88e04fb484c1b4aea9a6eb6ecdf18514.zip
Changing depend and configure script
Diffstat (limited to 'media-libs/netpbm/netpbm-10.11.14.ebuild')
-rw-r--r--media-libs/netpbm/netpbm-10.11.14.ebuild27
1 files changed, 22 insertions, 5 deletions
diff --git a/media-libs/netpbm/netpbm-10.11.14.ebuild b/media-libs/netpbm/netpbm-10.11.14.ebuild
index 654a45f5df95..753cfca53669 100644
--- a/media-libs/netpbm/netpbm-10.11.14.ebuild
+++ b/media-libs/netpbm/netpbm-10.11.14.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/netpbm-10.11.14.ebuild,v 1.6 2004/01/14 18:13:21 mholzer Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/netpbm-10.11.14.ebuild,v 1.7 2004/01/27 20:09:16 mholzer Exp $
inherit flag-o-matic
@@ -12,12 +12,13 @@ RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~mips ~hppa ~arm ~amd64 ia64"
-IUSE="svga"
+IUSE="svga jpeg tiff png zlib"
RESTRICT="nomirror"
-DEPEND=">=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.2.1
+DEPEND="jpeg? ( >=media-libs/jpeg-6b )
+ tiff? ( >=media-libs/tiff-3.5.5 )
+ png? ( >=media-libs/libpng-1.2.1 )
+ zlib? ( sys-libs/zlib )
svga? ( media-libs/svgalib )"
src_unpack() {
@@ -30,6 +31,22 @@ src_unpack() {
echo "LINUXSVGALIB = /usr/lib/libvga.so" >> Makefile.config
fi
+ if [ `use jpeg` ] ; then
+ echo "JPEGLIB = libjpeg.so" >> Makefile.config
+ fi
+
+ if [ `use png` ] ; then
+ echo "PNGLIB = libpng.so" >> Makefile.config
+ fi
+
+ if [ `use tiff` ] ; then
+ echo "TIFFLIB = libtiff.so" >> Makefile.config
+ fi
+
+ if [ `use zlib` ] ; then
+ echo "ZLIB = libz.so" >> Makefile.config
+ fi
+
# Sparc support ...
replace-flags "-mcpu=ultrasparc" "-mcpu=v8 -mtune=ultrasparc"
replace-flags "-mcpu=v9" "-mcpu=v8 -mtune=v9"