aboutsummaryrefslogtreecommitdiffstats
path: root/devel/php-dbg2
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2003-02-24 21:28:32 +0800
committervanilla <vanilla@FreeBSD.org>2003-02-24 21:28:32 +0800
commit9f0e66a54c594375cac8707d741e02d771376ec7 (patch)
tree4b1970d40641f3cc9662935be7f6d6e3ddac3dc2 /devel/php-dbg2
parent9fa42be242d6c06fa453b452ac794902c800f506 (diff)
downloadfreebsd-ports-gnome-9f0e66a54c594375cac8707d741e02d771376ec7.tar.gz
freebsd-ports-gnome-9f0e66a54c594375cac8707d741e02d771376ec7.tar.zst
freebsd-ports-gnome-9f0e66a54c594375cac8707d741e02d771376ec7.zip
Respect CFLAGS.
PR: ports/48624 Submitted by: maintainer
Diffstat (limited to 'devel/php-dbg2')
-rw-r--r--devel/php-dbg2/Makefile2
-rw-r--r--devel/php-dbg2/files/patch-configure25
2 files changed, 27 insertions, 0 deletions
diff --git a/devel/php-dbg2/Makefile b/devel/php-dbg2/Makefile
index be1d905d92d4..8f55ecc7ab8a 100644
--- a/devel/php-dbg2/Makefile
+++ b/devel/php-dbg2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= dbg
PORTVERSION= 2.11.5
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://dd.cron.ru/dbg/dnld/
PKGNAMEPREFIX= php-
@@ -24,6 +25,7 @@ USE_LIBTOOL= yes
WRKSRC= ${WRKDIR}/dbg
CONFIGURE_ARGS= --enable-dbg=shared --with-dbg-profiler \
--with-php-config=${PREFIX}/bin/php-config
+CONFIGURE_ENV= CFLAGS="${CFLAGS}"
PKGMESSAGE= ${WRKDIR}/pkg-message
PLIST= ${WRKDIR}/pkg-plist
diff --git a/devel/php-dbg2/files/patch-configure b/devel/php-dbg2/files/patch-configure
new file mode 100644
index 000000000000..60a09a1893b1
--- /dev/null
+++ b/devel/php-dbg2/files/patch-configure
@@ -0,0 +1,25 @@
+--- configure.orig Mon Feb 24 12:14:38 2003
++++ configure Mon Feb 24 12:15:22 2003
+@@ -2217,18 +2217,18 @@
+
+ OVERALL_TARGET=php
+ php_c_pre='$(CC)'
+- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
++ php_c_meta='$(COMMON_FLAGS) ${CFLAGS} $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
+ php_c_post=' && echo > $@'
+ php_cxx_pre='$(CXX)'
+- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
++ php_cxx_meta='$(COMMON_FLAGS) ${CXXFLAGS} $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
+ php_cxx_post=' && echo > $@'
+ php_lo=o
+
+ shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
+- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -prefer-pic'
++ shared_c_meta='$(COMMON_FLAGS) ${CFLAGS} $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
+ shared_c_post=
+ shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
+- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -prefer-pic'
++ shared_cxx_meta='$(COMMON_FLAGS) ${CXXFLAGS} $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
+ shared_cxx_post=
+ shared_lo=lo
+