aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_gzip/Makefile
blob: aa400f82b9915c17b87d10608d14a4acf13ab51f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# New ports collection makefile for:    mod_gzip Apache module
# Date created:     Dec 13 2000
# Whom:         Mikhail Teterin <mi@aldan.algebra.com>
#
# $FreeBSD$
#

PORTNAME=   mod_gzip
PORTVERSION=    1.3.14.6e
CATEGORIES= www
MASTER_SITES=   http://12.17.228.52/mod_gzip/src/${PORTVERSION}/
DISTFILES=  ${PORTNAME}.c.gz
EXTRACT_ONLY=   ${DISTFILES:M*.gz}

MAINTAINER= mi@aldan.algebra.com

BUILD_DEPENDS=  ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
RUN_DEPENDS=    ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13

.if !defined(NOPORTDOCS)
DISTFILES+= readme.txt
.endif

NO_WRKSUBDIR=   YES

DIST_SUBDIR=    ${PORTNAME}
EXTRACT_AFTER_ARGS= > ${PORTNAME}.c

do-build:
    cd ${WRKSRC} && ${LOCALBASE}/sbin/apxs -c ${PORTNAME}.c

do-install:
    cd ${WRKSRC} && ${LOCALBASE}/sbin/apxs -A -i ${PORTNAME}.so

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
    @${INSTALL_DATA} ${_DISTDIR}/${DISTFILES:N*gz} \
        ${PREFIX}/share/doc/${PORTNAME}
.endif

.include <bsd.port.mk>