aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_mya/Makefile
blob: d8cd5d20996bc6d1228393dd7bc9a822e631b71c (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_mya
# Date created:             Sun Oct 19
# Whom:                 Clement Laforet <clement@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   mod_mya
PORTVERSION=    3.0.1
CATEGORIES= www
MASTER_SITES=   http://www.synthemesc.com/downloads/mod_mya/ \
        ${MASTER_SITE_LOCAL:S/%SUBDIR%/clement/}
DIST_SUBDIR=    apache

MAINTAINER= apache@FreeBSD.org
COMMENT=    Allows basic authentication data to be stored in a MySQL database

USE_APACHE= YES
WITH_APACHE2=   YES

USE_MYSQL=      YES
WANT_MYSQL_VER= 323

MYSQL_INC?= ${LOCALBASE}/include/mysql
MYSQL_LIB?= ${LOCALBASE}/lib/mysql -lmysqlclient

PORTDOCS=   AUTHORS README TODO

do-build:
    @(cd ${WRKSRC} && ${APXS} -I ${MYSQL_INC} -L ${MYSQL_LIB} -c ${PORTNAME}.c)

do-install:
    @(cd ${WRKSRC} && ${APXS} -i -A -n ${PORTNAME:S/mod_//} ${PORTNAME}.la)

.if !defined (NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.   for f in ${PORTDOCS}
    @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.   endfor
.endif

.include <bsd.port.mk>