aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_sqlinclude/Makefile
blob: 6aa242a7051a827ff3f284e8dff2e18c321776cd (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
# New ports collection makefile for:    mod_sqlinclude
# Date created:             October 25 2001
# Whom:                 Anders Nordby <anders@fix.no>
#
# $FreeBSD$

PORTNAME=   mod_sqlinclude
PORTVERSION=    1.2
CATEGORIES= www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/}
DISTNAME=   ${PORTNAME}_${PORTVERSION}
EXTRACT_SUFX=   .tgz

MAINTAINER= anders@FreeBSD.org
COMMENT=    An Apache module implementing config inclusion from MySQL databases

LIB_DEPENDS=    mysqlclient.10:${PORTSDIR}/databases/mysql323-client

USE_APACHE= yes
DOCS=   CHANGES.txt README.txt TODO.txt

do-build:
    (cd ${WRKSRC} && ${APXS} -c -I${LOCALBASE}/include \
    -L${LOCALBASE}/lib/mysql -lmysqlclient mod_sqlinclude.c)

do-install:
    (cd ${WRKSRC} && ${APXS} -i -A -n 'sqlinclude' mod_sqlinclude.so)
.if !defined(NOPORTDOCS)
    @${INSTALL} -d -m 0755 ${DOCSDIR}
.for f in ${DOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
.endif

.include <bsd.port.mk>