apache updates negate need for custom module.mk file

This commit is contained in:
Adrian Portelli 2003-09-17 19:36:05 +00:00
parent 19ea5eb3e0
commit c035aef330
2 changed files with 1 additions and 54 deletions

View file

@ -1,7 +1,3 @@
$NetBSD: TODO,v 1.2 2003/08/29 11:28:00 adrian_p Exp $
$NetBSD: TODO,v 1.3 2003/09/17 19:36:05 adrian_p Exp $
Needs more testing.
In addition this package WILL NOT BUILD unless you copy the module.mk file in
this directory to pkgsrc/www/apache2. This issue is noted in pkg/22637 and you
will need to do this until, if and when, it ends up in the main pkgsrc tree.

View file

@ -1,49 +0,0 @@
# $NetBSD: module.mk,v 1.1 2003/08/29 11:27:12 adrian_p Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install apache2 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 .la 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/buildlink2.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