freebsd-ports/www/mod_dtcl/Makefile
Philip M. Gollucci 335f8cb35d Mk/bsd.apache.mk can not sufficiently alter things before Mk/bsd.options.mk
in Mk/bsd.ports.mk due to ordering in Mk/bsd.port.mk.  This causes OPTIONSFILE
to be incorrectly set during some make phases as a result of the recent
PKGNAMEPREFIX for apache ports.

'Revert' some of the PKGNAMEPREFIX changes for apXX-.
   - Must be manually requested in tbe port Makefile either by
     a) AP_FAST_BUILD=yes
     b) PKGNAMEPREFIX=${APACHE_PKGNAMEPREFIX}
   - Going forward, we will only do this for ports where WITH_APACHE
       is NOT optional, but required.  mod_* ports are a good fit.

141 ports are mod_ ports
  80 of those use AP_FAST_BUILD and thus are auto hooked by this patch [a].
  61 remaining are then patched to mirror the other $lang frameworks [b].

PR:             ports/146956
Reported by:    Hans F. Nordhaug <Hans.F.Nordhaug@hiMolde.no>, several
Discussed with: pav, itectu on #bsdports
Tested by:      P6 TB run
Approved by:    portmgr (pav)
2010-05-25 20:17:37 +00:00

43 lines
1.1 KiB
Makefile

# New ports collection makefile for: mod_dtcl
# Date created: January 9, 1999
# Whom: Mikhail Teterin <mi@aldan.algebra.com>
#
# $FreeBSD$
#
PORTNAME= mod_dtcl
PORTVERSION= 0.12.0
PORTREVISION= 1
CATEGORIES= www tcl
MASTER_SITES= http://tcl.apache.org/mod_dtcl/download/
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
MAINTAINER= mi@aldan.algebra.com
COMMENT= Embeds a TCL8 interpreter in the Apache server
BUILD_DEPENDS= ${APXS}:${PORTSDIR}/${APACHE_PORT}
USE_TCL= 83+
WRKSRC= ${WRKDIR}/mod_dtcl
MAKEFILE= ${FILESDIR}/Makefile.bsd
USE_APACHE= 1.3
MAKE_ENV+= TCL_VERSION=${TCL_VER}
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 800000
BROKEN= does not build
.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/libmod_dtcl.so.1* \
${PREFIX}/libexec/apache/mod_dtcl.so
${PREFIX}/sbin/apxs -e -A -n dtcl ${PREFIX}/libexec/apache/mod_dtcl.so
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/mod_dtcl
${INSTALL_DATA} ${WRKSRC}/docs/*.?tml ${WRKSRC}/docs/*.gif \
${PREFIX}/share/doc/mod_dtcl
${SED} 's,/usr/local,${LOCALBASE},g' ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>