version
[dports.git] / sysutils / hdup / Makefile
1 # Created by: Sergey Matveychuk <sem@FreeBSD.org>
2 # $FreeBSD: sysutils/hdup/Makefile 339922 2014-01-16 15:43:27Z sem $
3
4 PORTNAME=       hdup
5 PORTVERSION=    2.0.14
6 PORTREVISION=   5
7 CATEGORIES=     sysutils
8 MASTER_SITES=   http://www.miek.nl/projects/hdup2/ \
9                 http://www.miek.nl/projects/hdup2/previous/
10
11 MAINTAINER=     ports@FreeBSD.org
12 COMMENT=        The little, spiffy, backup tool
13
14 #WRKSRC=                ${WRKDIR}/hdup2
15
16 OPTIONS_DEFINE= GNUTAR_PORT DOCS
17 GNUTAR_PORT_DESC=       GNU tar from ports
18
19 BUILD_DEPENDS=  mcrypt:${PORTSDIR}/security/mcrypt
20 RUN_DEPENDS=    mcrypt:${PORTSDIR}/security/mcrypt \
21                 gpgv:${PORTSDIR}/security/gnupg1 \
22                 lzop:${PORTSDIR}/archivers/lzop
23
24 USES=           pkgconfig
25 USE_BZIP2=      yes
26 USE_GMAKE=      yes
27 GNU_CONFIGURE=  yes
28 USE_GNOME=      glib20
29 USE_AUTOTOOLS=  autoconf
30
31 MAN1=           hdup.1
32 MAN5=           hdup.conf.5
33
34 NO_STAGE=       yes
35 .include <bsd.port.options.mk>
36
37 .if ${PORT_OPTIONS:MGNUTAR_PORT}
38 BUILD_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar
39 RUN_DEPENDS+=   gtar:${PORTSDIR}/archivers/gtar
40 GNUTAR=         ${LOCALBASE}/bin/gtar
41 .else
42 # bsdtar appeared
43 GNUTAR=         /usr/bin/gtar
44 .endif
45
46 post-configure:
47         @${REINPLACE_CMD} -e 's#%%GNUTAR%%#${GNUTAR}#g' ${WRKSRC}/src/hdup.h
48
49 post-install:
50 .if ${PORT_OPTIONS:MDOCS}
51         @${MKDIR} ${DOCSDIR}; \
52         ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}; \
53         ${INSTALL_DATA} ${WRKSRC}/doc/FAQ.html ${DOCSDIR}; \
54         ${MKDIR} ${EXAMPLESDIR}; \
55         ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
56 .endif
57
58 .include <bsd.port.mk>