aboutsummaryrefslogtreecommitdiffstats
path: root/audio/ncmpc
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2015-08-19 21:29:59 +0800
committermat <mat@FreeBSD.org>2015-08-19 21:29:59 +0800
commit9d30f78a00bed11384c7259f662e9352754275db (patch)
treeac5a462edc3d85d5f0b20a594802ce4b12f0bf9f /audio/ncmpc
parent996088dedaf9d22bcd7c90caa96d33c0f68b08e7 (diff)
downloadfreebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.tar.gz
freebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.tar.zst
freebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.zip
Convert ports to use the options helpers in categories [abc]*, and minor fixes.
Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3412?
Diffstat (limited to 'audio/ncmpc')
-rw-r--r--audio/ncmpc/Makefile25
1 files changed, 8 insertions, 17 deletions
diff --git a/audio/ncmpc/Makefile b/audio/ncmpc/Makefile
index aff4a05c2390..045c11d52ab6 100644
--- a/audio/ncmpc/Makefile
+++ b/audio/ncmpc/Makefile
@@ -23,8 +23,6 @@ OPTIONS_DEFINE= NLS LYRICS
OPTIONS_DEFAULT= LYRICS
LYRICS_DESC= Compile with lyrics screen
-.include <bsd.port.options.mk>
-
USES= iconv pkgconfig
PLIST_FILES= bin/ncmpc \
man/man1/ncmpc.1.gz \
@@ -32,23 +30,17 @@ PLIST_FILES= bin/ncmpc \
%%EXAMPLESDIR%%/keys \
%%EXAMPLESDIR%%/ncmpc.lirc
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
+NLS_USES= gettext
+
LANGUAGES=cs da de eo es fi fr gl he hu it ko nb nl pl pt_BR ru sk sv uk zh_CN
.for language in ${LANGUAGES}
-PLIST_FILES+=share/locale/${language}/LC_MESSAGES/ncmpc.mo
+NLS_PLIST_FILES+=share/locale/${language}/LC_MESSAGES/ncmpc.mo
.endfor
-.else
-CONFIGURE_ARGS+=--disable-nls
-.endif
+NLS_CONFIGURE_OFF=--disable-nls
-.if ${PORT_OPTIONS:MLYRICS}
-CONFIGURE_ARGS+=--enable-lyrics-screen
-PLIST_FILES+= lib/ncmpc/lyrics/10-hd.sh \
+LYRICS_CONFIGURE_ENABLE= lyrics-screen
+LYRICS_PLIST_FILES= lib/ncmpc/lyrics/10-hd.sh \
lib/ncmpc/lyrics/20-lyricwiki.rb
-.else
-CONFIGURE_ARGS+=--disable-lyrics-screen
-.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/ncmpc ${STAGEDIR}${PREFIX}/bin
@@ -57,14 +49,13 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/doc/keys.sample ${STAGEDIR}${EXAMPLESDIR}/keys
${INSTALL_DATA} ${WRKSRC}/doc/ncmpc.lirc ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_MAN} ${WRKSRC}/doc/ncmpc.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
-.if ${PORT_OPTIONS:MNLS}
+do-install-NLS-on:
.for language in ${LANGUAGES}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${language}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${language}.gmo \
${STAGEDIR}${PREFIX}/share/locale/${language}/LC_MESSAGES/ncmpc.mo
.endfor
-.endif
-.if ${PORT_OPTIONS:MLYRICS}
+do-install-LYRICS-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/ncmpc/lyrics
(cd ${WRKSRC}/lyrics && ${INSTALL_SCRIPT} \
10-hd.sh 20-lyricwiki.rb \