Makefile 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # $OpenBSD: Makefile,v 1.110 2017/06/05 10:17:41 ajacoutot Exp $
  2. USE_WXNEEDED= Yes
  3. COMMENT= cross platform, open source .NET developement framework
  4. V= 4.6.2
  5. DISTNAME= mono-${V}.6
  6. REVISION= 2
  7. CATEGORIES= lang devel
  8. SHARED_LIBS += mono-2.0 1.0 # .0.0
  9. SHARED_LIBS += monoboehm-2.0 1.0 # .0.0
  10. SHARED_LIBS += mono-profiler-iomap 0.0 # .0.0
  11. SHARED_LIBS += mono-profiler-aot 1.0 # .0.0
  12. SHARED_LIBS += mono-profiler-log 0.0 # .0.0
  13. HOMEPAGE= http://www.mono-project.com/
  14. MAINTAINER= Robert Nagy <robert@openbsd.org>
  15. # GPLv2, LGPL, MIT X11, MPL
  16. PERMIT_PACKAGE_CDROM= Yes
  17. WANTLIB= c iconv m pthread z
  18. MASTER_SITES= http://download.mono-project.com/sources/mono/
  19. EXTRACT_SUFX= .tar.bz2
  20. MODULES= lang/mono \
  21. lang/python
  22. MODMONO_DEPS= No
  23. USE_GMAKE= Yes
  24. SUBST_VARS= LIBTOOL
  25. BUILD_DEPENDS= devel/bison \
  26. devel/gettext-tools \
  27. lang/gawk \
  28. shells/bash \
  29. ${RUN_DEPENDS}
  30. RUN_DEPENDS= x11/libgdiplus
  31. LIB_DEPENDS= converters/libiconv
  32. TEST_DEPENDS= lang/python/${MODPY_VERSION}
  33. CONFIGURE_STYLE=gnu
  34. CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
  35. CPPFLAGS="-I${LOCALBASE}/include" \
  36. ac_cv_header_execinfo_h=no \
  37. ac_cv_header_pthread_np_h=yes
  38. .if ${MACHINE_ARCH} == "i386"
  39. CONFIGURE_ENV+= CFLAGS="-march=i586"
  40. .endif
  41. WRKDIST= ${WRKDIR}/mono-${V}
  42. CONFIGURE_ARGS= --with-gc=included \
  43. --without-sgen \
  44. --disable-quiet-build \
  45. --disable-shared-handles \
  46. --without-sigaltstack
  47. TEST_TARGET=check
  48. DLLMAP_FILES= mcs/class/System.Windows.Forms/System.Windows.Forms/MimeIcon.cs \
  49. mcs/tools/mono-shlib-cop/mono-shlib-cop.exe.config \
  50. mcs/class/System/System.IO/FAMWatcher.cs \
  51. mcs/class/System.Windows.Forms/System.Windows.Forms/X11DesktopColors.cs \
  52. mcs/class/Mono.Cairo/Samples/gtk/OldAndBusted.cs \
  53. data/config
  54. FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples
  55. pre-configure:
  56. ${SUBST_CMD} ${WRKSRC}/runtime/mono-wrapper.in \
  57. ${WRKSRC}/runtime/monodis-wrapper.in
  58. perl -pi -e 's,^prefix=.*,prefix=\@prefix\@,g;' \
  59. -e 's,^exec_prefix=.*,exec_prefix=\@prefix\@,g' \
  60. ${WRKSRC}/data/*.pc.in
  61. perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},g' \
  62. ${WRKSRC}/mono/tests/gc-descriptors/gen-descriptor-tests.py
  63. @ln -fs /usr/local/bin/bash ${WRKDIR}/bin/bash
  64. @ln -fs /usr/local/bin/gawk ${WRKDIR}/bin/gawk
  65. @ln -fs ${MODPY_BIN} ${WRKDIR}/bin/python
  66. # Force using the internal mcs compiler
  67. pre-build:
  68. @mkdir -p ${WRKSRC}/mcs/build/deps
  69. @touch ${WRKSRC}/mcs/build/deps/use-monolite
  70. # XXX stop mono failing the first time
  71. # make _tmpinst more available
  72. post-build:
  73. for i in ${WRKBUILD}/runtime/_tmpinst/bin/*; do \
  74. ln -s $$i ${WRKDIR}/bin; \
  75. done
  76. .include <bsd.port.mk>