1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/www/mod_dav/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

75 lines
2.1 KiB
Makefile

# New ports collection makefile for: mod_dav (apache)
# Date created: Sun Oct 17, 1999
# Whom: patrick@mindstep.com
#
# $FreeBSD$
#
PORTNAME= mod_dav
PORTVERSION= 1.0.3
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= http://www.webdav.org/mod_dav/
DISTNAME= mod_dav-${PORTVERSION}-${APACHE_VERSION}
MAINTAINER= apache@FreeBSD.org
COMMENT= An Apache module that provides DAV capabilities
# This port will work with the following version of Apache and anything newer.
APACHE_VERSION= 1.3.6
PKGINSTALL= ${WRKSRC}/pkg-install
PKGDEINSTALL= ${PKGINSTALL}
PKGMESSAGE= ${WRKSRC}/pkg-message
PLIST_FILES= etc/apache/apache.conf.mod_dav libexec/apache/libdav.so
USE_APACHE= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} \
--bindir=${PREFIX}/bin \
--sbindir=${PREFIX}/sbin \
--libexecdir=${PREFIX}/libexec/apache \
--sysconfdir=${PREFIX}/etc/apache \
--datadir=${PREFIX}/share/apache \
--includedir=${PREFIX}/include/apache \
--with-apxs=${APXS}
.if defined(WITHOUT_APACHE_EXPAT)
CONFIGURE_ARGS+= --with-expat=${LOCALBASE}
LIB_DEPENDS+= expat.6:${PORTSDIR}/textproc/expat2
.endif
CONFIGURE_ENV= CFLAGS='${CFLAGS}' \
PATH="${PREFIX}/bin:${PREFIX}/sbin:${PATH}"
.if defined(WITH_SYMLINK_PATCH)
EXTRA_PATCHES= ${FILESDIR}/SYMLINK-mod_dav.h ${FILESDIR}/SYMLINK-dav_fs_repos.c
.endif
.if !defined(WITH_SYMLINK_PATCH)
pre-everything::
@${ECHO_MSG} "Use WITH_SYMLINK_PATCH=yes to let mod_dav follow symlinks."
@/bin/sleep 5
.endif
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/include/apache2/httpd.h)
IGNORE= is designed for apache 1.3. mod_dav for apache2 is built by default
.endif
do-install:
BINMODE=755 ${INSTALL_PROGRAM} ${WRKSRC}/libdav.so ${PREFIX}/libexec/apache
${INSTALL_DATA} ${FILESDIR}/apache.conf.mod_dav ${PREFIX}/etc/apache
post-install:
@${SED} -e 's+%%APXS%%+${APXS}+ ; s+%%WWWOWN%%+${WWWOWN}+ ; s+%%WWWGRP%%+${WWWGRP}+' \
${FILESDIR}/pkg-install.in > ${PKGINSTALL}
.if !defined(PACKAGE_BUILDING)
@${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
@${SED} -e 's+%%PREFIX%%+${PREFIX}+' ${FILESDIR}/pkg-message.in \
> ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>