aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_php5/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/mod_php5/Makefile')
-rw-r--r--www/mod_php5/Makefile105
1 files changed, 8 insertions, 97 deletions
diff --git a/www/mod_php5/Makefile b/www/mod_php5/Makefile
index 397afe01062..7f1f4355a75 100644
--- a/www/mod_php5/Makefile
+++ b/www/mod_php5/Makefile
@@ -4,107 +4,18 @@
#
# $FreeBSD$
#
+# Instructions on how to enable preferred extensions can be found in the
+# Makefile of the master port (lang/php4).
+#
-PORTNAME= mod_php4
-PORTVERSION= 4.3.1
-PORTREVISION= 0
PORTEPOCH= 1
CATEGORIES= www
-MASTER_SITES= http://us.php.net/${PHP_DISTDIR}/ \
- http://php.he.net/${PHP_DISTDIR}/ \
- http://www.php3.de/${PHP_DISTDIR}/ \
- http://au.php.net/${PHP_DISTDIR}/ \
- http://at.php.net/${PHP_DISTDIR}/ \
- http://br.php.net/${PHP_DISTDIR}/ \
- http://php.easydns.com/${PHP_DISTDIR}/ \
- http://www.php.cz/${PHP_DISTDIR}/ \
- http://php3.globe.de/${PHP_DISTDIR}/
-DISTNAME= php-${PORTVERSION}
-
-MAINTAINER= dirk@FreeBSD.org
-COMMENT= PHP4 module for Apache
-
-BUILD_DEPENDS= ${APXS}:${APACHE_PORT}
-RUN_DEPENDS= ${APXS}:${APACHE_PORT}
-.if defined(WITH_APACHE2)
-LIB_DEPENDS= pth.20:${PORTSDIR}/devel/pth
-.endif
-
-PHP_DISTDIR= distributions
-
-USE_BZIP2= yes
-USE_SUBMAKE= yes
-USE_AUTOCONF_VER=213
-.if defined(WITH_APACHE2)
-APACHE_PORT?= ${PORTSDIR}/www/apache2
-.else
-APACHE_PORT?= ${PORTSDIR}/www/apache13
-.endif
-APXS?= ${LOCALBASE}/sbin/apxs
-
-.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
-IS_INTERACTIVE= yes
-.endif
-
-.if defined(WITH_APACHE2)
-CONFIGURE_ARGS= --with-apxs2=${PREFIX}/sbin/apxs \
- --with-tsrm-pth
-PLIST_SUB= MOD_DIR=libexec/apache2
-.else
-CONFIGURE_ARGS= --with-apxs=${PREFIX}/sbin/apxs
-PLIST_SUB= MOD_DIR=libexec/apache
-.endif
-CONFIGURE_ARGS+=--with-config-file-path=${PREFIX}/etc \
- --enable-versioning \
- --with-regex=system \
- --without-gd \
- --without-mysql
-
-CFLAGS+= -I${PREFIX}/include
-
-SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
- TOUCH="${TOUCH}" \
- MKDIR="${MKDIR}" \
- CAT="${CAT}" \
- PHP4_OPTIONS="${PHP4_OPTIONS}" \
- REALCURDIR="${.CURDIR}"
-
-pre-fetch:
- @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php
-.if !defined(WITH_APACHE2)
- @${ECHO_CMD} "Define WITH_APACHE2 to build mod_php4 as an apache2 module."
- @${ECHO_CMD} ""
-.endif
-
-post-install:
- @${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc
-
- @${ECHO_CMD} "*****************************************************************************"
- @${ECHO_CMD} "Make sure the mime.types are connected to the php module properly and"
- @${ECHO_CMD} "index.php is part of your DirectoryIndex."
- @${ECHO_CMD} ""
- @${ECHO_CMD} "The following should be in your Apache configuration file:"
- @${ECHO_CMD} "[...]"
- @${ECHO_CMD} "DirectoryIndex index.php index.html"
- @${ECHO_CMD} "[...]"
- @${ECHO_CMD} "AddType application/x-httpd-php .php"
- @${ECHO_CMD} "AddType application/x-httpd-php-source .phps"
- @${ECHO_CMD} "[...]"
- @${ECHO_CMD} "*****************************************************************************"
-post-clean:
- @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
+MAINTAINER= sysadmin@alexdupre.com
-.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
-.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
-.endif
+PKGMESSAGE= ${.CURDIR}/pkg-message
+MASTERDIR= ${.CURDIR}/../../lang/php4
-# XXX:
-# Has to be kept in sync with the defaults in configure.php
-.ifndef(WITHOUT_MYSQL)
-.ifmake describe
-LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
-.endif
-.endif
+WITHOUT_CLI= yes
-.include <bsd.port.mk>
+.include "${MASTERDIR}/Makefile"