aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2003-11-17 19:40:14 +0800
committerjeh <jeh@FreeBSD.org>2003-11-17 19:40:14 +0800
commit2be5907dd3c056da46610475e224d1b04b58dbd9 (patch)
tree7315d56e223f4f3fd5f428c5c5cfc151054605dc
parent08a68a948e59f97a609db9688ac828f0374eb805 (diff)
downloadfreebsd-ports-gnome-2be5907dd3c056da46610475e224d1b04b58dbd9.tar.gz
freebsd-ports-gnome-2be5907dd3c056da46610475e224d1b04b58dbd9.tar.zst
freebsd-ports-gnome-2be5907dd3c056da46610475e224d1b04b58dbd9.zip
Allow compiling with debugging enabled.
PR: 58851 Submitted By: jeh
-rw-r--r--lang/php4/Makefile9
-rw-r--r--lang/php4/scripts/configure.php1
-rw-r--r--lang/php4/scripts/php4_options1
3 files changed, 9 insertions, 2 deletions
diff --git a/lang/php4/Makefile b/lang/php4/Makefile
index fbcb8abc0cbd..4d03f4e64742 100644
--- a/lang/php4/Makefile
+++ b/lang/php4/Makefile
@@ -125,8 +125,8 @@ SAPI_FILE= "bin/php"
.endif
ALL_OPTIONS= BCMATH BZIP2 CALENDAR CDB CRACK CTYPE CURL DB4 DBASE DBX \
- DOMXML DOMXSLT EXIF FILEPRO FRIBIDI FTP GD GDBM GETTEXT GMP \
- HYPERWAVE ICONV IMAP INTERBASE INIFILE MBSTRING MCAL MCVE \
+ DEBUG DOMXML DOMXSLT EXIF FILEPRO FRIBIDI FTP GD GDBM GETTEXT \
+ GMP HYPERWAVE ICONV IMAP INTERBASE INIFILE MBSTRING MCAL MCVE \
MCRYPT MHASH MIME MING MNOGOSEARCH MYSQL NCURSES OPENLDAP \
OPENSSL ORACLE OVERLOAD PCNTL PCRE PDFLIB POSIX POSTGRESQL \
PSPELL READLINE RECODE SESSION SHMOP SNMP SOCKETS SYBASEDB \
@@ -251,6 +251,11 @@ CONFIGURE_ARGS+=--enable-dbase
CONFIGURE_ARGS+=--enable-dbx
.endif
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+=--enable-debug
+EXT_DIR:=${EXT_DIR}-debug
+.endif
+
.if defined(WITH_DOMXML)
LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2
CONFIGURE_ARGS+=--with-dom=${LOCALBASE}
diff --git a/lang/php4/scripts/configure.php b/lang/php4/scripts/configure.php
index 5c9b96862b5a..4aaabf98b5bb 100644
--- a/lang/php4/scripts/configure.php
+++ b/lang/php4/scripts/configure.php
@@ -28,6 +28,7 @@ CURL "CURL support" ${WITH_CURL:-OFF} \
DB4 "Berkeley DB4 support" ${WITH_DB4:-OFF} \
DBASE "dBase library support" ${WITH_DBASE:-OFF} \
DBX "dbx support" ${WITH_DBX:-OFF} \
+DEBUG "debug support" ${WITH_DEBUG:-OFF} \
DOMXML "DOM support" ${WITH_DOMXML:-OFF} \
DOMXSLT "DOM XSLT and EXSLT support (implies DOMXML)" ${WITH_DOMXSLT:-OFF} \
EXIF "EXIF support" ${WITH_EXIF:-OFF} \
diff --git a/lang/php4/scripts/php4_options b/lang/php4/scripts/php4_options
index 1a50c04229bc..3ee7644921ec 100644
--- a/lang/php4/scripts/php4_options
+++ b/lang/php4/scripts/php4_options
@@ -8,6 +8,7 @@ WITH_CURL=OFF
WITH_DB4=OFF
WITH_DBASE=OFF
WITH_DBX=OFF
+WITH_DEBUG=OFF
WITH_DOMXML=OFF
WITH_DOMXSLT=OFF
WITH_EXIF=OFF