From 4f347620f214296e17671fbb7b2fb239c7aff1c5 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Mon, 26 May 2014 11:41:33 +0000 Subject: [PATCH] Move part of bsd.mono.mk into USES=mono Drop code for nant support which is not used at all in the ports tree Add dependency handling on lang/mono Pass maintainership to mono@ --- Mk/Uses/mono.mk | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Mk/Uses/mono.mk 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