2013-05-06 11:07:58 +02:00
|
|
|
# Created by: Edson Brandi <ebrandi@fugspbr.org>
|
2004-01-03 12:53:09 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dar
|
2015-02-07 13:44:13 +01:00
|
|
|
PORTVERSION= 2.4.17
|
2006-05-20 19:18:48 +02:00
|
|
|
CATEGORIES= sysutils archivers
|
2007-08-05 23:26:51 +02:00
|
|
|
MASTER_SITES= SF
|
2004-01-03 12:53:09 +01:00
|
|
|
|
2014-12-24 01:14:11 +01:00
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
2014-02-27 17:06:53 +01:00
|
|
|
COMMENT= Command-line backup tool, aimed for disks
|
2004-01-03 12:53:09 +01:00
|
|
|
|
2014-02-27 17:06:53 +01:00
|
|
|
LICENSE= GPLv2 # (or later)
|
2006-05-20 19:18:48 +02:00
|
|
|
|
2014-06-17 17:49:42 +02:00
|
|
|
USES= libtool shebangfix
|
2014-02-27 17:06:53 +01:00
|
|
|
SHEBANG_FILES= doc/samples/dar_backup doc/samples/*.bash doc/samples/*.sh
|
2014-05-27 16:20:23 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2014-02-27 17:06:53 +01:00
|
|
|
CONFIGURE_ARGS= --datadir=${DATADIR} --disable-build-html \
|
2014-06-18 19:09:23 +02:00
|
|
|
--disable-upx \
|
2014-02-27 17:06:53 +01:00
|
|
|
--disable-ea-support --disable-nodump-flag \
|
2014-06-17 17:49:42 +02:00
|
|
|
--disable-gnugetopt --disable-dar-static \
|
|
|
|
--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
|
2014-05-27 16:20:23 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2007-01-05 10:35:49 +01:00
|
|
|
USE_LDCONFIG= yes
|
2006-05-20 19:18:48 +02:00
|
|
|
|
2014-02-27 17:06:53 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-06-14 07:54:18 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2014-02-27 17:06:53 +01:00
|
|
|
|
2014-06-18 19:09:23 +02:00
|
|
|
OPTIONS_DEFINE= DOCS GCRYPT LZO NLS
|
2014-02-27 17:06:53 +01:00
|
|
|
OPTIONS_SUB= yes
|
2005-02-06 19:48:06 +01:00
|
|
|
|
2014-09-20 17:51:19 +02:00
|
|
|
GCRYPT_CONFIGURE_OFF= --disable-libgcrypt-linking
|
2014-06-18 19:09:23 +02:00
|
|
|
GCRYPT_LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt
|
2014-02-27 17:06:53 +01:00
|
|
|
LZO_DESC= Support lzo compression via liblzo2
|
|
|
|
LZO_LIB_DEPENDS= liblzo2.so:${PORTSDIR}/archivers/lzo2
|
2014-09-20 17:51:19 +02:00
|
|
|
LZO_CONFIGURE_OFF= --disable-liblzo2-linking
|
2014-02-27 17:06:53 +01:00
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
2014-02-10 14:58:28 +01:00
|
|
|
|
2013-05-06 11:07:58 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2014-02-27 17:06:53 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
2014-06-14 07:54:18 +02:00
|
|
|
's|(char \*\*) \(\&inptr,\)|\1| ; \
|
|
|
|
/LIBS/s|-lpthread|-pthread|' ${WRKSRC}/configure
|
2014-02-27 17:06:53 +01:00
|
|
|
@${FIND} ${WRKSRC}/doc -name "Makefile.in" | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|$$(pkgdatadir)|$$(docdir)|g'
|
2014-12-30 09:53:43 +01:00
|
|
|
.if !${PORT_OPTIONS:MDOCS}
|
|
|
|
@${REINPLACE_CMD} -e 's|src doc|src|' ${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
2006-05-20 19:18:48 +02:00
|
|
|
|
2004-01-03 12:53:09 +01:00
|
|
|
.include <bsd.port.mk>
|