openbsd-ports/lang/mono/Makefile

111 lines
2.9 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.72 2012/07/13 16:59:15 jasper Exp $
COMMENT= cross platform, open source .NET developement framework
2012-07-10 18:32:01 -04:00
DISTNAME= mono-2.10.9
REVISION= 0
2012-01-08 15:05:45 -05:00
CATEGORIES= lang devel
2009-02-03 04:41:40 -05:00
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
2011-03-02 03:37:51 -05:00
SHARED_LIBS += mono-profiler-log 0.0 # .0.0
SHARED_LIBS += mono-profiler-cov 1.0 # .0.0
HOMEPAGE= http://www.mono-project.com/
2010-03-26 06:41:55 -04:00
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
2011-03-15 06:02:59 -04:00
WANTLIB= c m pthread z stdc++
2011-08-29 06:53:22 -04:00
MASTER_SITES= http://download.mono-project.com/sources/mono/ \
http://ftp.novell.com/pub/mono/sources/mono/
EXTRACT_SUFX= .tar.bz2
2011-03-15 06:02:59 -04:00
MODULES= lang/mono \
converters/libiconv
MODMONO_DEPS= No
USE_LIBTOOL= Yes
USE_GMAKE= Yes
2010-10-18 15:20:41 -04:00
USE_GROFF = Yes
SUBST_VARS= LIBTOOL
2010-11-17 03:05:12 -05:00
BUILD_DEPENDS= devel/bison \
${RUN_DEPENDS}
2010-11-17 03:05:12 -05:00
RUN_DEPENDS= x11/libgdiplus
LIB_DEPENDS= devel/boehm-gc
2010-11-07 14:12:42 -05:00
WANTLIB += gc
2012-03-31 14:50:17 -04:00
AUTOCONF_VERSION=2.68
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 && \
2010-10-16 09:21:20 -04:00
${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
perl -pi -e 's,^prefix=.*,prefix=\@prefix\@,g;' \
-e 's,^exec_prefix=.*,exec_prefix=\@prefix\@,g' \
${WRKSRC}/data/*.pc.in
# Force using the internal mcs compiler
pre-build:
@mkdir -p ${WRKSRC}/mcs/build/deps
@touch ${WRKSRC}/mcs/build/deps/use-monolite
# XXX stop mono failing the first time
# make _tmpinst more available
post-build:
for i in ${WRKBUILD}/runtime/_tmpinst/bin/*; do \
ln -s $$i ${WRKDIR}/bin; \
done
.include <bsd.port.mk>