mono.port.mk 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # $OpenBSD: mono.port.mk,v 1.23 2015/10/03 11:53:44 robert Exp $
  2. # XXX list in infrastructure/mk/arch-defines.mk
  3. # XXX arm powerpc (no support for sigcontext)
  4. ONLY_FOR_ARCHS?= ${MONO_ARCHS}
  5. CATEGORIES+= lang/mono
  6. CONFIGURE_ENV+= MONO_SHARED_DIR=${TMPDIR}
  7. MAKE_FLAGS+= MONO_SHARED_DIR=${TMPDIR}
  8. MODMONO_BUILD_DEPENDS= lang/mono
  9. MODMONO_RUN_DEPENDS= lang/mono
  10. MODMONO_DEPS?= Yes
  11. MODMONO_GMCS_COMPAT?= No
  12. .if ${MODMONO_DEPS:L} != "no"
  13. BUILD_DEPENDS+= ${MODMONO_BUILD_DEPENDS}
  14. RUN_DEPENDS+= ${MODMONO_RUN_DEPENDS}
  15. .endif
  16. # A list of files where we have to remove the stupid hardcoded .[0-9] major
  17. # version from library names.
  18. DLLMAP_FILES?=
  19. .if defined(MODMONO_NANT) && ${MODMONO_NANT:L} == "yes"
  20. NANT?= nant
  21. NANT_FLAGS?=
  22. BUILD_DEPENDS+= devel/nant
  23. MODMONO_BUILD_TARGET= cd ${WRKSRC} && ${MAKE_FLAGS} ${NANT} ${NANT_FLAGS}
  24. MODMONO_INSTALL_TARGET= cd ${WRKSRC} && ${MAKE_FLAGS} ${NANT} ${NANT_FLAGS} \
  25. -D:prefix="${PREFIX}" install
  26. . if !target(do-build)
  27. do-build:
  28. @${MODMONO_BUILD_TARGET}
  29. . endif
  30. . if !target(do-install)
  31. do-install:
  32. @${MODMONO_INSTALL_TARGET}
  33. . endif
  34. .endif
  35. .if ${MODMONO_GMCS_COMPAT:L} != "no"
  36. pre-extract:
  37. @ln -fs ${LOCALBASE}/bin/mcs ${WRKDIR}/bin/gmcs
  38. .endif
  39. post-configure:
  40. @for i in ${DLLMAP_FILES}; do \
  41. perl -pi -e 's,\.so(\.[0-9]+)+,\.so,g' ${WRKSRC}/$$i; done