aboutsummaryrefslogtreecommitdiffstats
path: root/devel/atf/Makefile
blob: 5db82ff102ba11122ae7eac92f935bf56b723fd4 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# $FreeBSD$

PORTNAME=   atf
PORTVERSION=    0.16
PORTREVISION=   2
CATEGORIES= devel
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= namor@hemio.de
COMMENT=    Automated Testing Framework

LICENSE=    BSD

USE_LDCONFIG=   yes

PROJECTHOST=    kyua

MAN1=       atf-check.1 \
        atf-sh.1 \
        atf-test-program.1
MAN3=       atf-c-api.3 \
        atf-c++-api.3 \
        atf-sh-api.3
MAN4=       atf-test-case.4

GNU_CONFIGURE=  yes

OPTIONS_DEFINE= TOOLS
OPTIONS_DEFAULT=TOOLS
TOOLS_DESC= Enable deprecated tools

NO_STAGE=   yes
.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 1000021
IGNORE= is already in the base system
.endif

.if ${PORT_OPTIONS:MTOOLS}
CONFIGURE_ARGS+=    --enable-tools
PLIST_SUB+=     TOOLS=""
MAN1+=          atf-config.1 \
            atf-report.1 \
            atf-run.1 \
            atf-version.1
MAN5+=          atf-formats.5
MAN7+=          atf.7
.else
PLIST_SUB+=     TOOLS="@comment "
.endif

post-patch:
.if empty(PORT_OPTIONS:MDOCS)
    @${REINPLACE_CMD} -e 's|install-docDATA[^:]||' ${WRKSRC}/Makefile.in
.endif
.if empty(PORT_OPTIONS:MEXAMPLES)
    @${REINPLACE_CMD} -e 's|install-egDATA[^:]||' \
              -e 's|install-cssDATA[^:]||' ${WRKSRC}/Makefile.in
.endif
    @${REINPLACE_CMD} -e 's|@atf_pkgconfigdir@|${PREFIX}/libdata/pkgconfig|' \
      ${WRKSRC}/Makefile.in

.include <bsd.port.post.mk>