1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/www/mod_mono/Makefile
Romain Tartière 26ca54ca80 Update to 3.12.
2015-03-18 12:12:54 +00:00

43 lines
1.0 KiB
Makefile

# Created by: Tom McLaughlin <tmclaugh@sdf.lonestar.org>
# $FreeBSD$
PORTNAME= mod_mono
PORTVERSION= 3.12
CATEGORIES= www
MASTER_SITES= http://download.mono-project.com/sources/${PORTNAME}/
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
MAINTAINER= mono@FreeBSD.org
COMMENT= Apache module for serving ASP.NET applications
LICENSE= APACHE20
BUILD_DEPENDS= mono:${PORTSDIR}/lang/mono \
xsp:${PORTSDIR}/www/xsp
RUN_DEPENDS= mono:${PORTSDIR}/lang/mono \
xsp:${PORTSDIR}/www/xsp
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-static --man=${PREFIX}/man
INSTALL_TARGET= install
USES= libtool mono pkgconfig
USE_APACHE= 22+
.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
@${REINPLACE_CMD} '/^mod_mono_la_LDFLAGS =/s/$$/ -avoid-version/' \
${WRKSRC}/src/Makefile.in
.include <bsd.port.post.mk>