2010-04-04 21:02:57 -04:00
|
|
|
# $OpenBSD: mono.port.mk,v 1.7 2010/04/05 01:02:57 robert Exp $
|
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
|
|
|
|
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?=
|
|
|
|
|
2010-04-04 21:02:57 -04:00
|
|
|
.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
|
|
|
|
|
2008-10-16 12:00:27 -04:00
|
|
|
post-configure:
|
|
|
|
@for i in ${DLLMAP_FILES}; do \
|
2009-12-17 08:59:42 -05:00
|
|
|
perl -pi -e 's,\.so\.[0-9],\.so,g' ${WRKSRC}/$$i; done
|