Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Submitted by:   bchesneau@mac.com (Benoit Chesneau)
Reviewed by:    olegb@
Approved by:
Obtained from:
update - Thanks Benoit!

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@4126 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Ole Guldberg Jensen committed Dec 6, 2003
1 parent 2091089 commit 3c08e52
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions www/php4/Portfile
@@ -1,4 +1,4 @@
# $Id: Portfile,v 1.7 2003/11/26 12:10:57 fkr Exp $
# $Id: Portfile,v 1.8 2003/12/06 00:19:02 olegb Exp $

PortSystem 1.0
name php4
Expand Down Expand Up @@ -61,6 +61,9 @@ platform freebsd {
CPPFLAGS="-I${prefix}/include
}

variant macosx {
configure.args-append --with-ldap=/usr --with-kerberos=/usr --with-iodbc=/usr
}

variant cli {}

Expand All @@ -69,13 +72,16 @@ variant apache_layout {
}

variant apache {

if { ! [variant_isset apache_layout] } {
depends_lib-append path:${prefix}/sbin/apxs:apache
configure.args-append --with-apxs=${prefix}/sbin/apxs
} else {
configure.args-append --with-apxs=${prefix}/apache/bin/apxs
}
if { [variant_isset apache_layout] } {
configure.args-append --with-apxs=${prefix}/apache/bin/apxs
} else {
if { ! [variant_isset macosx] } {
depends_lib-append path:${prefix}/sbin/apxs:apache
configure.args-append --with-apxs=${prefix}/sbin/apxs
} else {
configure.args-append --with-apxs=/usr/sbin/apxs
}
}
}

variant apache2 {
Expand Down

0 comments on commit 3c08e52

Please sign in to comment.