aboutsummaryrefslogtreecommitdiffstats
path: root/devel/nant/Makefile
blob: 557358bfb9fdc92925ad4cc4ab45d21c76e5a5e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# New ports collection makefile for:    NAnt
# Date created:     2005-5-21
# Whom:     Christopher Nehren <apeiron+ports@coitusmentis.info>
#
# $FreeBSD$
#   $Id: Makefile,v 1.10 2006/01/11 03:54:20 tmclau02 Exp $
#

PORTNAME=   nant
DISTVERSION=    0.85r3
PORTREVISION=   2
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   ${PORTNAME}-0.85-rc3-src

MAINTAINER= ports@FreeBSD.org
COMMENT=    A .NET build tool inspired by Ant

BUILD_DEPENDS=  mono:${PORTSDIR}/lang/mono
RUN_DEPENDS=    mono:${PORTSDIR}/lang/mono

WRKSRC=     ${WRKDIR}/${DISTNAME:S/-src//}

USE_GMAKE=  yes
MAKE_ENV=   MONO_PATH=${WRKSRC}/lib
INSTALL_TARGET= install prefix=${PREFIX}

post-patch:
    @${FIND} ${WRKSRC}/src  ${WRKSRC}/tests -name '*.build' | ${XARGS} ${REINPLACE_CMD} -e \
        's|warnaserror="true"|warnaserror="false"|g;'

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @cd ${WRKSRC}/doc; ${FIND} . \
    | ${CPIO} -pdmv -R ${DOCOWN}:${DOCGRP} ${DOCSDIR}
    @${CHMOD} -R ugo-w,ugo+rX ${DOCSDIR}
    @${MKDIR} ${EXAMPLESDIR}
    @cd ${WRKSRC}/examples; ${FIND} . \
    | ${CPIO} -pdmv -R ${DOCOWN}:${DOCGRP} ${EXAMPLESDIR}
    @${CHMOD} -R ugo-w,ugo+rX ${EXAMPLESDIR}
.endif

.include "${.CURDIR}/../../lang/mono/bsd.mono.mk"
.include <bsd.port.mk>