aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-09-20 18:59:30 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-09-20 18:59:30 +0000
commitb0674d8633cd736069aeca14f20784116e896e59 (patch)
treeef71a5feb59b27d9097f1dac1caede5413658612 /sysutils
parentaa8eddd2a4364b76347ebcd18f9f3f10dc22d1f5 (diff)
downloadports-b0674d8633cd736069aeca14f20784116e896e59.tar.gz
ports-b0674d8633cd736069aeca14f20784116e896e59.zip
- Switch to options helpers
Approved by: portmgr blanket
Notes
Notes: svn path=/head/; revision=397383
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/dvdbackup/Makefile17
1 files changed, 4 insertions, 13 deletions
diff --git a/sysutils/dvdbackup/Makefile b/sysutils/dvdbackup/Makefile
index df9c19f85493..b0ca137db75c 100644
--- a/sysutils/dvdbackup/Makefile
+++ b/sysutils/dvdbackup/Makefile
@@ -25,27 +25,18 @@ PORTDOCS= NEWS README
DEFAULT_DVD_DEVICE?= /dev/cd0
OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-CONFIGURE_ARGS+= --enable-nls
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
post-patch:
@${REINPLACE_CMD} "s|/dev/dvd|${DEFAULT_DVD_DEVICE}|g" \
${WRKSRC}/src/main.c ${WRKSRC}/po/*.po ${WRKSRC}/po/*.pot \
${WRKSRC}/README ${WRKSRC}/man/dvdbackup.1
-pre-configure:
-.if empty(PORT_OPTIONS:MDOCS)
+pre-configure-DOCS-off:
@${REINPLACE_CMD} 's|^install-data-am: .*|install-data-am: |' \
${WRKSRC}/Makefile.in
-.endif
.include <bsd.port.mk>