From 978be36028dc23e6562d16aff7bfe950f65eea54 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 16 Jun 2003 22:25:24 +0000 Subject: proper libgd support --- eclass/php.eclass | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'eclass') 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 -# $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`" -- cgit v1.2.3-65-gdbad