summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2003-06-26 20:12:57 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2003-06-26 20:12:57 +0000
commit1f5ef317d934a0a808a6c6dd42e038be1dd5e3ce (patch)
tree8e7383bad3e4288e28d56bd2c70506787fcd8ecd /eclass
parentFixed a compilation bug in "without apache2" mode (diff)
downloadhistorical-1f5ef317d934a0a808a6c6dd42e038be1dd5e3ce.tar.gz
historical-1f5ef317d934a0a808a6c6dd42e038be1dd5e3ce.tar.bz2
historical-1f5ef317d934a0a808a6c6dd42e038be1dd5e3ce.zip
emer bugfix
Diffstat (limited to 'eclass')
-rw-r--r--eclass/php.eclass29
1 files changed, 18 insertions, 11 deletions
diff --git a/eclass/php.eclass b/eclass/php.eclass
index 6dfbc5fac519..af7e8e050f2b 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.57 2003/06/26 20:02:29 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php.eclass,v 1.58 2003/06/26 20:12:57 robbat2 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
@@ -96,7 +96,7 @@ DEPEND="${RDEPEND} ${DEPEND}
#9libs causes a configure error
DEPEND="${DEPEND} !dev-libs/9libs"
#dev-libs/libiconv causes a compile failure
-DEPEND="${DEPEND} "!dev-libs/libiconv"
+DEPEND="${DEPEND} !dev-libs/libiconv"
#Waiting for somebody to want this:
@@ -227,13 +227,27 @@ php_src_compile() {
use mcal && myconf="${myconf} --with-mcal=/usr"
use oci8 && [ -n "${ORACLE_HOME}" ] && myconf="${myconf} --with-oci8=${ORACLE_HOME}"
use odbc && myconf="${myconf} --with-unixODBC=/usr"
- use pdflib && myconf="${myconf} --with-pdflib=/usr"
- use png && myconf="${myconf} --with-png-dir=/usr" || myconf="${myconf} --without-png"
use postgres && myconf="${myconf} --with-pgsql=/usr" || myconf="${myconf} --without-pgsql"
use snmp && myconf="${myconf} --with-snmp --enable-ucd-snmp-hack"
use tiff && LDFLAGS="${LDFLAGS} -ltiff"
use tiff && myconf="${myconf} --with-tiff-dir=/usr" || myconf="${myconf} --without-tiff"
+ # This chunk is intended for png, as there are several things that need it
+ REQUIREPNG=
+ use pdflib && myconf="${myconf} --with-pdflib=/usr --with-png-dir=/usr"
+ use pdflib && REQUIREPNG=1
+ if [ -n "`use gd-external`" ] ; then
+ myconf="${myconf} --with-gd=/usr"
+ REQUIREPNG=1
+ elif [ -n "`use gd`" ] ; then
+ myconf="${myconf} --with-gd"
+ REQUIREPNG=1
+ else
+ myconf="${myconf} --without-gd"
+ fi
+ use png || [ -n "${REQUIREPNG}" ] && myconf="${myconf} --with-png-dir=/usr" || myconf="${myconf} --without-png"
+ echo conf:${myconf}
+
#use mysql && myconf="${myconf} --with-mysql=/usr" || myconf="${myconf} --without-mysql"
if [ -n "`use mysql`" ] ; then
if [ -n "`mysql_config | grep '4.1'`" ] ; then
@@ -260,13 +274,6 @@ php_src_compile() {
myconf="${myconf} `use_enable memlimit memory-limit`"
myconf="${myconf} `use_enable cjk mbstring` `use_enable cjk mbregex`"
- if [ -n "`use gd-external`" ] ; then
- myconf="${myconf} --with-gd=/usr"
- elif [ -n "`use gd`" ] ; then
- myconf="${myconf} --with-gd"
- else
- myconf="${myconf} --without-gd"
- fi
#Waiting for somebody to want Cyrus support :-)
#myconf="${myconf} `use_with cyrus`"