pkgsrc/www/apache/module.mk
jlam da2fc85390 Don't check for USE_BUILDLINK3 anymore in these files. These are included
by other package Makefiles, and with the deprecation of USE_BUILDLINK3
support in the infrastructure files, these had the potential to break
existing packages.
2005-03-24 22:42:58 +00:00

50 lines
1.3 KiB
Makefile

# $NetBSD: module.mk,v 1.10 2005/03/24 22:42:59 jlam Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install apache modules.
#
# The following targets are provided by this file:
#
# do-build builds the module using APXS.
#
# do-install installs the module using APXS.
#
# The following variables may be set prior to including this file:
#
# APACHE_MODULE_NAME the name of this module, including the .so suffix.
#
# APACHE_MODULE_SRCDIR the location of the source files for this module,
# defaults to WRKSRC.
#
# APACHE_MODULE_SRC the source files to be compiled for this
# module, defaults to *.c.
#
.if !defined(_APACHE_MODULE_MK)
_APACHE_MODULE_MK= # defined
APACHE_MODULE= # defined
.include "../../www/apache/buildlink3.mk"
APACHE_MODULE_SRCDIR?= ${WRKSRC}
APACHE_MODULE_SRC?= *.c
apache-module-build:
${_PKG_SILENT}${_PKG_DEBUG} \
cd ${APACHE_MODULE_SRCDIR} && \
${SETENV} PATH=${PATH} \
${APXS} ${CPPFLAGS} ${LDFLAGS} \
-c -o ${APACHE_MODULE_NAME} ${APACHE_MODULE_SRC}
do-build: apache-module-build
${_PKG_SILENT}${_PKG_DEBUG}${DO_NADA}
apache-module-install:
${_PKG_SILENT}${PKG_DEBUG} \
cd ${APACHE_MODULE_SRCDIR} && ${APXS} -i ${APACHE_MODULE_NAME}
do-install: apache-module-install
${_PKG_SILENT}${_PKG_DEBUG}${DO_NADA}
.endif # _APACHE_MODULE_MK