aboutsummaryrefslogtreecommitdiff
path: root/Mk/Uses/mono.mk
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-05-26 11:41:33 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-05-26 11:41:33 +0000
commit4f347620f214296e17671fbb7b2fb239c7aff1c5 (patch)
tree9aef578920107944dd993bbc6e8926d0cce20c58 /Mk/Uses/mono.mk
parent24c29c702f8a596478168c0da10923d56b43ad28 (diff)
downloadports-4f347620f214296e17671fbb7b2fb239c7aff1c5.tar.gz
ports-4f347620f214296e17671fbb7b2fb239c7aff1c5.zip
Notes
Diffstat (limited to 'Mk/Uses/mono.mk')
-rw-r--r--Mk/Uses/mono.mk33
1 files changed, 33 insertions, 0 deletions
diff --git a/Mk/Uses/mono.mk b/Mk/Uses/mono.mk
new file mode 100644
index 000000000000..fad2245778ca
--- /dev/null
+++ b/Mk/Uses/mono.mk
@@ -0,0 +1,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 defined(objc_ARGS)
+IGNORE= USES=objc 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}"
+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