Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/mono.mk
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# mono (c#) support | # mono (c#) support | ||||
# | # | ||||
# Feature: mono | # Feature: mono | ||||
# Usage: USES=mono:ARGS | # Usage: USES=mono:ARGS | ||||
# Valid ARGS: nuget | # Valid ARGS: nuget | ||||
# | # | ||||
# MAINTAINER= mono@FreeBSD.org | # MAINTAINER= mono@FreeBSD.org | ||||
# | # | ||||
# Arguments: | # Arguments: | ||||
# | # | ||||
# build Specifies that mono is only a build-time dependency. | |||||
# | |||||
# nuget Specifies that the port uses nuget packages. | # nuget Specifies that the port uses nuget packages. | ||||
# | # | ||||
# EXTRACT_ONLY is conditionally overridden to exclude all | # EXTRACT_ONLY is conditionally overridden to exclude all | ||||
# files with a '.nupkg' extension. | # files with a '.nupkg' extension. | ||||
# | # | ||||
# Targets: | # Targets: | ||||
# | # | ||||
# makenuget This target will output the NUGET_DEPENDS based on the | # makenuget This target will output the NUGET_DEPENDS based on the | ||||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
# PAKET_DEPENDS The list of nuget packages from a nuget feed. The | # PAKET_DEPENDS The list of nuget packages from a nuget feed. The | ||||
# version used needs to be resolved (unlike how paket | # version used needs to be resolved (unlike how paket | ||||
# works). The format is: | # works). The format is: | ||||
# ${name}=${version} | # ${name}=${version} | ||||
.if !defined(_INCLUDE_USES_MONO_MK) | .if !defined(_INCLUDE_USES_MONO_MK) | ||||
_INCLUDE_USES_MONO_MK= yes | _INCLUDE_USES_MONO_MK= yes | ||||
.if !empty(mono_ARGS:Nnuget) | .if !empty(mono_ARGS:Nnuget:Nbuild) | ||||
IGNORE= USES=mono only supports an optional nuget argument | IGNORE= USES=mono only supports optional arguments nuget and build | ||||
.endif | .endif | ||||
# Set the location of the .wapi directory so we write to a location we | # Set the location of the .wapi directory so we write to a location we | ||||
# can always assume to be writable. | # can always assume to be writable. | ||||
MONO_SHARED_DIR= ${WRKDIR} | MONO_SHARED_DIR= ${WRKDIR} | ||||
CONFIGURE_ENV+= MONO_SHARED_DIR="${MONO_SHARED_DIR}" | CONFIGURE_ENV+= MONO_SHARED_DIR="${MONO_SHARED_DIR}" | ||||
MAKE_ENV+= MONO_SHARED_DIR="${MONO_SHARED_DIR}" TZ=UTC | MAKE_ENV+= MONO_SHARED_DIR="${MONO_SHARED_DIR}" TZ=UTC | ||||
BUILD_DEPENDS+= mono:lang/mono | BUILD_DEPENDS+= mono:lang/mono | ||||
.if empty(mono_ARGS:Mbuild) | |||||
RUN_DEPENDS+= mono:lang/mono | RUN_DEPENDS+= mono:lang/mono | ||||
.endif | |||||
# Set the location that webaps served by XSP should use. | # Set the location that webaps served by XSP should use. | ||||
XSP_DOCROOT= ${PREFIX}/www/xsp | XSP_DOCROOT= ${PREFIX}/www/xsp | ||||
# gac utilities | # gac utilities | ||||
GACUTIL=${LOCALBASE}/bin/gacutil /root ${PREFIX}/lib/ /gacdir ${PREFIX}/lib | GACUTIL=${LOCALBASE}/bin/gacutil /root ${PREFIX}/lib/ /gacdir ${PREFIX}/lib | ||||
GACUTIL_INSTALL=${GACUTIL} /i | GACUTIL_INSTALL=${GACUTIL} /i | ||||
GACUTIL_INSTALL_PACKAGE=${GACUTIL} /i /package 1.0 /package 2.0 | GACUTIL_INSTALL_PACKAGE=${GACUTIL} /i /package 1.0 /package 2.0 | ||||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |