summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-06-16 22:25:24 +0000
committerMike Frysinger <vapier@gentoo.org>2003-06-16 22:25:24 +0000
commit978be36028dc23e6562d16aff7bfe950f65eea54 (patch)
tree31f7ac8e37812d20004fe89e47b6940ede92907a /eclass
parentBumpage (diff)
downloadgentoo-2-978be36028dc23e6562d16aff7bfe950f65eea54.tar.gz
gentoo-2-978be36028dc23e6562d16aff7bfe950f65eea54.tar.bz2
gentoo-2-978be36028dc23e6562d16aff7bfe950f65eea54.zip
proper libgd support
Diffstat (limited to 'eclass')
-rw-r--r--eclass/php.eclass14
1 files changed, 11 insertions, 3 deletions
diff --git a/eclass/php.eclass b/eclass/php.eclass
index 0d826fedd6ac..e2d8940172b0 100644
--- a/eclass/php.eclass
+++ b/eclass/php.eclass
@@ -1,7 +1,7 @@
# Copyright 2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# Author: Robin H. Johnson <robbat2@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/eclass/php.eclass,v 1.47 2003/06/16 21:03:10 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php.eclass,v 1.48 2003/06/16 22:25:24 vapier Exp $
# This EBUILD is totally masked presently. Use it at your own risk. I know it
# is severely broken, but I needed to get a copy into CVS to pass around and
@@ -35,7 +35,7 @@ if [ -z "$SRC_URI" ]; then
#mirror://gentoo/${MY_P}-db4.diff.gz
fi
-IUSE="${IUSE} X cjk crypt curl firebird flash freetds gd gdbm imap informix java jpeg ldap mcal mysql nls oci8 odbc pam pdflib memlimit png postgres qt snmp spell ssl tiff truetype"
+IUSE="${IUSE} X cjk crypt curl firebird flash freetds gd gd-bundled gdbm imap informix java jpeg ldap mcal mysql nls oci8 odbc pam pdflib memlimit png postgres qt snmp spell ssl tiff truetype"
# Berkdb is disabled due to DB4 and changes in PHP4.3.2
#RDEPEND="${RDEPEND} berkdb? ( >=sys-libs/db-4.1.25 )"
@@ -248,10 +248,18 @@ php_src_compile() {
myconf="${myconf} `use_with spell pspell` `use_with ssl openssl`"
myconf="${myconf} `use_with curl` `use_with imap` `use_with ldap`"
myconf="${myconf} `use_with xml2 dom` `use_with xml2 dom-xslt`"
- myconf="${myconf} `use_with kerberos` `use_with gd` `use_with pam`"
+ myconf="${myconf} `use_with kerberos` `use_with pam`"
myconf="${myconf} `use_enable memlimit memory-limit`"
myconf="${myconf} `use_enable cjk mbstring` `use_enable cjk mbregex`"
+ if [ `use gd` ] ; then
+ myconf="${myconf} --with-gd=/usr"
+ elif [ `use gd-bundled` ] ; then
+ myconf="${myconf} --with-gd"
+ else
+ myconf="${myconf} --without-gd"
+ fi
+
#Waiting for somebody to want Cyrus support :-)
#myconf="${myconf} `use_with cyrus`"