aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_mono/Makefile
blob: 632dad84b8471ca2bb8af2c365a562c6d729fc1b (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
# Created by: Tom McLaughlin <tmclaugh@sdf.lonestar.org>
# $FreeBSD$

PORTNAME=   mod_mono
PORTVERSION=    2.10
PORTREVISION=   1
CATEGORIES= www
MASTER_SITES=   http://ftp.novell.com/pub/mono/sources/${PORTNAME}/
PKGNAMEPREFIX=  ${APACHE_PKGNAMEPREFIX}

MAINTAINER= mono@FreeBSD.org
COMMENT=    Apache module for serving ASP.NET applications

BUILD_DEPENDS=  mono:${PORTSDIR}/lang/mono \
        xsp:${PORTSDIR}/www/xsp
RUN_DEPENDS=    mono:${PORTSDIR}/lang/mono \
        xsp:${PORTSDIR}/www/xsp

USES=       pkgconfig
USE_APACHE= 22
USE_BZIP2=  yes
USE_AUTOTOOLS=  libtool
CONFIGURE_ARGS= --man=${PREFIX}/man

MAN8=       mod_mono.8

NO_STAGE=   yes
.include <bsd.port.pre.mk>
.if ${APACHE_VERSION} == 13
MOD_MONOCONFDIR=${APACHEETCDIR}
.else
MOD_MONOCONFDIR=${APACHEETCDIR}/Includes
.endif

PLIST_SUB+= MOD_MONOCONFDIR=${MOD_MONOCONFDIR}

post-patch:
    @${REINPLACE_CMD} 's|%%MOD_MONOCONFDIR%%|${PREFIX}/${MOD_MONOCONFDIR}|g' \
        ${WRKSRC}/Makefile.in

.include "${.CURDIR}/../../lang/mono/bsd.mono.mk"
.include <bsd.port.post.mk>