aboutsummaryrefslogtreecommitdiffstats
path: root/lang/php5
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2003-11-20 19:10:00 +0800
committerjeh <jeh@FreeBSD.org>2003-11-20 19:10:00 +0800
commitaf1ffec916e56087dfd1db71eecc40ba8702b29a (patch)
tree271777f7da8a04ae00eb090d836cab20537e6357 /lang/php5
parent07869700a90dcf6f37fc7d5ed66e425d8a360cc1 (diff)
downloadfreebsd-ports-gnome-af1ffec916e56087dfd1db71eecc40ba8702b29a.tar.gz
freebsd-ports-gnome-af1ffec916e56087dfd1db71eecc40ba8702b29a.tar.zst
freebsd-ports-gnome-af1ffec916e56087dfd1db71eecc40ba8702b29a.zip
Add WITH_DEBUG knob and support for the new bsd.php.mk file.
Forgotten in previous PR: add also BROKEN_WITH_PHP knob. PR: 59418 Submitted by: MAINTAINER
Diffstat (limited to 'lang/php5')
-rw-r--r--lang/php5/Makefile36
-rw-r--r--lang/php5/pkg-plist1
2 files changed, 34 insertions, 3 deletions
diff --git a/lang/php5/Makefile b/lang/php5/Makefile
index 8e6c686fc911..6db664cdd1b6 100644
--- a/lang/php5/Makefile
+++ b/lang/php5/Makefile
@@ -21,7 +21,7 @@
PORTNAME= php5
PORTVERSION= 5.0.0.a3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES?= lang devel www
MASTER_SITES= http://www.php.net/distributions/:release \
http://it.php.net/distributions/:release \
@@ -86,6 +86,11 @@ CONFIGURE_ARGS+=--with-regex=apache
EXT_DIR= 20020429
SAPI_FILE= "@comment "
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+=--enable-debug
+EXT_DIR:= ${EXT_DIR}-debug
+.endif
+
CONFLICTS= php5-cli-5* mod_php5-5* php5-cgi-5*
.if defined(WITHOUT_APACHE)
.if defined(WITHOUT_CLI)
@@ -401,7 +406,7 @@ CONFIGURE_ARGS+=--enable-posix
.endif
.if defined(WITH_POSTGRESQL)
-LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
+LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7-client
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
.endif
@@ -614,13 +619,37 @@ pre-configure:
@${ECHO_CMD} ""
.endif
-.if !defined(WITHOUT_CLI)
post-build:
+ @${ECHO_CMD} "PHP_VER=5" > ${WRKDIR}/php.conf
+ @${ECHO_CMD} "PHP_VERSION=${PORTVERSION}" >> ${WRKDIR}/php.conf
+ @${ECHO_CMD} "PHP_EXT_DIR=${EXT_DIR}" >> ${WRKDIR}/php.conf
+ @${ECHO_CMD} "PHP_PORT=${.CURDIR}" >> ${WRKDIR}/php.conf
+.if !defined(WITHOUT_CLI) && !defined(WITHOUT_PEAR)
+ @${ECHO_CMD} "PHP_PEAR=yes" >> ${WRKDIR}/php.conf
+.else
+ @${ECHO_CMD} "PHP_PEAR=no" >> ${WRKDIR}/php.conf
+.endif
+.if !defined(WITHOUT_APACHE) && !defined(WITHOUT_CLI)
+ @${ECHO_CMD} "PHP_SAPI=full" >> ${WRKDIR}/php.conf
+.else
+.if defined(WITHOUT_APACHE) && !defined(WITHOUT_CLI)
+ @${ECHO_CMD} "PHP_SAPI=cli" >> ${WRKDIR}/php.conf
+.endif
+.if !defined(WITHOUT_APACHE) && defined(WITHOUT_CLI)
+ @${ECHO_CMD} "PHP_SAPI=mod" >> ${WRKDIR}/php.conf
+.endif
+.if defined(WITHOUT_APACHE) && defined(WITHOUT_CLI)
+ @${ECHO_CMD} "PHP_SAPI=cgi" >> ${WRKDIR}/php.conf
+.endif
+.endif
+.if !defined(WITHOUT_CLI)
@${ECHO_CMD} "You may run the tests from the PHP test framework, typing 'make test' now."
@${ECHO_CMD} "(It is safe to ignore errors about timestamp-related tests,"
@${ECHO_CMD} "since they are due to the different FreeBSD mktime() implementation)."
@${ECHO_CMD} ""
+.endif
+.if !defined(WITHOUT_CLI)
test: all
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
${MAKEFILE} ${MAKE_ARGS} ${.TARGET})
@@ -632,6 +661,7 @@ post-install:
.endif
@${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc
@${INSTALL_DATA} ${WRKSRC}/php.ini-recommended ${PREFIX}/etc
+ @${INSTALL_DATA} ${WRKDIR}/php.conf ${PREFIX}/etc
@${TOUCH} ${PREFIX}/lib/php/${EXT_DIR}/.php
@${TOUCH} ${PREFIX}/include/php/ext/xml/expat/.php
.if !defined(WITHOUT_APACHE)
diff --git a/lang/php5/pkg-plist b/lang/php5/pkg-plist
index 55b68d7d6a2a..c3f8b04e8357 100644
--- a/lang/php5/pkg-plist
+++ b/lang/php5/pkg-plist
@@ -3,6 +3,7 @@
bin/php-config
bin/phpextdist
bin/phpize
+etc/php.conf
etc/php.ini-dist
etc/php.ini-recommended
include/php/TSRM/TSRM.h