svn commit: r355304 - head/Mk/Uses

Baptiste Daroussin bapt at FreeBSD.org
Mon May 26 11:41:34 UTC 2014


Author: bapt
Date: Mon May 26 11:41:33 2014
New Revision: 355304
URL: http://svnweb.freebsd.org/changeset/ports/355304
QAT: https://qat.redports.org/buildarchive/r355304/

Log:
  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@

Added:
  head/Mk/Uses/mono.mk
     - copied, changed from r355276, head/lang/mono/bsd.mono.mk

Copied and modified: head/Mk/Uses/mono.mk (from r355276, head/lang/mono/bsd.mono.mk)
==============================================================================
--- head/lang/mono/bsd.mono.mk	Mon May 26 02:57:18 2014	(r355276, copy source)
+++ head/Mk/Uses/mono.mk	Mon May 26 11:41:33 2014	(r355304)
@@ -1,58 +1,33 @@
-# New ports collection makefile for:	Mono and it's consumers
-# Date created:				15 October 2005
-# Whom:					Tom McLaughlin <tmclaugh at FreeBSD.org>
+# $FreeBSD$
 #
-# bsd.mono.mk: accomodate the peculiarities of building C# ports within
-# the FreeBSD ports system.
+# mono (c#) support
 #
-# $FreeBSD$
+# Feature:	mono
+# Usage:	USES=mono
 #
+# MAINTAINER=	mono at FreeBSD.org
 
-# USE_NANT		- If set, the port uses nant.
-# USE_NANT		- If set "contrib", the port uses nantcontrib.
-# NANT			- Set to path of Nant.
+.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}"
+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
+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
 
-# Dependencies 
-
-.if defined(USE_NANT)
-BUILD_DEPENDS+=	nant:${PORTSDIR}/devel/nant
-.if ${USE_NANT}=="contrib"
-BUILD_DEPENDS+=	${LOCALBASE}/share/NAnt/bin/NAnt.Contrib.Tests.dll:${PORTSDIR}/devel/nantcontrib
-.endif
-.endif
-
-# Miscellaneous overridable commands:
-
-NANT?=	nant
-NANT_INSTALL_TARGET?=	install
-
-# Build
-.if defined(USE_NANT)
-.if !target(do-build)
-do-build:
-	@(cd ${BUILD_WRKSRC}; ${SETENV} MONO_SHARED_DIR="${MONO_SHARED_DIR}" ${NANT} ${NANT_FLAGS})
-.endif
-.endif
-
-
-# Install
-.if defined(USE_NANT)
-.if !target(do-install)
-do-install:
-	@(cd ${INSTALL_WRKSRC}; ${SETENV} MONO_SHARED_DIR="${MONO_SHARED_DIR}" ${NANT} ${NANT_FLAGS} -D:prefix="${PREFIX}" ${NANT_INSTALL_TARGET})
-.endif
 .endif


More information about the svn-ports-all mailing list