1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00
freebsd-ports/www/mod_scgi/Makefile
Volker Stolz 698b7ccbf4 - upgrade to 1.2
- fix build on Apache13

PR:		ports/69978
Submitted by:	Dryice Liu (maintainer)
2004-08-06 09:32:23 +00:00

44 lines
897 B
Makefile

# New ports collection makefile for: scgi
# Date created: 19 Aug 2002
# Whom: Neil Blakey-Milner <nbm@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= scgi
PORTVERSION= 1.2
CATEGORIES= www
MASTER_SITES= http://www.mems-exchange.org/software/files/scgi/
PKGNAMEPREFIX= mod_
DISTNAME= scgi-${PORTVERSION:S/.a/a/}
MAINTAINER= dryice@liu.com.cn
COMMENT= Apache module that implements the client side of the SCGI protocol
USE_APACHE= yes
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/${SCGI_DIR}
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/include/apache2/apr.h)
WITH_APACHE2= yes
.endif
.if defined(WITH_APACHE2)
SCGI_DIR= apache2
PLIST_SUB= APACHE_DIR=apache2
.else
SCGI_DIR= apache1
PLIST_SUB= APACHE_DIR=apache
.endif
do-build:
cd ${WRKSRC} && ${APXS} -c mod_scgi.c
do-install:
cd ${WRKSRC} && ${APXS} -i -c mod_scgi.c
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>