aboutsummaryrefslogtreecommitdiffstats
path: root/devel/arch/Makefile
blob: 838ccf222905b2d4877d06cdf3dfb56da9d499c2 (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
# New ports collection makefile for:    arch
# Date created:     6 February 2002
# Whom:         Johann Visagie <wjv@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   arch
PORTVERSION=    1.0.p25
PORTREVISION=   1
CATEGORIES= devel
MASTER_SITES=   http://regexps.srparish.net/src/${PORTNAME}/ \
        http://arch.quackerhead.com/~lord/releases/${PORTNAME}/
DISTNAME=   ${PORTNAME}${PORTVERSION:S/.p/pre/}

MAINTAINER= wjv@FreeBSD.org
COMMENT=    A distributed source code management / revision control system

USE_GMAKE=  yes
HAS_CONFIGURE=  yes
CONFIGURE_WRKSRC=   ${WRKSRC}/src/=build
CONFIGURE_SCRIPT=   ../configure
CONFIGURE_ARGS= --prefix ${PREFIX}
BUILD_WRKSRC=   ${CONFIGURE_WRKSRC}
INSTALL_WRKSRC= ${CONFIGURE_WRKSRC}

pre-configure:
    @ ${MKDIR} ${CONFIGURE_WRKSRC}

post-build:
.if defined(WITH_TESTS)
    @ cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \
      ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test
.endif

post-install:
.if !defined(NOPORTDOCS)
.for format in html ps texi
    @ ${MKDIR} ${DOCSDIR}/${format}
    @ ${INSTALL_DATA} ${WRKSRC}/docs/${format}/*.${format} \
      ${DOCSDIR}/${format}
.endfor
.endif

.include <bsd.port.mk>