diff options
author | bapt <bapt@FreeBSD.org> | 2013-05-06 18:22:41 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-05-06 18:22:41 +0800 |
commit | 9448bf8a9893f033f4857b17e60990eaf05437f2 (patch) | |
tree | 35173dab2afafdac2c12b688bfc1f1397a7b8cfb /multimedia/freevo | |
parent | 3d353e31abfcd08740e73294d90f9ba291e25502 (diff) | |
download | freebsd-ports-gnome-9448bf8a9893f033f4857b17e60990eaf05437f2.tar.gz freebsd-ports-gnome-9448bf8a9893f033f4857b17e60990eaf05437f2.tar.zst freebsd-ports-gnome-9448bf8a9893f033f4857b17e60990eaf05437f2.zip |
Convert from WITHOUT_NLS to PORT_OPTIONS:MNLS
While here do some conversion to new options framework
Diffstat (limited to 'multimedia/freevo')
-rw-r--r-- | multimedia/freevo/Makefile | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/multimedia/freevo/Makefile b/multimedia/freevo/Makefile index 8892a14c1816..61dfd6c93789 100644 --- a/multimedia/freevo/Makefile +++ b/multimedia/freevo/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: freevo -# Date created: April 10 2004 -# Whom: Lewis Thompson (purple@lewiz.net) -# +# Created by: Lewis Thompson (purple@lewiz.net) # $FreeBSD$ -# PORTNAME= freevo PORTVERSION= 1.9.0 @@ -54,15 +50,17 @@ CONFDIR= ${PREFIX}/etc/${PORTNAME} DATADIR= ${PREFIX}/share/${PORTNAME} DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} -.if defined(WITHOUT_NLS) -PLIST_SUB+= NLS="@comment " -.else +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} USES+= gettext PLIST_SUB+= NLS="" +.else +PLIST_SUB+= NLS="@comment " .endif post-patch: -.if defined(WITHOUT_NLS) +.if ! ${PORT_OPTIONS:MNLS} @${REINPLACE_CMD} -e 's| freevo_locale| # freevo_locale|' ${WRKSRC}/${PORTNAME} @${MV} ${WRKSRC}/i18n ${WRKSRC}/i18n-nls-disabled .endif |