1998-07-25 11:30:31 +00:00
|
|
|
# New ports collection makefile for: apache HTTPD / php3
|
1998-09-01 18:38:05 +00:00
|
|
|
# Version required: 1.3.1 / 3.0.3
|
1998-07-25 11:30:31 +00:00
|
|
|
# Date created: So 21 Jun 1998 16:09:39 CEST
|
|
|
|
# Whom: Stefan Herrmann <stefan@asterix.webaffairs.net>
|
1995-08-28 13:28:45 +00:00
|
|
|
#
|
1998-09-13 17:18:13 +00:00
|
|
|
# $Id: Makefile,v 1.53 1998/09/01 21:04:57 andreas Exp $
|
1995-08-28 13:28:45 +00:00
|
|
|
#
|
|
|
|
|
1998-09-01 18:38:05 +00:00
|
|
|
DISTNAME= apache_${APACHE_VER}
|
|
|
|
PKGNAME= apache-php${PHP3_VER}-${APACHE_VER}
|
1996-11-18 11:44:27 +00:00
|
|
|
CATEGORIES= www
|
1998-06-14 09:58:22 +00:00
|
|
|
MASTER_SITES= ftp://www.apache.org/apache/dist/ \
|
1998-07-25 11:30:31 +00:00
|
|
|
http://www.php.net/distributions/
|
1998-09-01 18:38:05 +00:00
|
|
|
DISTFILES= apache_${APACHE_VER}.tar.gz php-${PHP3_VER}.tar.gz
|
1995-08-28 13:28:45 +00:00
|
|
|
|
1998-09-13 17:18:13 +00:00
|
|
|
MAINTAINER= Dirk Froemberg <ibex@physik.TU-Berlin.DE>
|
1997-09-03 18:45:16 +00:00
|
|
|
|
1998-09-01 18:38:05 +00:00
|
|
|
APACHE_VER= 1.3.1
|
|
|
|
PHP3_VER= 3.0.3
|
1997-09-03 18:45:16 +00:00
|
|
|
|
1998-09-01 21:04:57 +00:00
|
|
|
USE_PERL5= yes
|
1998-09-01 18:38:05 +00:00
|
|
|
|
|
|
|
IS_INTERACTIVE= yes
|
|
|
|
NO_PACKAGE= Support for different databases
|
1998-06-14 09:58:22 +00:00
|
|
|
|
1998-07-25 11:30:31 +00:00
|
|
|
#
|
|
|
|
# Set APACHE_PERF_TUNING env. variable to YES to get maximum performance
|
|
|
|
#
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= \
|
|
|
|
--sysconfdir=${PREFIX}/etc/apache \
|
|
|
|
--includedir=${PREFIX}/include/apache \
|
|
|
|
--logfiledir=/var/log \
|
|
|
|
--runtimedir=/var/run \
|
|
|
|
--datadir=${PREFIX}/www \
|
|
|
|
--proxycachedir=${PREFIX}/www/proxy \
|
|
|
|
--libexecdir=${PREFIX}/libexec/apache \
|
|
|
|
--enable-shared=remain \
|
|
|
|
--enable-module=most \
|
|
|
|
--enable-module=auth_db \
|
|
|
|
--disable-module=auth_dbm \
|
|
|
|
--with-perl=${PREFIX}/bin/perl5 \
|
|
|
|
--activate-module=src/modules/php3/libphp3.a
|
1998-06-14 09:58:22 +00:00
|
|
|
|
1998-07-25 11:30:31 +00:00
|
|
|
OPTIM=-DHARD_SERVER_LIMIT=512 \
|
|
|
|
-DDOCUMENT_LOCATION=\\"${PREFIX}/www/data/\\" \
|
|
|
|
-DDEFAULT_PATH=\\"/bin:/usr/bin:${PREFIX}/bin\\"
|
|
|
|
|
|
|
|
.if defined(APACHE_PERF_TUNING) && ${APACHE_PERF_TUNING} == YES
|
|
|
|
CONFIGURE_ARGS+= --disable-rule=STATUS
|
|
|
|
OPTIM+= -DBUFFERED_LOGS
|
|
|
|
CFLAGS+= -O6 -fomit-frame-pointer -fexpensive-optimizations
|
1998-02-22 23:06:17 +00:00
|
|
|
.endif
|
|
|
|
|
1998-09-01 18:38:05 +00:00
|
|
|
CONFIGURE_ENV= OPTIM='${OPTIM}' LIBS='-L${PREFIX}/lib'
|
1998-07-25 11:30:31 +00:00
|
|
|
|
|
|
|
MAN1= ab.1 apachectl.1 dbmmanage.1 htdigest.1 htpasswd.1
|
|
|
|
MAN8= apxs.8 httpd.8 logresolve.8 rotatelogs.8
|
1998-06-14 09:58:22 +00:00
|
|
|
|
1998-07-25 11:30:31 +00:00
|
|
|
APACHEDOCDIR= ${PREFIX}/share/doc/apache
|
|
|
|
PHP3DOCDIR= ${PREFIX}/share/doc/php3
|
1998-07-25 06:51:26 +00:00
|
|
|
|
1998-07-25 11:30:31 +00:00
|
|
|
PHP3_CONF_ARGS= --prefix=${PREFIX} \
|
|
|
|
--with-system-regex \
|
|
|
|
--with-apache=${WRKSRC} \
|
|
|
|
--with-config-file-path=${PREFIX}/lib \
|
|
|
|
--disable-debug
|
1998-06-14 09:58:22 +00:00
|
|
|
|
1998-09-01 18:38:05 +00:00
|
|
|
post-fetch:
|
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php
|
1996-05-20 07:37:06 +00:00
|
|
|
|
1998-09-01 18:38:05 +00:00
|
|
|
#post-patch:
|
|
|
|
# @${PATCH} -s -d ${WRKDIR}/php-${PHP3_VER} < ${FILESDIR}/configure.patch
|
1996-11-07 01:49:57 +00:00
|
|
|
|
1997-09-03 18:45:16 +00:00
|
|
|
pre-configure:
|
1998-09-01 18:38:05 +00:00
|
|
|
@( cd ${WRKSRC} \
|
|
|
|
&& ./configure > /dev/null \
|
|
|
|
&& cd ${WRKDIR}/php-${PHP3_VER} \
|
|
|
|
&& ${ECHO_MSG} "===> Configuring for PHP-${PHP3_VER}" \
|
1998-07-25 11:30:31 +00:00
|
|
|
&& CFLAGS= CPPFLAGS="-I${PREFIX}/include -I${PREFIX}/include/gd" LDFLAGS=-L${PREFIX}/lib ./configure ${PHP3_CONF_ARGS} \
|
1998-09-01 18:38:05 +00:00
|
|
|
&& ${ECHO_MSG} "===> Building for PHP-${PHP3_VER}" \
|
1998-07-25 11:30:31 +00:00
|
|
|
&& ${MAKE} install \
|
1998-09-01 18:38:05 +00:00
|
|
|
&& ${ECHO_MSG} "===> Configuring for Apache-${APACHE_VER}" )
|
1997-09-03 18:45:16 +00:00
|
|
|
|
1996-06-15 16:58:09 +00:00
|
|
|
post-install:
|
1998-06-14 09:58:22 +00:00
|
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \
|
1997-10-04 14:53:11 +00:00
|
|
|
${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \
|
1998-07-25 11:30:31 +00:00
|
|
|
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh; \
|
1998-08-27 14:08:20 +00:00
|
|
|
${ECHO} "[ -d ${PREFIX}/pgsql/lib ] && ${LDCONFIG} -m ${PREFIX}/pgsql/lib" >> ${PREFIX}/etc/rc.d/apache.sh; \
|
1998-07-25 11:30:31 +00:00
|
|
|
${ECHO} "[ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > /dev/null && ${ECHO} -n ' apache'" >> ${PREFIX}/etc/rc.d/apache.sh; \
|
1996-06-15 17:51:08 +00:00
|
|
|
chmod 751 ${PREFIX}/etc/rc.d/apache.sh; \
|
|
|
|
fi
|
1998-07-25 11:30:31 +00:00
|
|
|
|
1998-06-14 09:58:22 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
1998-07-25 11:30:31 +00:00
|
|
|
${MKDIR} ${APACHEDOCDIR} ${PHP3DOCDIR}
|
1998-06-14 09:58:22 +00:00
|
|
|
.for i in README LICENSE ABOUT_APACHE
|
1998-07-25 11:30:31 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$i ${APACHEDOCDIR}
|
|
|
|
.endfor
|
|
|
|
(cd ${WRKSRC}/htdocs && tar cf - *) |\
|
|
|
|
(cd ${APACHEDOCDIR} && tar xf -); \
|
|
|
|
find ${APACHEDOCDIR} -type d -exec chmod a+rx {} \; ; \
|
|
|
|
find ${APACHEDOCDIR} -type f -exec chmod a+r {} \;
|
|
|
|
.for i in apache_pb.gif index.html manual
|
1998-09-01 18:38:05 +00:00
|
|
|
${LN} -s ${PREFIX}/share/doc/apache/$i ${PREFIX}/www/data/$i
|
1998-07-25 11:30:31 +00:00
|
|
|
.endfor
|
|
|
|
.for i in CODING_STANDARDS EXTENSION_STATUS LICENSE
|
1998-09-01 18:38:05 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/php-${PHP3_VER}/$i ${PHP3DOCDIR}
|
1998-06-14 09:58:22 +00:00
|
|
|
.endfor
|
1998-09-01 18:38:05 +00:00
|
|
|
@${ECHO} "Docs reside in ${APACHEDOCDIR}"
|
|
|
|
@${ECHO} "and in ${PHP3DOCDIR}"
|
1998-06-14 09:58:22 +00:00
|
|
|
.endif
|
1996-06-15 16:58:09 +00:00
|
|
|
|
1998-09-01 18:38:05 +00:00
|
|
|
# This was copied from bsd.port.mk because a missing post-clean target
|
|
|
|
# is needed
|
|
|
|
clean:
|
|
|
|
.if !defined(NOCLEANDEPENDS)
|
|
|
|
@${MAKE} clean-depends
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} "===> Cleaning for ${PKGNAME}"
|
|
|
|
.if !defined(NO_WRKDIR)
|
|
|
|
@if [ -d ${WRKDIR} ]; then \
|
|
|
|
if [ -w ${WRKDIR} ]; then \
|
|
|
|
${RM} -rf ${WRKDIR}; \
|
|
|
|
else \
|
|
|
|
${ECHO_MSG} "===> ${WRKDIR} not writable, skipping"; \
|
|
|
|
fi; \
|
|
|
|
fi
|
|
|
|
.else
|
|
|
|
@${RM} -f ${WRKDIR}/.*_done ${TMPPLIST}
|
|
|
|
.endif
|
|
|
|
@${RM} -f Makefile.inc
|
|
|
|
|
|
|
|
.if exists(Makefile.inc)
|
|
|
|
.include "Makefile.inc"
|
|
|
|
.endif
|
1995-08-28 13:28:45 +00:00
|
|
|
.include <bsd.port.mk>
|