aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--archivers/pear-Archive_Tar/Makefile5
-rw-r--r--databases/phpmyadmin/Makefile8
-rw-r--r--databases/phpmyadmin211/Makefile8
-rw-r--r--databases/phppgadmin/Makefile6
-rw-r--r--devel/ZendOptimizer/Makefile2
-rw-r--r--devel/pear-apd/Makefile2
-rw-r--r--devel/php-dbg/Makefile7
-rw-r--r--devel/php-dbg2/Makefile7
-rw-r--r--devel/php-xdebug/Makefile6
-rw-r--r--graphics/jpgraph/Makefile6
-rw-r--r--lang/php4/bsd.php.mk152
-rw-r--r--mail/nocc/Makefile6
-rw-r--r--mail/pear-mailparse/Makefile2
-rw-r--r--mail/pecl-mailparse/Makefile2
-rw-r--r--mail/squirrelmail/Makefile6
-rw-r--r--misc/achievo/Makefile3
-rw-r--r--net/scr_ipfm/Makefile6
-rw-r--r--security/snortreport/Makefile6
-rw-r--r--www/abcache/Makefile6
-rw-r--r--www/eaccelerator/Makefile6
-rw-r--r--www/gallery/Makefile6
-rw-r--r--www/gallery2/Makefile6
-rw-r--r--www/gallery3/Makefile6
-rw-r--r--www/pear-APC/Makefile2
-rw-r--r--www/pecl-APC-devel/Makefile2
-rw-r--r--www/pecl-APC/Makefile2
-rw-r--r--www/php-dyn/Makefile6
-rw-r--r--www/php-screw/Makefile6
-rw-r--r--www/php-templates/Makefile6
-rw-r--r--www/phpSysInfo/Makefile6
-rw-r--r--www/phpsysinfo-dev/Makefile6
-rw-r--r--www/phpsysinfo/Makefile6
-rw-r--r--www/smarty/Makefile5
-rw-r--r--www/turck-mmcache/Makefile6
-rw-r--r--x11-toolkits/php-gtk/Makefile9
-rw-r--r--x11-toolkits/php-gtk2/Makefile9
36 files changed, 66 insertions, 275 deletions
diff --git a/archivers/pear-Archive_Tar/Makefile b/archivers/pear-Archive_Tar/Makefile
index 45f1c88b1e48..c0a4d2eb5eec 100644
--- a/archivers/pear-Archive_Tar/Makefile
+++ b/archivers/pear-Archive_Tar/Makefile
@@ -13,13 +13,12 @@ CATEGORIES= archivers www pear
MAINTAINER= ports@FreeBSD.org
COMMENT= PEAR tar file management class
-BUILD_DEPENDS= pear:${PORTSDIR}/lang/php4
-RUN_DEPENDS= ${BUILD_DEPENDS}
+USE_PHP= yes
+WANT_PHP_PEAR= yes
FILES= Archive/Tar.php
DOCS= Archive_Tar.txt
.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/php4/bsd.php.mk"
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
.include <bsd.port.post.mk>
diff --git a/databases/phpmyadmin/Makefile b/databases/phpmyadmin/Makefile
index 705eada12dd1..f6aa95209b15 100644
--- a/databases/phpmyadmin/Makefile
+++ b/databases/phpmyadmin/Makefile
@@ -28,17 +28,13 @@ MYADMDIR?= www/data/phpMyAdmin
PHP_SUFX= php3
EXTRA_PATCHES= files/fix-libraries::display_tbl.lib.php3 files/fix-tbl_relation.php3
.else
+USE_PHP= yes
PHP_SUFX= php
EXTRA_PATCHES= files/fix-libraries::display_tbl.lib.php files/fix-tbl_relation.php
.endif
PLIST_SUB+= MYADMDIR=${MYADMDIR} PHP_SUFX=${PHP_SUFX}
-.include <bsd.port.pre.mk>
-.if !defined(WITH_PHP3)
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-.endif
-
post-patch:
@${MV} ${WRKSRC}/config.inc.${PHP_SUFX} ${WRKSRC}/config.inc.${PHP_SUFX}.sample
@${RM} ${WRKSRC}/*.orig ${WRKSRC}/libraries/*.orig
@@ -50,4 +46,4 @@ do-install:
then ${MKDIR} ${PREFIX}/${MYADMDIR}$${0#${WRKSRC}}; \
else ${INSTALL_DATA} $$0 ${PREFIX}/${MYADMDIR}$${0#${WRKSRC}}; fi'
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/databases/phpmyadmin211/Makefile b/databases/phpmyadmin211/Makefile
index 705eada12dd1..f6aa95209b15 100644
--- a/databases/phpmyadmin211/Makefile
+++ b/databases/phpmyadmin211/Makefile
@@ -28,17 +28,13 @@ MYADMDIR?= www/data/phpMyAdmin
PHP_SUFX= php3
EXTRA_PATCHES= files/fix-libraries::display_tbl.lib.php3 files/fix-tbl_relation.php3
.else
+USE_PHP= yes
PHP_SUFX= php
EXTRA_PATCHES= files/fix-libraries::display_tbl.lib.php files/fix-tbl_relation.php
.endif
PLIST_SUB+= MYADMDIR=${MYADMDIR} PHP_SUFX=${PHP_SUFX}
-.include <bsd.port.pre.mk>
-.if !defined(WITH_PHP3)
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-.endif
-
post-patch:
@${MV} ${WRKSRC}/config.inc.${PHP_SUFX} ${WRKSRC}/config.inc.${PHP_SUFX}.sample
@${RM} ${WRKSRC}/*.orig ${WRKSRC}/libraries/*.orig
@@ -50,4 +46,4 @@ do-install:
then ${MKDIR} ${PREFIX}/${MYADMDIR}$${0#${WRKSRC}}; \
else ${INSTALL_DATA} $$0 ${PREFIX}/${MYADMDIR}$${0#${WRKSRC}}; fi'
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/databases/phppgadmin/Makefile b/databases/phppgadmin/Makefile
index 837983590b25..3932de819fc3 100644
--- a/databases/phppgadmin/Makefile
+++ b/databases/phppgadmin/Makefile
@@ -20,17 +20,15 @@ POSTGRESQL_PORT?= databases/postgresql7
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
USE_BZIP2= yes
+USE_PHP= yes
WRKSRC= ${WRKDIR}/phpPgAdmin
NO_BUILD= YES
PGADMDIR?= www/data/phpPgAdmin
PLIST_SUB+= PGADMDIR=${PGADMDIR}
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
do-install:
${MKDIR} ${PREFIX}/${PGADMDIR}
${CP} -R ${WRKSRC}/* ${PREFIX}/${PGADMDIR}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/ZendOptimizer/Makefile b/devel/ZendOptimizer/Makefile
index 8c0989976851..4d0585fa7c94 100644
--- a/devel/ZendOptimizer/Makefile
+++ b/devel/ZendOptimizer/Makefile
@@ -15,6 +15,7 @@ COMMENT= An optimizer for PHP code
ONLY_FOR_ARCHS= i386
NO_BUILD= yes
+USE_PHP= yes
BROKEN_WITH_PHP=5
RESTRICTED= "Redistribution of pre-compiled binaries is not permitted"
@@ -23,7 +24,6 @@ NO_CDROM= "Redistribution of pre-compiled binaries is not permitted"
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/php4/bsd.php.mk"
# Check for FreeBSD version
.if ${OSVERSION} >= 500000
diff --git a/devel/pear-apd/Makefile b/devel/pear-apd/Makefile
index 65a9700ff0fb..1c24940b2359 100644
--- a/devel/pear-apd/Makefile
+++ b/devel/pear-apd/Makefile
@@ -15,12 +15,12 @@ COMMENT= A full-featured engine-level PHP profiler/debugger
BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
RUN_DEPENDS= ${BUILD_DEPENDS}
+USE_PHP= yes
USE_PHPIZE= yes
CONFIGURE_ARGS= --enable-apd
.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/php4/bsd.php.mk"
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
.if exists(${LOCALBASE}/bin/php-config)
diff --git a/devel/php-dbg/Makefile b/devel/php-dbg/Makefile
index ad9d514de42c..04f6fde5f2e1 100644
--- a/devel/php-dbg/Makefile
+++ b/devel/php-dbg/Makefile
@@ -15,13 +15,11 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= rehsack@liwing.de
COMMENT= Debugger for PHP4
+USE_PHP= yes
USE_PHPIZE= yes
CONFIGURE_ARGS= --enable-dbg=shared --with-dbg-profiler
PKGMESSAGE= ${WRKDIR}/pkg-message
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
post-build:
@${SED} "s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \
${.CURDIR}/pkg-message > ${PKGMESSAGE}
@@ -33,4 +31,5 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+
+.include <bsd.port.mk>
diff --git a/devel/php-dbg2/Makefile b/devel/php-dbg2/Makefile
index ad9d514de42c..04f6fde5f2e1 100644
--- a/devel/php-dbg2/Makefile
+++ b/devel/php-dbg2/Makefile
@@ -15,13 +15,11 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= rehsack@liwing.de
COMMENT= Debugger for PHP4
+USE_PHP= yes
USE_PHPIZE= yes
CONFIGURE_ARGS= --enable-dbg=shared --with-dbg-profiler
PKGMESSAGE= ${WRKDIR}/pkg-message
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
post-build:
@${SED} "s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \
${.CURDIR}/pkg-message > ${PKGMESSAGE}
@@ -33,4 +31,5 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+
+.include <bsd.port.mk>
diff --git a/devel/php-xdebug/Makefile b/devel/php-xdebug/Makefile
index 259eb39e5610..27ea39a3fc9a 100644
--- a/devel/php-xdebug/Makefile
+++ b/devel/php-xdebug/Makefile
@@ -15,13 +15,11 @@ EXTRACT_SUFX= .tgz
MAINTAINER= rehsack@liwing.de
COMMENT= Xdebug extension for PHP
+USE_PHP= yes
USE_PHPIZE= yes
CONFIGURE_ARGS= --enable-xdebug --with-php-config=${PREFIX}/bin/php-config
PKGMESSAGE= ${WRKDIR}/pkg-message
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
post-build:
@${SED} "s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \
< ${.CURDIR}/pkg-message > ${PKGMESSAGE}
@@ -34,4 +32,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/jpgraph/Makefile b/graphics/jpgraph/Makefile
index 57567c4e2816..3c5e7cac31bc 100644
--- a/graphics/jpgraph/Makefile
+++ b/graphics/jpgraph/Makefile
@@ -15,11 +15,9 @@ MAINTAINER= ale@FreeBSD.org
COMMENT= Draw both "quick and dirty" graphs with a minimum of code
NO_BUILD= yes
+USE_PHP= yes
WANT_PHP_WEB= yes
-.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/php4/bsd.php.mk"
-
pre-everything::
@${ECHO} ""
@${ECHO} "You have to configure PHP with GD support."
@@ -40,4 +38,4 @@ do-install:
${CP} -R ${WRKSRC}/src/Examples/ ${EXAMPLESDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/lang/php4/bsd.php.mk b/lang/php4/bsd.php.mk
deleted file mode 100644
index aa7181b105ec..000000000000
--- a/lang/php4/bsd.php.mk
+++ /dev/null
@@ -1,152 +0,0 @@
-# Just include this makefile after bsd.ports.pre.mk
-#
-# The user/port can now set this options in the makefiles.
-#
-# USE_PHPIZE=yes - Use to build a PHP extension.
-# WANT_PHP_CLI=yes - Want the CLI version of PHP.
-# WANT_PHP_CGI=yes - Want the CGI version of PHP.
-# WANT_PHP_MOD=yes - Want the Apache Module for PHP.
-# WANT_PHP_WEB=yes - Want the Apache Module or the CGI version of PHP.
-# WANT_PHP_PEAR=yes - Want the PEAR framework.
-#
-# You may combine multiple WANT_PHP_* knobs.
-# Don't specify any WANT_PHP_* knob if your port will work with every PHP SAPI.
-#
-
-.if exists(${LOCALBASE}/etc/php.conf)
-.include "${LOCALBASE}/etc/php.conf"
-.endif
-
-PHP_VER?= 4
-.if !defined(PHP_EXT_DIR)
-PHP_EXT_DIR= 20020429
-.if exists(${LOCALBASE}/include/apache2/apr.h)
-APACHE_MPM!= ${APXS} -q MPM_NAME
-.if ${APACHE_MPM} == "worker"
-PHP_EXT_DIR:= ${PHP_EXT_DIR}-zts
-.endif
-.else
-.if defined(WITH_APACHE2) && defined(WITH_MPM) && ${WITH_MPM} == "worker"
-PHP_EXT_DIR:= ${PHP_EXT_DIR}-zts
-.endif
-.endif
-.if defined(WITH_DEBUG)
-PHP_EXT_DIR:= ${PHP_EXT_DIR}-debug
-.endif
-.endif
-.if !defined(WITHOUT_PEAR)
-PHP_PEAR?= yes
-.else
-PHP_PEAR?= no
-.endif
-PHP_SAPI?= ""
-
-.if defined(BROKEN_WITH_PHP)
-. for VER in ${BROKEN_WITH_PHP}
-. if ${PHP_VER} == "${VER}"
-BROKEN= "Doesn't work with PHP version : ${PHP_VER} (Doesn't support PHP ${BROKEN_WITH_PHP})"
-. endif
-. endfor
-.endif
-
-.if defined(WANT_PHP_WEB)
-. if defined(WANT_PHP_CGI) || defined(WANT_PHP_MOD)
-.BEGIN:
- @${ECHO_CMD} "If you define WANT_PHP_WEB you cannot set also WANT_PHP_CGI"
- @${ECHO_CMD} "or WANT_PHP_MOD. Use only one of them."
- @${FALSE}
-. else
-. if defined(PHP_VERSION) && ${PHP_SAPI} == "cli"
-.BEGIN:
- @${ECHO_CMD} "This port requires the Apache Module or the CGI version of PHP, but you have"
- @${ECHO_CMD} "already installed a conflicting PHP port without them."
- @${FALSE}
-. else
-. if defined(WANT_PHP_CLI) || defined(WANT_PHP_PEAR)
-PHP_PORT?= ${PORTSDIR}/lang/php${PHP_VER}
-. else
-PHP_PORT?= ${PORTSDIR}/www/mod_php${PHP_VER}
-PHP_PEAR?= no
-. endif
-. endif
-. endif
-.else
-
-.if defined(WANT_PHP_CGI)
-. if defined(WANT_PHP_CLI) || defined(WANT_PHP_MOD)
-.BEGIN:
- @${ECHO_CMD} "The CGI version of PHP avoids the installation of other SAPIs."
- @${ECHO_CMD} "Do not use WANT_PHP_CGI with other WANT_PHP_* knobs."
- @${FALSE}
-. else
-. if defined(PHP_VERSION) && ${PHP_SAPI} != "cgi"
-.BEGIN:
- @${ECHO_CMD} "This port requires the CGI version of PHP, but you have already"
- @${ECHO_CMD} "installed a conflicting PHP port without CGI."
- @${FALSE}
-. else
-PHP_PORT?= ${PORTSDIR}/www/php${PHP_VER}-cgi
-PHP_PEAR?= no
-. endif
-. endif
-.else
-
-.if defined(WANT_PHP_CLI) && !defined(WANT_PHP_MOD)
-. if defined(PHP_VERSION) && ${PHP_SAPI} != "full" && ${PHP_SAPI} != "cli"
-.BEGIN:
- @${ECHO_CMD} "This port requires the CLI version of PHP, but you have already"
- @${ECHO_CMD} "installed a conflicting PHP port without CLI."
- @${FALSE}
-. else
-PHP_PORT?= ${PORTSDIR}/lang/php${PHP_VER}-cli
-. endif
-.else
-
-.if !defined(WANT_PHP_CLI) && defined(WANT_PHP_MOD)
-. if defined(PHP_VERSION) && (${PHP_SAPI} != "full" && ${PHP_SAPI} != "mod")
-.BEGIN:
- @${ECHO_CMD} "This port requires the Apache Module for PHP, but you have already"
- @${ECHO_CMD} "installed a conflicting PHP port without the Apache Module."
- @${FALSE}
-. else
-. if defined(WANT_PHP_PEAR)
-PHP_PORT?= ${PORTSDIR}/lang/php${PHP_VER}
-. else
-PHP_PORT?= ${PORTSDIR}/www/mod_php${PHP_VER}
-PHP_PEAR?= no
-. endif
-. endif
-.else
-
-PHP_PORT?= ${PORTSDIR}/lang/php${PHP_VER}
-
-.endif
-
-.endif
-
-.endif
-
-.endif
-
-.if defined(WANT_PHP_PEAR) && ${PHP_PEAR} == "no"
-BROKEN= "This port requires the PEAR framework, but you have already" \
- "installed a PHP port without PEAR"
-.endif
-
-RUN_DEPENDS+= ${LOCALBASE}/include/php/main/php.h:${PHP_PORT}
-
-PLIST_SUB+= PHP_EXT_DIR=${PHP_EXT_DIR}
-
-.if defined(USE_PHPIZE)
-BUILD_DEPENDS+= phpize:${PHP_PORT}
-USE_LIBTOOL= yes
-WANT_AUTOMAKE_VER= 15
-WANT_AUTOCONF_VER= 253
-CONFIGURE_ARGS+=--with-php-config=${LOCALBASE}/bin/php-config
-
-configure-message: phpize
-
-phpize:
- @${ECHO_MSG} "===> PHPizing for ${DISTNAME}"
- @(cd ${WRKSRC}; ${SETENV} ${SCRIPTS_ENV} ${LOCALBASE}/bin/phpize)
-.endif
diff --git a/mail/nocc/Makefile b/mail/nocc/Makefile
index 7bc939bffc99..0840e02a68e7 100644
--- a/mail/nocc/Makefile
+++ b/mail/nocc/Makefile
@@ -14,14 +14,12 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ale@FreeBSD.org
COMMENT= A web-based e-mail system which access POP3 and IMAP mail servers
+USE_PHP= yes
WANT_PHP_WEB= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
NO_BUILD= yes
-.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/php4/bsd.php.mk"
-
pre-everything::
@${ECHO} ""
@${ECHO} "You have to configure PHP with IMAP support in order"
@@ -54,4 +52,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/mail/pear-mailparse/Makefile b/mail/pear-mailparse/Makefile
index 02d21ea620fe..aca31da3ee94 100644
--- a/mail/pear-mailparse/Makefile
+++ b/mail/pear-mailparse/Makefile
@@ -17,10 +17,10 @@ RUN_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
IS_INTERACTIVE= 'need to build php4 with mbstring support.'
+USE_PHP= yes
USE_PHPIZE= yes
.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/php4/bsd.php.mk"
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
.if exists(${LOCALBASE}/bin/php-config)
diff --git a/mail/pecl-mailparse/Makefile b/mail/pecl-mailparse/Makefile
index 02d21ea620fe..aca31da3ee94 100644
--- a/mail/pecl-mailparse/Makefile
+++ b/mail/pecl-mailparse/Makefile
@@ -17,10 +17,10 @@ RUN_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
IS_INTERACTIVE= 'need to build php4 with mbstring support.'
+USE_PHP= yes
USE_PHPIZE= yes
.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/php4/bsd.php.mk"
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
.if exists(${LOCALBASE}/bin/php-config)
diff --git a/mail/squirrelmail/Makefile b/mail/squirrelmail/Makefile
index 14b4e895b76c..bdd39fdc20e9 100644
--- a/mail/squirrelmail/Makefile
+++ b/mail/squirrelmail/Makefile
@@ -17,6 +17,7 @@ COMMENT?= A webmail system which accesses mail over IMAP
CONFLICTS?= ja-squirrelmail-1.*
+USE_PHP= yes
WANT_PHP_WEB= yes
USE_BZIP2= yes
@@ -38,9 +39,6 @@ PLIST_SUB+= PORTVERSION=${PORTVERSION} \
MASTERDIR= ${.CURDIR}
.endif
-.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/php4/bsd.php.mk"
-
pre-everything::
@${ECHO_CMD} "SquirrelMail is installed into ${SQUIRRELDIR}"
@${ECHO_CMD} "To use the old location ${PREFIX}/squirrelmail define"
@@ -105,4 +103,4 @@ post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/misc/achievo/Makefile b/misc/achievo/Makefile
index ba9b41d7026a..d1eae3ee7544 100644
--- a/misc/achievo/Makefile
+++ b/misc/achievo/Makefile
@@ -14,9 +14,8 @@ DISTNAME= ${PORTNAME}-stable-${PORTVERSION}
MAINTAINER= kevin@caomhin.demon.co.uk
COMMENT= A flexible web-based resource management tool
+USE_PHP= yes
WANT_PHP_MOD= yes
-PHP_VER= 4
-.include <../../lang/php4/bsd.php.mk>
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= YES
diff --git a/net/scr_ipfm/Makefile b/net/scr_ipfm/Makefile
index 249daa9500e5..895f41a2b01d 100644
--- a/net/scr_ipfm/Makefile
+++ b/net/scr_ipfm/Makefile
@@ -15,13 +15,11 @@ MAINTAINER= sexbear@tmu.edu.tw
COMMENT= Use logs generated by ipfm to show data graphically
NO_BUILD= yes
+USE_PHP= yes
MYADMDIR?= www/data/scr_ipfm
PLIST_SUB= MYADMDIR=${MYADMDIR}
PORTDOCS= BUGS COPYING ChangeLog README README_pl THANKS TODO
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
do-install:
@${MKDIR} ${PREFIX}/${MYADMDIR}
${CP} -R ${WRKSRC}/[a-z]* ${PREFIX}/${MYADMDIR}
@@ -33,4 +31,4 @@ do-install:
@${CAT} ${PKGMESSAGE}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/security/snortreport/Makefile b/security/snortreport/Makefile
index 1f475a0063f0..5ae6b2293350 100644
--- a/security/snortreport/Makefile
+++ b/security/snortreport/Makefile
@@ -17,14 +17,12 @@ COMMENT= Add-on module for snort to generate real-time web reports
RUN_DEPENDS= ${LOCALBASE}/share/jpgraph/jpgraph.php:${PORTSDIR}/graphics/jpgraph
.endif
+USE_PHP= yes
WANT_PHP_WEB= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
NO_BUILD= yes
-.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/php4/bsd.php.mk"
-
pre-everything::
@${ECHO} ""
@${ECHO} "You have to configure PHP either with MySQL or PostgreSQL"
@@ -57,4 +55,4 @@ post-install:
.endif
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/abcache/Makefile b/www/abcache/Makefile
index a3eac9c45d32..427280b9229d 100644
--- a/www/abcache/Makefile
+++ b/www/abcache/Makefile
@@ -16,6 +16,7 @@ COMMENT= A tool to cache applications written in PHP
WRKSRC= ${WRKDIR}/bware_cache-${PORTVERSION}
+USE_PHP= yes
USE_PHPIZE= yes
WITH_PHP_MOD= yes
@@ -23,9 +24,6 @@ CONFIGURE_ARGS+=--enable-bware_cache=shared
PKGMESSAGE= ${WRKDIR}/pkg-message
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
post-build:
@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \
${.CURDIR}/pkg-message > ${PKGMESSAGE}
@@ -38,4 +36,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/eaccelerator/Makefile b/www/eaccelerator/Makefile
index daa9cd11c383..7c4317bb19a8 100644
--- a/www/eaccelerator/Makefile
+++ b/www/eaccelerator/Makefile
@@ -16,15 +16,13 @@ COMMENT= An opcode cache for PHP with encoder and loader
USE_BZIP2= yes
USE_REINPLACE= yes
+USE_PHP= yes
USE_PHPIZE= yes
CONFIGURE_ARGS= --enable-mmcache=shared
PKGMESSAGE= ${WRKDIR}/pkg-message
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
post-patch:
@${REINPLACE_CMD} 's|ALIGN|MMALIGN|g' ${WRKSRC}/mm.c ${WRKSRC}/mmcache.c
@@ -49,4 +47,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/gallery/Makefile b/www/gallery/Makefile
index 2c3076184887..1b1e3b68cc5d 100644
--- a/www/gallery/Makefile
+++ b/www/gallery/Makefile
@@ -54,6 +54,7 @@ LANGPACKS= af_ZA-pack-${LANGVERSION}-u1${EXTRACT_SUFX} \
zh_TW-pack-${LANGVERSION}-u1${EXTRACT_SUFX} \
zh_TW.utf8-pack-${LANGVERSION}${EXTRACT_SUFX}
+USE_PHP= yes
WANT_PHP_WEB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
@@ -64,9 +65,6 @@ EXCEPTFILES= ${DOCFILES} LICENSE.txt
CPIOARGS= --quiet -pdum -R
PLIST_SUB= GALLERYDIR=${GALLERYDIR}
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
pre-fetch:
.if !defined(GALLERYDIR)
@${ECHO_MSG} ""
@@ -106,4 +104,4 @@ post-install:
@ ${CAT} ${PKGMESSAGE}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/gallery2/Makefile b/www/gallery2/Makefile
index 2c3076184887..1b1e3b68cc5d 100644
--- a/www/gallery2/Makefile
+++ b/www/gallery2/Makefile
@@ -54,6 +54,7 @@ LANGPACKS= af_ZA-pack-${LANGVERSION}-u1${EXTRACT_SUFX} \
zh_TW-pack-${LANGVERSION}-u1${EXTRACT_SUFX} \
zh_TW.utf8-pack-${LANGVERSION}${EXTRACT_SUFX}
+USE_PHP= yes
WANT_PHP_WEB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
@@ -64,9 +65,6 @@ EXCEPTFILES= ${DOCFILES} LICENSE.txt
CPIOARGS= --quiet -pdum -R
PLIST_SUB= GALLERYDIR=${GALLERYDIR}
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
pre-fetch:
.if !defined(GALLERYDIR)
@${ECHO_MSG} ""
@@ -106,4 +104,4 @@ post-install:
@ ${CAT} ${PKGMESSAGE}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/gallery3/Makefile b/www/gallery3/Makefile
index 2c3076184887..1b1e3b68cc5d 100644
--- a/www/gallery3/Makefile
+++ b/www/gallery3/Makefile
@@ -54,6 +54,7 @@ LANGPACKS= af_ZA-pack-${LANGVERSION}-u1${EXTRACT_SUFX} \
zh_TW-pack-${LANGVERSION}-u1${EXTRACT_SUFX} \
zh_TW.utf8-pack-${LANGVERSION}${EXTRACT_SUFX}
+USE_PHP= yes
WANT_PHP_WEB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
@@ -64,9 +65,6 @@ EXCEPTFILES= ${DOCFILES} LICENSE.txt
CPIOARGS= --quiet -pdum -R
PLIST_SUB= GALLERYDIR=${GALLERYDIR}
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
pre-fetch:
.if !defined(GALLERYDIR)
@${ECHO_MSG} ""
@@ -106,4 +104,4 @@ post-install:
@ ${CAT} ${PKGMESSAGE}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/pear-APC/Makefile b/www/pear-APC/Makefile
index 7396299260d7..ebad4289b675 100644
--- a/www/pear-APC/Makefile
+++ b/www/pear-APC/Makefile
@@ -15,12 +15,12 @@ COMMENT= Alternative PHP Cache
BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
RUN_DEPENDS= ${BUILD_DEPENDS}
+USE_PHP= yes
USE_PHPIZE= yes
CONFIGURE_ARGS= --enable-apc
.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/php4/bsd.php.mk"
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
.if exists(${LOCALBASE}/bin/php-config)
diff --git a/www/pecl-APC-devel/Makefile b/www/pecl-APC-devel/Makefile
index 7396299260d7..ebad4289b675 100644
--- a/www/pecl-APC-devel/Makefile
+++ b/www/pecl-APC-devel/Makefile
@@ -15,12 +15,12 @@ COMMENT= Alternative PHP Cache
BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
RUN_DEPENDS= ${BUILD_DEPENDS}
+USE_PHP= yes
USE_PHPIZE= yes
CONFIGURE_ARGS= --enable-apc
.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/php4/bsd.php.mk"
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
.if exists(${LOCALBASE}/bin/php-config)
diff --git a/www/pecl-APC/Makefile b/www/pecl-APC/Makefile
index 7396299260d7..ebad4289b675 100644
--- a/www/pecl-APC/Makefile
+++ b/www/pecl-APC/Makefile
@@ -15,12 +15,12 @@ COMMENT= Alternative PHP Cache
BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
RUN_DEPENDS= ${BUILD_DEPENDS}
+USE_PHP= yes
USE_PHPIZE= yes
CONFIGURE_ARGS= --enable-apc
.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/php4/bsd.php.mk"
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
.if exists(${LOCALBASE}/bin/php-config)
diff --git a/www/php-dyn/Makefile b/www/php-dyn/Makefile
index 5f9a1284a3aa..f9031cc7e038 100644
--- a/www/php-dyn/Makefile
+++ b/www/php-dyn/Makefile
@@ -16,6 +16,7 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ale@FreeBSD.org
COMMENT= A PHP Extension to help debugging a PHP script
+USE_PHP= yes
USE_PHPIZE= yes
WITH_PHP_MOD= yes
@@ -23,9 +24,6 @@ CONFIGURE_ARGS= --enable-php_dyn=shared
PKGMESSAGE= ${WRKDIR}/pkg-message
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
post-build:
@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \
${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
@@ -42,4 +40,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/php-screw/Makefile b/www/php-screw/Makefile
index e5086520bba4..7ef04de03dec 100644
--- a/www/php-screw/Makefile
+++ b/www/php-screw/Makefile
@@ -20,13 +20,11 @@ PKGMESSAGE= ${WRKDIR}/pkg-message
CRYPTKEY?= 11152, 368, 192, 1281, 62
+USE_PHP= yes
USE_PHPIZE= yes
CONFIGURE_ARGS+=--enable-php_screw=shared
-.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/php4/bsd.php.mk"
-
pre-everything::
@${ECHO} ""
@${ECHO} "To achieve real security, define your own encryption"
@@ -57,4 +55,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/php-templates/Makefile b/www/php-templates/Makefile
index 14b2d14b6677..fb5e186ddba1 100644
--- a/www/php-templates/Makefile
+++ b/www/php-templates/Makefile
@@ -21,15 +21,13 @@ COMMENT= A template framework for PHP
WRKSRC= ${WRKDIR}/templates
+USE_PHP= yes
USE_PHPIZE= yes
CONFIGURE_ARGS= --enable-templates=shared
PKGMESSAGE= ${WRKDIR}/pkg-message
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
post-build:
@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \
${.CURDIR}/pkg-message > ${PKGMESSAGE}
@@ -46,4 +44,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/phpSysInfo/Makefile b/www/phpSysInfo/Makefile
index 229a1d671cfc..e98baf97a568 100644
--- a/www/phpSysInfo/Makefile
+++ b/www/phpSysInfo/Makefile
@@ -13,6 +13,7 @@ MASTER_SITE_SUBDIR= phpsysinfo
MAINTAINER= so14k@so14k.com
COMMENT= A php script that displays info about the host being accessed
+USE_PHP= yes
WANT_PHP_WEB= yes
PREFIX= ${LOCALBASE}
@@ -25,9 +26,6 @@ PLIST= ${WRKDIR}/plist
PLIST_SUB+= INSTALLDIR=${INSTALLDIR:S,^${PREFIX}/,,}
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
post-patch:
rm -f ${PLIST}
cd ${WRKSRC};\
@@ -43,4 +41,4 @@ do-install:
${CHMOD} -R ${BINMODE} ${INSTALLDIR}
${FIND} ${INSTALLDIR} ! -type d | ${XARGS} ${CHMOD} ${NOBINMODE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/phpsysinfo-dev/Makefile b/www/phpsysinfo-dev/Makefile
index 229a1d671cfc..e98baf97a568 100644
--- a/www/phpsysinfo-dev/Makefile
+++ b/www/phpsysinfo-dev/Makefile
@@ -13,6 +13,7 @@ MASTER_SITE_SUBDIR= phpsysinfo
MAINTAINER= so14k@so14k.com
COMMENT= A php script that displays info about the host being accessed
+USE_PHP= yes
WANT_PHP_WEB= yes
PREFIX= ${LOCALBASE}
@@ -25,9 +26,6 @@ PLIST= ${WRKDIR}/plist
PLIST_SUB+= INSTALLDIR=${INSTALLDIR:S,^${PREFIX}/,,}
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
post-patch:
rm -f ${PLIST}
cd ${WRKSRC};\
@@ -43,4 +41,4 @@ do-install:
${CHMOD} -R ${BINMODE} ${INSTALLDIR}
${FIND} ${INSTALLDIR} ! -type d | ${XARGS} ${CHMOD} ${NOBINMODE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/phpsysinfo/Makefile b/www/phpsysinfo/Makefile
index 229a1d671cfc..e98baf97a568 100644
--- a/www/phpsysinfo/Makefile
+++ b/www/phpsysinfo/Makefile
@@ -13,6 +13,7 @@ MASTER_SITE_SUBDIR= phpsysinfo
MAINTAINER= so14k@so14k.com
COMMENT= A php script that displays info about the host being accessed
+USE_PHP= yes
WANT_PHP_WEB= yes
PREFIX= ${LOCALBASE}
@@ -25,9 +26,6 @@ PLIST= ${WRKDIR}/plist
PLIST_SUB+= INSTALLDIR=${INSTALLDIR:S,^${PREFIX}/,,}
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
post-patch:
rm -f ${PLIST}
cd ${WRKSRC};\
@@ -43,4 +41,4 @@ do-install:
${CHMOD} -R ${BINMODE} ${INSTALLDIR}
${FIND} ${INSTALLDIR} ! -type d | ${XARGS} ${CHMOD} ${NOBINMODE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/smarty/Makefile b/www/smarty/Makefile
index 1e8f440fc09a..28422df0f85d 100644
--- a/www/smarty/Makefile
+++ b/www/smarty/Makefile
@@ -21,6 +21,7 @@ COMMENT= The PHP compiling template engine
WRKSRC= ${WRKDIR}/Smarty-${PORTVERSION}
NO_BUILD= yes
+USE_PHP= yes
WANT_PHP_WEB= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
@@ -28,8 +29,6 @@ MSG_SRC= ${FILESDIR}/pkg-message
MSG_SUB= DATADIR=${DATADIR} LOCALBASE=${LOCALBASE}
-.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/php4/bsd.php.mk"
do-install:
@${MKDIR} ${DATADIR}
.for f in Config_File.class.php Smarty.class.php Smarty_Compiler.class.php debug.tpl
@@ -59,4 +58,4 @@ post-install:
${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/turck-mmcache/Makefile b/www/turck-mmcache/Makefile
index daa9cd11c383..7c4317bb19a8 100644
--- a/www/turck-mmcache/Makefile
+++ b/www/turck-mmcache/Makefile
@@ -16,15 +16,13 @@ COMMENT= An opcode cache for PHP with encoder and loader
USE_BZIP2= yes
USE_REINPLACE= yes
+USE_PHP= yes
USE_PHPIZE= yes
CONFIGURE_ARGS= --enable-mmcache=shared
PKGMESSAGE= ${WRKDIR}/pkg-message
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
post-patch:
@${REINPLACE_CMD} 's|ALIGN|MMALIGN|g' ${WRKSRC}/mm.c ${WRKSRC}/mmcache.c
@@ -49,4 +47,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/x11-toolkits/php-gtk/Makefile b/x11-toolkits/php-gtk/Makefile
index 318396c32bae..868f333aeacc 100644
--- a/x11-toolkits/php-gtk/Makefile
+++ b/x11-toolkits/php-gtk/Makefile
@@ -21,18 +21,15 @@ USE_LIBTOOL= yes
WANT_AUTOMAKE_VER= 15
WANT_AUTOCONF_VER= 253
LIBTOOLFILES= # none
+USE_PHP= yes
USE_PHPIZE= yes
+WANT_PHP_CLI= yes
USE_AUTOCONF= no
USE_GMAKE= yes
USE_PERL5_BUILD=yes
USE_GNOME= gtk12
INSTALLS_SHLIB= yes
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
-BUILD_DEPENDS+= ${PREFIX}/bin/php:${PORTSDIR}/lang/php4
-
# Fix environment for self contained extensions
ENVSCE= -DHAVE_PHP_GTK=1 -DCOMPILE_DL_PHP_GTK=1 \
-DHAVE_PIEMENU=1 \
@@ -120,4 +117,4 @@ post-install:
@${CAT} ${MASTERDIR}/pkg-message
@${ECHO} ""
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/x11-toolkits/php-gtk2/Makefile b/x11-toolkits/php-gtk2/Makefile
index 318396c32bae..868f333aeacc 100644
--- a/x11-toolkits/php-gtk2/Makefile
+++ b/x11-toolkits/php-gtk2/Makefile
@@ -21,18 +21,15 @@ USE_LIBTOOL= yes
WANT_AUTOMAKE_VER= 15
WANT_AUTOCONF_VER= 253
LIBTOOLFILES= # none
+USE_PHP= yes
USE_PHPIZE= yes
+WANT_PHP_CLI= yes
USE_AUTOCONF= no
USE_GMAKE= yes
USE_PERL5_BUILD=yes
USE_GNOME= gtk12
INSTALLS_SHLIB= yes
-.include <bsd.port.pre.mk>
-.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
-
-BUILD_DEPENDS+= ${PREFIX}/bin/php:${PORTSDIR}/lang/php4
-
# Fix environment for self contained extensions
ENVSCE= -DHAVE_PHP_GTK=1 -DCOMPILE_DL_PHP_GTK=1 \
-DHAVE_PIEMENU=1 \
@@ -120,4 +117,4 @@ post-install:
@${CAT} ${MASTERDIR}/pkg-message
@${ECHO} ""
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>