openbsd-ports/lang/mono/Makefile
2011-06-05 15:16:48 +00:00

100 lines
2.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.61 2011/06/05 15:16:48 robert Exp $
COMMENT= cross platform, open source .NET developement framework
DISTNAME= mono-2.10.2
REVISION= 0
CATEGORIES= lang devel
SHARED_LIBS += mono-2.0 1.0 # .0.0
SHARED_LIBS += mono-profiler-iomap 0.0 # .0.0
SHARED_LIBS += monosgen-2.0 0.0 # .0.0
SHARED_LIBS += mono-profiler-aot 1.0 # .0.0
SHARED_LIBS += mono-profiler-log 0.0 # .0.0
SHARED_LIBS += mono-profiler-cov 1.0 # .0.0
HOMEPAGE= http://www.mono-project.com/
MAINTAINER= Robert Nagy <robert@openbsd.org>
# GPLv2, LGPL, MIT X11, MPL
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
WANTLIB= c m pthread z stdc++
MASTER_SITES= http://ftp.novell.com/pub/mono/sources/mono/
EXTRACT_SUFX= .tar.bz2
MODULES= lang/mono \
converters/libiconv
MODMONO_DEPS= No
USE_LIBTOOL= Yes
USE_GMAKE= Yes
USE_GROFF = Yes
SUBST_VARS= LIBTOOL
BUILD_DEPENDS= devel/bison \
${RUN_DEPENDS}
RUN_DEPENDS= x11/libgdiplus
LIB_DEPENDS= devel/boehm-gc
WANTLIB += gc
AUTOCONF_VERSION=2.63
CONFIGURE_STYLE=autoconf
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
CPPFLAGS="-I${LOCALBASE}/include"
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--with-gc=boehm \
--enable-quiet-build=no \
--disable-shared-handles
REGRESS_TARGET=check
DLLMAP_FILES= mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs \
mcs/tools/mono-shlib-cop/mono-shlib-cop.exe.config \
mcs/class/System/System.IO/FAMWatcher.cs \
mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11DesktopColors.cs \
mcs/class/Mono.Cairo/Samples/gtk/OldAndBusted.cs \
data/config
BASH_SCRIPTS= mcs/class/Mono.WebBrowser/build-csproj2k5 \
mcs/class/Managed.Windows.Forms/build-csproj \
mcs/class/Managed.Windows.Forms/build-csproj2k5 \
mcs/class/Mono.Cairo/Samples/x11/compile.sh \
mcs/class/Mono.Cairo/Samples/gtk/compile.sh \
mcs/class/Mono.Cairo/Samples/win32/compile.sh \
mcs/class/Mono.Cairo/Samples/png/compile.sh \
mcs/tools/tinderbox/tinderbox.sh \
scripts/mono-find-requires.in \
scripts/mono-find-provides.in \
scripts/mono-test-install \
mono/arch/arm/dpiops.sh
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples
post-patch:
@cd ${WRKSRC}/eglib && \
${SETENV} ${AUTOCONF_ENV} ${AUTOCONF} && \
${SETENV} ${AUTOCONF_ENV} ${AUTOHEADER}
pre-configure:
${SUBST_CMD} ${WRKSRC}/runtime/mono-wrapper.in \
${WRKSRC}/runtime/monodis-wrapper.in
for i in ${BASH_SCRIPTS}; do \
perl -pi -e 's,/bin/bash,/bin/sh,' ${WRKSRC}/$${i}; \
done
# Force using the internal mcs compiler
pre-build:
@mkdir ${WRKSRC}/mcs/build/deps
@touch ${WRKSRC}/mcs/build/deps/use-monolite
.include <bsd.port.mk>