freebsd-ports/www/mod_php5/Makefile

104 lines
2.7 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: mod_php4
# Date created: Sun May 28 11:31:54 CEST 2000
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
#
1999-08-31 04:43:35 +02:00
# $FreeBSD$
#
PORTNAME?= mod_php4
PORTVERSION= 4.0.6
PORTREVISION?= 5
CATEGORIES?= www
MASTER_SITES= http://us.php.net/${PHP_DISTDIR}/ \
http://php.he.net/${PHP_DISTDIR}/ \
http://www.php3.de/${PHP_DISTDIR}/ \
2001-05-10 10:24:36 +02:00
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
.if !defined(STANDALONE)
BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
.endif
2000-05-28 17:04:39 +02:00
2000-06-30 15:01:26 +02:00
PHP_DISTDIR= distributions
SLAVEDIRS= lang/php4
USE_AUTOCONF= yes
USE_LIBTOOL= yes
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
IS_INTERACTIVE= yes
.endif
.if defined(STANDALONE)
2001-06-25 00:36:34 +02:00
CONFIGURE_ARGS= --with-config-file-path=${PREFIX}/etc/php.standalone \
--disable-pear \
--enable-discard-path \
--with-readline=/usr
.else
CONFIGURE_ARGS= --with-apxs=${PREFIX}/sbin/apxs \
--with-config-file-path=${PREFIX}/etc
.endif
CONFIGURE_ARGS+=--enable-versioning \
--with-system-regex \
--disable-debug \
--enable-track-vars \
2000-04-04 22:22:19 +02:00
--without-gd \
--without-mysql
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
TOUCH="${TOUCH}" \
MKDIR="${MKDIR}" \
CAT="${CAT}" \
REALCURDIR="${.CURDIR}"
AP_LIBEXEC= ${PREFIX}/libexec/apache
2001-04-23 01:08:06 +02:00
PLIST_SUB= AP_LIBEXEC=${AP_LIBEXEC:S/^${PREFIX}\///}
1999-06-10 12:24:41 +02:00
pre-fetch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php
1996-05-20 09:37:06 +02:00
post-install:
.if !defined(STANDALONE)
@${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc
.else
@${MKDIR} ${PREFIX}/etc/php.standalone
@${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc/php.standalone
.endif
.if !defined(STANDALONE)
@${ECHO} "*****************************************************************************"
@${ECHO} "Make sure the mime.types are connected to the php module properly and"
@${ECHO} "index.php is part of your DirectoryIndex."
@${ECHO} ""
@${ECHO} "The following should be in your Apache configuration file:"
@${ECHO} "[...]"
@${ECHO} "DirectoryIndex index.php index.html"
@${ECHO} "[...]"
@${ECHO} "AddType application/x-httpd-php .php"
@${ECHO} "AddType application/x-httpd-php-source .phps"
@${ECHO} "[...]"
@${ECHO} "*****************************************************************************"
.endif
post-clean:
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
.endif
post-extract: ${POSTEXTRACT}
.include <bsd.port.mk>