[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / mono2

File: [cvs.NetBSD.org] / pkgsrc / lang / mono2 / Attic / Makefile (download)

Revision 1.37, Wed Sep 11 11:53:39 2019 UTC (14 months, 2 weeks ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3
Changes since 1.36: +3 -3 lines

Use https for mono-project.com.

# $NetBSD: Makefile,v 1.37 2019/09/11 11:53:39 nia Exp $

DISTNAME=	mono-2.10.9
PKGREVISION=	29
CATEGORIES=	lang
MASTER_SITES=	https://download.mono-project.com/sources/mono/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	kefren@NetBSD.org
HOMEPAGE=	https://www.mono-project.com/
COMMENT=	Open source implementation of the .NET Development Framework (v2)

LICENSE=	mit AND gnu-gpl-v2 AND gnu-lgpl-v2 AND x11

BUILD_DEPENDS+=	p5-XML-Parser-[0-9]*:../../textproc/p5-XML-Parser

CONFLICTS=	pnet-[0-9]* mcsim-[0-9]* lc-[0-9]*

ALL_ENV+=		MONO_SHARED_DIR=${WRKDIR:Q} PLATFORM=

# Occasional errors with net_2_0 dlls not being built before later dependents
MAKE_JOBS_SAFE=	no

USE_TOOLS+=		bison gmake perl:run pkg-config bash:run msgfmt
USE_LIBTOOL=		yes
USE_LANGUAGES+=		c c++
EXTRACT_USING=		bsdtar

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+=	--with-icu=yes
CONFIGURE_ARGS+=	--with-preview=yes
CONFIGURE_ARGS+=	--with-libgdiplus=installed
CONFIGURE_ARGS+=	--disable-dtrace

.include "options.mk"

MAKE_FLAGS+=		PERL=${PERL5:Q} PAXCTL=${PAXCTL:Utrue}
MAKE_FLAGS+=		mandir=${PREFIX}/${PKGMANDIR}
UNLIMIT_RESOURCES=	datasize
UNLIMIT_RESOURCES+=	stacksize
UNLIMIT_RESOURCES+=	memorysize

PKGCONFIG_OVERRIDE+=	mono-uninstalled.pc.in
PKGCONFIG_OVERRIDE+=	data/cecil.pc.in
PKGCONFIG_OVERRIDE+=	data/dotnet.pc.in
PKGCONFIG_OVERRIDE+=	data/dotnet35.pc.in
PKGCONFIG_OVERRIDE+=	data/mint.pc.in
PKGCONFIG_OVERRIDE+=	data/mono.web.pc.in
PKGCONFIG_OVERRIDE+=	data/monodoc.pc.in
PKGCONFIG_OVERRIDE+=	data/mono-cairo.pc.in
PKGCONFIG_OVERRIDE+=	data/mono-lineeditor.pc.in
PKGCONFIG_OVERRIDE+=	data/mono-nunit.pc.in
PKGCONFIG_OVERRIDE+=	data/mono-options.pc.in
PKGCONFIG_OVERRIDE+=	data/mono.pc.in
PKGCONFIG_OVERRIDE+=	data/system.web.extensions_1.0.pc.in
PKGCONFIG_OVERRIDE+=	data/system.web.extensions.design_1.0.pc.in
PKGCONFIG_OVERRIDE+=	data/system.web.mvc.pc.in
PKGCONFIG_OVERRIDE+=	data/wcf.pc.in

REPLACE_PERL+=	mcs/errors/do-tests.pl
REPLACE_PERL+=	mcs/tools/scan-tests.pl
REPLACE_PERL+=	msvc/create-windef.pl
REPLACE_PERL+=	mono/benchmark/test-driver
REPLACE_PERL+=	mono/cil/make-opcodes-def.pl
REPLACE_PERL+=	mono/metadata/make-bundle.pl
REPLACE_PERL+=	mono/mini/genmdesc.pl
REPLACE_PERL+=	mono/tests/stress-runner.pl

REPLACE_PYTHON+=	scripts/mono-heapviz

REPLACE_BASH+=	build-mingw32.sh
REPLACE_BASH+=	mono/arch/arm/dpiops.sh
REPLACE_BASH+=	mono/arch/arm/fpaops.sh
REPLACE_BASH+=	mono/arch/arm/vfpops.sh
REPLACE_BASH+=	mono/tests/make_imt_test.sh
REPLACE_BASH+=	scripts/mono-find-provides.in
REPLACE_BASH+=	scripts/mono-find-requires.in
REPLACE_BASH+=	scripts/mono-test-install
REPLACE_BASH+=	web/mono-build-w32.sh
REPLACE_BASH+=	mcs/class/Mono.WebBrowser/build-csproj2k5
REPLACE_BASH+=	mcs/class/Managed.Windows.Forms/build-csproj
REPLACE_BASH+=	mcs/class/Managed.Windows.Forms/build-csproj2k5
REPLACE_BASH+=	mcs/class/Mono.Cairo/Samples/gtk/compile.sh
REPLACE_BASH+=	mcs/class/Mono.Cairo/Samples/png/compile.sh
REPLACE_BASH+=	mcs/class/Mono.Cairo/Samples/win32/compile.sh
REPLACE_BASH+=	mcs/class/Mono.Cairo/Samples/x11/compile.sh
REPLACE_BASH+=	mcs/tools/tinderbox/tinderbox.sh
REPLACE_BASH+=	libgc/mkinstalldirs
REPLACE_BASH+=	mcs/mkinstalldirs
REPLACE_BASH+=	mkinstalldirs

EGDIR=		${PREFIX}/share/examples/mono
CONF_FILES=	${EGDIR}/config ${PKG_SYSCONFDIR}/mono/config
CONF_FILES+=	${EGDIR}/browscap.ini ${PKG_SYSCONFDIR}/mono/browscap.ini
CONF_FILES+=	${EGDIR}/4.0/DefaultWsdlHelpGenerator.aspx \
		${PKG_SYSCONFDIR}/mono/4.0/DefaultWsdlHelpGenerator.aspx
CONF_FILES+=	${EGDIR}/4.0/machine.config \
		${PKG_SYSCONFDIR}/mono/4.0/machine.config
CONF_FILES+=	${EGDIR}/4.0/settings.map \
		${PKG_SYSCONFDIR}/mono/4.0/settings.map
CONF_FILES+=	${EGDIR}/4.0/web.config \
		${PKG_SYSCONFDIR}/mono/4.0/web.config
CONF_FILES+=	${EGDIR}/2.0/DefaultWsdlHelpGenerator.aspx \
		${PKG_SYSCONFDIR}/mono/2.0/DefaultWsdlHelpGenerator.aspx
CONF_FILES+=	${EGDIR}/2.0/machine.config \
		${PKG_SYSCONFDIR}/mono/2.0/machine.config
CONF_FILES+=	${EGDIR}/mconfig/config.xml \
		${PKG_SYSCONFDIR}/mono/mconfig/config.xml
CONF_FILES+=	${EGDIR}/2.0/settings.map \
		${PKG_SYSCONFDIR}/mono/2.0/settings.map
CONF_FILES+=	${EGDIR}/2.0/web.config \
		${PKG_SYSCONFDIR}/mono/2.0/web.config
CONF_FILES+=	${EGDIR}/2.0/Browsers/Compat.browser \
		${PKG_SYSCONFDIR}/mono/2.0/Browsers/Compat.browser

MAKE_DIRS+=	${PKG_SYSCONFDIR}/mono/2.0
MAKE_DIRS+=	${PKG_SYSCONFDIR}/mono/2.0/Browsers
MAKE_DIRS+=	${PKG_SYSCONFDIR}/mono/4.0
MAKE_DIRS+=	${PKG_SYSCONFDIR}/mono/mconfig

TEST_TARGET=	check

SUBST_CLASSES+=			fix-prefix
SUBST_STAGE.fix-prefix=		pre-configure
SUBST_MESSAGE.fix-prefix=	Fixing relative prefix
SUBST_FILES.fix-prefix=		${PKGCONFIG_OVERRIDE}
SUBST_SED.fix-prefix=		-e 's,$${pcfiledir}/../..,\@prefix\@,g'

SUBST_CLASSES+=			fix-mcs
SUBST_STAGE.fix-mcs=		pre-configure
SUBST_MESSAGE.fix-mcs=		Fixing mcs default prefix
SUBST_FILES.fix-mcs=		mcs/build/config-default.make
SUBST_SED.fix-mcs=		-e 's,/usr/local,${PREFIX},g'

SUBST_CLASSES+=			fix-cfgdir
SUBST_STAGE.fix-cfgdir=		pre-configure
SUBST_MESSAGE.fix-cfgdir=	Fixing configuration files install dir
SUBST_FILES.fix-cfgdir=		mcs/tools/mconfig/Makefile
SUBST_SED.fix-cfgdir=		-e 's,$$(sysconfdir)/mono,${EGDIR},g'

SUBST_CLASSES+=			fix-libx11
SUBST_STAGE.fix-libx11=		pre-configure
SUBST_MESSAGE.fix-libx11=	Fixing libX11 search path configuration
SUBST_FILES.fix-libx11=		configure
SUBST_VARS.fix-libx11=		X11BASE

.include "../../mk/bsd.prefs.mk"

OPSYSVARS+=	USE_LANGUAGES

CPPFLAGS.NetBSD+=	-D_KMEMUSER
USE_LANGUAGES.SunOS+=	c99

BUILDLINK_TRANSFORM.SunOS+=	opt:-D_XOPEN_SOURCE=500:-D_POSIX_C_SOURCE=200112L
BUILDLINK_TRANSFORM.SunOS+=	rm:-D_XOPEN_SOURCE_EXTENDED=1

.if !empty(MACHINE_PLATFORM:MSunOS-*-i386)
ULIMIT_CMD_datasize=	ulimit -d 262144
ULIMIT_CMD_stacksize=	ulimit -s 10240
.elif !empty(MACHINE_PLATFORM:MSunOS-*-x86_64)
CONFIGURE_ARGS+=	--with-sigaltstack=no
ULIMIT_CMD_datasize=	ulimit -d 524288
ULIMIT_CMD_stacksize=	ulimit -s 10240
.endif

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"