pkgsrc/mk/apache.mk
joerg 337c6b1297 Rename all PHP 4 packages to php4-*, all PHP 5 packages to php5-*,
all PEAR packages to php?-pear-* and all Apache packages to ap13-* or
ap2-* respectively. Add new variables to simplify the Makefile
handling. Add CONFLICTS on the old names. Reset revisions of bumped
packages. ap-php will now depend on the default Apache and PHP version.
All programs using it have an implicit option of the Apache version
as well.

OK from jlam@ and adrianp@.
2006-06-02 18:27:54 +00:00

54 lines
1.7 KiB
Makefile

# $NetBSD: apache.mk,v 1.12 2006/06/02 18:27:57 joerg Exp $
#
# This Makefile fragment handles Apache dependencies and make variables,
# and is meant to be included by packages that require Apache either at
# build-time or at run-time. apache.mk will:
#
# * set PKG_APACHE to the name of the apache web server used
#
# * add a full dependency on the apache server
#
# * optionally add a full dependency on apr
#
# The available user variables are:
#
# PKG_APACHE_DEFAULT is a user-settable variable whose value is the default
# apache server to use. Possible values are apache13 and apache2.
# If there is already a version of apache installed this will have no
# effect.
#
# The available makefile variables are:
#
# PKG_APACHE_ACCEPTED is a package-settable list of servers that may be used as
# possible dependencies for the package. Possible values are the same as
# for PKG_APACHE_DEFAULT.
#
# USE_APR is used to note that the package requires the Apache Portable
# runtime to build and execute. This is only takes effect if apache2
# is chosen (by this file) as the web server to use. This adds a full
# dependency on apr.
#
.if !defined(APACHE_MK)
APACHE_MK= # defined
.include "../../mk/apachever.mk"
# Add a runtime dependency on the apache server.
# This may or may not create an actual dependency depending on
# what the apache buildlink[23].mk file does.
#
.if defined(_APACHE_PKGSRCDIR)
. include "${_APACHE_BL_SRCDIR}/buildlink3.mk"
.endif
# If we are building apache modules, then we might need a build-time
# dependency on apr, and the apache sources?
#
.if ${_PKG_APACHE} == "apache2"
. if defined(USE_APR) && !empty(USE_APR:M[yY][eE][sS])
. include "../../devel/apr/buildlink3.mk"
. endif
.endif
.endif # APACHE_MK