openbsd-ports/lang/mono/mono.port.mk

48 lines
1.1 KiB
Makefile
Raw Normal View History

2011-09-28 09:56:03 -04:00
# $OpenBSD: mono.port.mk,v 1.18 2011/09/28 13:56:03 espie Exp $
2010-04-04 21:15:00 -04:00
2011-09-28 09:56:03 -04:00
# XXX see bsd.port.arch.mk
# XXX arm powerpc (no support for sigcontext)
MODMONO_ONLY_FOR_ARCHS= ${MONO_ARCHS}
ONLY_FOR_ARCHS?= ${MODMONO_ONLY_FOR_ARCHS}
CATEGORIES+= lang/mono
CONFIGURE_ENV+= MONO_SHARED_DIR=${TMPDIR}
MAKE_FLAGS+= MONO_SHARED_DIR=${TMPDIR}
2010-11-17 03:05:12 -05:00
MODMONO_BUILD_DEPENDS= lang/mono
MODMONO_RUN_DEPENDS= lang/mono
MODMONO_DEPS?= Yes
.if ${MODMONO_DEPS:L} != "no"
BUILD_DEPENDS+= ${MODMONO_BUILD_DEPENDS}
RUN_DEPENDS+= ${MODMONO_RUN_DEPENDS}
.endif
# A list of files where we have to remove the stupid hardcoded .[0-9] major
# version from library names.
DLLMAP_FILES?=
.if defined(USE_NANT)
NANT?= nant
NANT_FLAGS?=
2010-11-17 03:05:12 -05:00
BUILD_DEPENDS+= devel/nant
. if !target(do-build)
do-build:
@cd ${WRKSRC} && ${MAKE_FLAGS} ${NANT} ${NANT_FLAGS}
. endif
. if !target(do-install)
do-install:
@cd ${WRKSRC} && ${MAKE_FLAGS} ${NANT} ${NANT_FLAGS} -D:prefix="${PREFIX}" install
. endif
.endif
post-configure:
@for i in ${DLLMAP_FILES}; do \
perl -pi -e 's,\.so(\.[0-9]+)+,\.so,g' ${WRKSRC}/$$i; done