106 lines
2.6 KiB
Makefile
Raw Normal View History

2015-08-12 06:13:56 +00:00
# $OpenBSD: Makefile,v 1.91 2015/08/12 06:13:56 ajacoutot Exp $
COMMENT= cross platform, open source .NET developement framework
2015-04-04 15:56:18 +00:00
DISTNAME= mono-3.12.1
2012-01-08 20:05:45 +00:00
CATEGORIES= lang devel
2009-02-03 09:41:40 +00:00
SHARED_LIBS += mono-2.0 1.0 # .0.0
2014-07-09 11:39:16 +00:00
SHARED_LIBS += monoboehm-2.0 1.0 # .0.0
SHARED_LIBS += mono-profiler-iomap 0.0 # .0.0
SHARED_LIBS += mono-profiler-aot 1.0 # .0.0
2011-03-02 08:37:51 +00: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 10:41:55 +00:00
MAINTAINER= Robert Nagy <robert@openbsd.org>
# GPLv2, LGPL, MIT X11, MPL
PERMIT_PACKAGE_CDROM= Yes
2014-07-18 16:01:33 +00:00
WANTLIB= c m pthread z
2014-07-18 16:01:33 +00:00
MASTER_SITES= http://download.mono-project.com/sources/mono/
EXTRACT_SUFX= .tar.bz2
2011-03-15 10:02:59 +00:00
MODULES= lang/mono \
2014-07-09 11:39:16 +00:00
lang/python \
2011-03-15 10:02:59 +00:00
converters/libiconv
MODMONO_DEPS= No
USE_GMAKE= Yes
2010-10-18 19:20:41 +00:00
USE_GROFF = Yes
SUBST_VARS= LIBTOOL
2010-11-17 08:05:12 +00:00
BUILD_DEPENDS= devel/bison \
2015-08-12 06:13:56 +00:00
devel/gettext-tools \
2014-07-09 11:39:16 +00:00
lang/gawk \
shells/bash \
${RUN_DEPENDS}
2010-11-17 08:05:12 +00:00
RUN_DEPENDS= x11/libgdiplus
2014-07-09 11:39:16 +00:00
TEST_DEPENDS= lang/python/${MODPY_VERSION}
AUTOCONF_VERSION=2.69
CONFIGURE_STYLE=autoconf
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
CPPFLAGS="-I${LOCALBASE}/include" \
ac_cv_header_execinfo_h=no
.if ${MACHINE_ARCH} == "i386"
CONFIGURE_ENV+= CFLAGS="-march=i586"
.endif
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
2014-07-09 11:39:16 +00:00
--with-gc=included \
--with-sgen=no \
--enable-quiet-build=no \
--disable-shared-handles
2013-03-11 11:20:26 +00:00
TEST_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
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples
post-patch:
@cd ${WRKSRC}/eglib && \
2010-10-16 13:21:20 +00:00
${SETENV} ${AUTOCONF_ENV} ${AUTOCONF} && \
${SETENV} ${AUTOCONF_ENV} ${AUTOHEADER}
pre-configure:
${SUBST_CMD} ${WRKSRC}/runtime/mono-wrapper.in \
${WRKSRC}/runtime/monodis-wrapper.in
perl -pi -e 's,^prefix=.*,prefix=\@prefix\@,g;' \
-e 's,^exec_prefix=.*,exec_prefix=\@prefix\@,g' \
${WRKSRC}/data/*.pc.in
2014-07-09 11:39:16 +00:00
perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},g' \
${WRKSRC}/mono/tests/gc-descriptors/gen-descriptor-tests.py
2014-07-09 11:39:16 +00:00
@ln -fs /usr/local/bin/bash ${WRKDIR}/bin/bash
@ln -fs /usr/local/bin/gawk ${WRKDIR}/bin/gawk
# 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>