aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses/mono.mk
blob: 1ca6f96f76e0118cbcbda22d53663d4166158304 (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
# $FreeBSD$
#
# mono (c#) support
#
# Feature:  mono
# Usage:    USES=mono
#
# MAINTAINER=   mono@FreeBSD.org

.if !defined(_INCLUDE_USES_MONO_MK)
_INCLUDE_USES_MONO_MK=  yes

.if !empty(mono_ARGS)
IGNORE= USES=mono takes no arguments
.endif

# Set the location of the .wapi directory so we write to a location we
# can always assume to be writable.
MONO_SHARED_DIR=    ${WRKDIR}
CONFIGURE_ENV+=     MONO_SHARED_DIR="${MONO_SHARED_DIR}"
MAKE_ENV+=      MONO_SHARED_DIR="${MONO_SHARED_DIR}" TZ=UTC
BUILD_DEPENDS+=     mono:${PORTSDIR}/lang/mono
RUN_DEPENDS+=       mono:${PORTSDIR}/lang/mono

# Set the location that webaps served by XSP should use.
XSP_DOCROOT=        ${PREFIX}/www/xsp

# gac utilities
GACUTIL=${LOCALBASE}/bin/gacutil /root ${PREFIX}/lib/ /gacdir ${PREFIX}/lib
GACUTIL_INSTALL=${GACUTIL} /i
GACUTIL_INSTALL_PACKAGE=${GACUTIL} /i /package 1.0 /package 2.0

.endif