2012-03-09 05:59:11 -05:00
|
|
|
# $OpenBSD: mono.port.mk,v 1.21 2012/03/09 10:59:11 espie Exp $
|
2010-04-04 21:15:00 -04:00
|
|
|
|
2012-03-09 05:59:11 -05:00
|
|
|
# XXX list in infrastructure/mk/arch-defines.mk
|
2011-09-28 09:56:03 -04:00
|
|
|
# XXX arm powerpc (no support for sigcontext)
|
2011-10-02 11:21:44 -04:00
|
|
|
ONLY_FOR_ARCHS?= ${MONO_ARCHS}
|
2008-10-16 17:47:10 -04:00
|
|
|
|
|
|
|
CATEGORIES+= lang/mono
|
2008-10-16 12:00:27 -04:00
|
|
|
|
2008-10-24 11:07:13 -04:00
|
|
|
CONFIGURE_ENV+= MONO_SHARED_DIR=${TMPDIR}
|
|
|
|
MAKE_FLAGS+= MONO_SHARED_DIR=${TMPDIR}
|
2008-10-24 10:49:44 -04:00
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
MODMONO_BUILD_DEPENDS= lang/mono
|
|
|
|
MODMONO_RUN_DEPENDS= lang/mono
|
2010-04-08 09:36:13 -04:00
|
|
|
|
2010-04-05 06:39:35 -04:00
|
|
|
MODMONO_DEPS?= Yes
|
|
|
|
|
|
|
|
.if ${MODMONO_DEPS:L} != "no"
|
2010-04-08 09:36:13 -04:00
|
|
|
BUILD_DEPENDS+= ${MODMONO_BUILD_DEPENDS}
|
|
|
|
RUN_DEPENDS+= ${MODMONO_RUN_DEPENDS}
|
2010-04-05 06:39:35 -04:00
|
|
|
.endif
|
|
|
|
|
2008-10-16 12:00:27 -04:00
|
|
|
# A list of files where we have to remove the stupid hardcoded .[0-9] major
|
|
|
|
# version from library names.
|
|
|
|
DLLMAP_FILES?=
|
|
|
|
|
2011-10-03 07:00:58 -04:00
|
|
|
.if defined(MODMONO_NANT) && ${MODMONO_NANT:L} == "yes"
|
2010-04-04 21:02:57 -04:00
|
|
|
NANT?= nant
|
|
|
|
NANT_FLAGS?=
|
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
BUILD_DEPENDS+= devel/nant
|
2010-04-04 21:02:57 -04:00
|
|
|
|
2011-10-03 07:00:58 -04:00
|
|
|
MODMONO_BUILD_TARGET= @cd ${WRKSRC} && ${MAKE_FLAGS} ${NANT} ${NANT_FLAGS}
|
|
|
|
MODMONO_INSTALL_TARGET= @cd ${WRKSRC} && ${MAKE_FLAGS} ${NANT} ${NANT_FLAGS} \
|
|
|
|
-D:prefix="${PREFIX}" install
|
|
|
|
|
2010-04-04 21:02:57 -04:00
|
|
|
. if !target(do-build)
|
|
|
|
do-build:
|
2011-10-03 07:00:58 -04:00
|
|
|
${MODMONO_BUILD_TARGET}
|
2010-04-04 21:02:57 -04:00
|
|
|
. endif
|
|
|
|
|
|
|
|
. if !target(do-install)
|
|
|
|
do-install:
|
2011-10-03 07:00:58 -04:00
|
|
|
${MODMONO_INSTALL_TARGET}
|
2010-04-04 21:02:57 -04:00
|
|
|
. endif
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
2008-10-16 12:00:27 -04:00
|
|
|
post-configure:
|
|
|
|
@for i in ${DLLMAP_FILES}; do \
|
2011-05-03 06:40:59 -04:00
|
|
|
perl -pi -e 's,\.so(\.[0-9]+)+,\.so,g' ${WRKSRC}/$$i; done
|