Enable shared handles and add USE_NANT to mono.port.mk to use NAnt

to build stuff
This commit is contained in:
robert 2010-04-05 01:02:57 +00:00
parent 76de16f006
commit 702fa474ed
2 changed files with 22 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.34 2010/04/01 21:53:51 robert Exp $
# $OpenBSD: Makefile,v 1.35 2010/04/05 01:02:57 robert Exp $
# sync with net/avahi,-mono
ONLY_FOR_ARCHS= amd64 i386 powerpc # arm
@ -6,7 +6,7 @@ ONLY_FOR_ARCHS= amd64 i386 powerpc # arm
COMMENT= cross platform, open source .NET developement framework
DISTNAME= mono-2.6.3
PKGNAME= ${DISTNAME}p13
PKGNAME= ${DISTNAME}p14
CATEGORIES= lang devel
@ -58,8 +58,7 @@ CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--with-interp=no \
--with-sigaltstack=no \
--with-libgdiplus=installed \
--enable-quiet-build=no \
--disable-shared-handles
--enable-quiet-build=no
REGRESS_TARGET=check

View File

@ -1,4 +1,4 @@
# $OpenBSD: mono.port.mk,v 1.6 2009/12/17 13:59:42 ajacoutot Exp $
# $OpenBSD: mono.port.mk,v 1.7 2010/04/05 01:02:57 robert Exp $
CATEGORIES+= lang/mono
@ -9,6 +9,24 @@ MAKE_FLAGS+= MONO_SHARED_DIR=${TMPDIR}
# version from library names.
DLLMAP_FILES?=
.if defined(USE_NANT)
NANT?= nant
NANT_FLAGS?=
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