aboutsummaryrefslogtreecommitdiff
path: root/sysutils/hdup
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2013-03-14 11:20:54 +0000
committerMartin Wilke <miwi@FreeBSD.org>2013-03-14 11:20:54 +0000
commit5f7fb24f401e3ed3fbe6bac932faf28d80b3dc36 (patch)
treea9204b90cc101be547e527fde78de45217b69fc4 /sysutils/hdup
parenta01f6eaec9ff2a3b4ec649be375cba93c43e1646 (diff)
downloadports-5f7fb24f401e3ed3fbe6bac932faf28d80b3dc36.tar.gz
ports-5f7fb24f401e3ed3fbe6bac932faf28d80b3dc36.zip
- Convert to Optionsng
- While here trim header
Notes
Notes: svn path=/head/; revision=314144
Diffstat (limited to 'sysutils/hdup')
-rw-r--r--sysutils/hdup/Makefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/sysutils/hdup/Makefile b/sysutils/hdup/Makefile
index 7047e8b8f30a..c92121c671db 100644
--- a/sysutils/hdup/Makefile
+++ b/sysutils/hdup/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: hdup
-# Date created: 6 March 2005
-# Whom: Sergey Matveychuk <sem@FreeBSD.org>
-#
+# Created by: Sergey Matveychuk <sem@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= hdup
PORTVERSION= 2.0.14
@@ -17,7 +13,8 @@ COMMENT= The little, spiffy, backup tool
#WRKSRC= ${WRKDIR}/hdup2
-OPTIONS= GNUTAR_PORT "Build with the newest GNU tar from ports" no
+OPTIONS_DEFINE= GNUTAR_PORT DOCS
+GNUTAR_PORT_DESC= GNU tar from ports
BUILD_DEPENDS= mcrypt:${PORTSDIR}/security/mcrypt
RUN_DEPENDS= mcrypt:${PORTSDIR}/security/mcrypt \
@@ -34,9 +31,9 @@ USE_AUTOTOOLS= autoconf
MAN1= hdup.1
MAN5= hdup.conf.5
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_GNUTAR_PORT)
+.if ${PORT_OPTIONS:MGNUTAR_PORT}
BUILD_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar
RUN_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar
GNUTAR= ${LOCALBASE}/bin/gtar
@@ -49,7 +46,7 @@ post-configure:
@${REINPLACE_CMD} -e 's#%%GNUTAR%%#${GNUTAR}#g' ${WRKSRC}/src/hdup.h
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}; \
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}; \
${INSTALL_DATA} ${WRKSRC}/doc/FAQ.html ${DOCSDIR}; \
@@ -57,4 +54,4 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>