aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/dar/Makefile
blob: 2b77e96fd0dbad7c61967921d7722ddc40af16b6 (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
# Created by: Edson Brandi <ebrandi@fugspbr.org>
# $FreeBSD$

PORTNAME=   dar
PORTVERSION=    2.3.11
CATEGORIES= sysutils archivers
MASTER_SITES=   SF

MAINTAINER= jadawin@FreeBSD.org
COMMENT=    A full featured command-line backup tool, aimed for disks

USE_AUTOTOOLS=  libtool

USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-build-html --datadir=${DATADIR} --disable-upx

CPPFLAGS+=  -DHAVE_DECL_GETOPT=0

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USES+=      gettext
PLIST_SUB+= NLS=""
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS+=--with-libintl-prefix=${STAGEDIR}${PREFIX}
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.dtd *.txt *.jpg [CR]* \
    ${STAGEDIR}${DOCSDIR}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}/samples
    cd ${WRKSRC}/doc/samples && ${INSTALL_DATA} [JR]* [a-z]* \
    ${STAGEDIR}${DOCSDIR}/samples
    @${MKDIR} ${STAGEDIR}${DOCSDIR}/mini-howto
    cd ${WRKSRC}/doc/mini-howto && ${INSTALL_DATA} \
    *.html README ${STAGEDIR}${DOCSDIR}/mini-howto
.endif

.include <bsd.port.mk>