ports/55507: lang/php4 compiles with unexcpected libs
Dirk Meyer
dirk.meyer at dinoex.sub.org
Fri Aug 15 05:00:34 UTC 2003
The following reply was made to PR ports/55507; it has been noted by GNATS.
From: dirk.meyer at dinoex.sub.org (Dirk Meyer)
To: freebsd-gnats-submit at FreeBSD.org
Cc:
Subject: Re: ports/55507: lang/php4 compiles with unexcpected
libs
Date: Fri, 15 Aug 2003 06:51:08 +0200
Updated patch:
kind regards Dirk
- Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany
- [dirk.meyer at dinoex.sub.org],[dirk.meyer at guug.de],[dinoex at FreeBSD.org]
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/lang/php4/Makefile,v
retrieving revision 1.23
diff -u -r1.23 Makefile
--- Makefile 15 Aug 2003 00:49:25 -0000 1.23
+++ Makefile 15 Aug 2003 04:49:04 -0000
@@ -186,8 +186,11 @@
.for opt in ${PHP4_OPTIONS}
.if !defined(WITHOUT_${opt})
SEL_OPTIONS+= ${opt}
-.endif
SCRIPTS_ENV+= WITH_${opt}=ON
+.if !exists(${WRKDIR}/Makefile.inc)
+WITH_${opt}=yes
+.endif
+.endif
.endfor
SCRIPTS_ENV+= SEL_OPTIONS="${SEL_OPTIONS}" \
@@ -196,11 +199,6 @@
CAT="${CAT}" \
SED="${SED}"
-.ifmake describe
-WITH_MYSQL= yes
-WITH_XML= yes
-.endif
-
.if exists(${WRKDIR}/Makefile.inc)
.include "${WRKDIR}/Makefile.inc"
.endif
@@ -412,9 +410,9 @@
.endif
.if defined(WITH_MYSQL)
-.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.10)
+.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.10) || defined(WITH_MYSQL3)
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
-.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.14)
+.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.14) || defined(WITH_MYSQL41)
LIB_DEPENDS+= mysqlclient.14:${PORTSDIR}/databases/mysql41-client
.else
LIB_DEPENDS+= mysqlclient.12:${PORTSDIR}/databases/mysql40-client
@@ -433,10 +431,10 @@
.endif
.if defined(WITH_OPENLDAP)
-.if exists(${LOCALBASE}/lib/libldap.so.1)
+.if exists(${LOCALBASE}/lib/libldap.so.1) || defined(WITH_OPENLDAP12)
LIB_DEPENDS+= ldap.1:${PORTSDIR}/net/openldap12
-.elif exists(${LOCALBASE}/lib/libldap.la)
-.if exists(${LOCALBASE}/bin/ldapwhoami)
+.elif exists(${LOCALBASE}/lib/libldap.la) || defined(WITH_OPENLDAP22)
+.if exists(${LOCALBASE}/bin/ldapwhoami) || defined(WITH_OPENLDAP21)
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap21-client
.else
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap20-client
@@ -448,9 +446,12 @@
.endif
.if defined(WITH_OPENSSL) || defined(WITH_OPENSSL_DEP)
-.if exists(${LOCALBASE}/lib/libcrypto.so.3)
+.if exists(${LOCALBASE}/lib/libcrypto.so.3) || defined(WITH_OPENSSL_PORT)
OPENSSLBASE= ${LOCALBASE}
LIB_DEPENDS+= crypto.3:${PORTSDIR}/security/openssl
+.elif defined(WITH_OPENSSL_BETA)
+OPENSSLBASE= ${LOCALBASE}
+LIB_DEPENDS+= crypto.4:${PORTSDIR}/security/openssl
.else
OPENSSLBASE= /usr
.endif
@@ -514,8 +515,8 @@
CONFIGURE_ARGS+=--enable-shmop
.endif
-.if defined(WITH_SNMP)
-.if exists(${LOCALBASE}/lib/libsnmp.so.4)
+.if defined(WITH_SNMP) || defined(WITH_SNMP4)
+.if exists(${LOCALBASE}/lib/libsnmp.so.4) ||
LIB_DEPENDS+= snmp.4:${PORTSDIR}/net/net-snmp4
.else
LIB_DEPENDS+= netsnmp.5:${PORTSDIR}/net/net-snmp
More information about the freebsd-ports-bugs
mailing list