svn commit: r397383 - head/sysutils/dvdbackup
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sun Sep 20 18:59:31 UTC 2015
Author: amdmi3
Date: Sun Sep 20 18:59:30 2015
New Revision: 397383
URL: https://svnweb.freebsd.org/changeset/ports/397383
Log:
- Switch to options helpers
Approved by: portmgr blanket
Modified:
head/sysutils/dvdbackup/Makefile
Modified: head/sysutils/dvdbackup/Makefile
==============================================================================
--- head/sysutils/dvdbackup/Makefile Sun Sep 20 18:59:19 2015 (r397382)
+++ head/sysutils/dvdbackup/Makefile Sun Sep 20 18:59:30 2015 (r397383)
@@ -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>
More information about the svn-ports-head
mailing list