aboutsummaryrefslogtreecommitdiff
path: root/multimedia/linux-realplayer
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-05-06 10:22:41 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-05-06 10:22:41 +0000
commit062ed8d36fcff34f0d3051dd7687377d27558a32 (patch)
tree35173dab2afafdac2c12b688bfc1f1397a7b8cfb /multimedia/linux-realplayer
parent00787ee8ab577b8449043d2c735d6136daf31f74 (diff)
Convert from WITHOUT_NLS to PORT_OPTIONS:MNLS
While here do some conversion to new options framework
Notes
Notes: svn path=/head/; revision=317503
Diffstat (limited to 'multimedia/linux-realplayer')
-rw-r--r--multimedia/linux-realplayer/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/multimedia/linux-realplayer/Makefile b/multimedia/linux-realplayer/Makefile
index 5eef0b29dc51..90e6c3934e0e 100644
--- a/multimedia/linux-realplayer/Makefile
+++ b/multimedia/linux-realplayer/Makefile
@@ -28,10 +28,12 @@ RADIR= ${PREFIX}/lib/RealPlayer
PLUGINSDIR= ${PREFIX}/lib/linux-mozilla/plugins
RABINDIR= ${PREFIX}/bin
-.if defined(WITHOUT_NLS)
-PLIST_SUB+= NLS="@comment "
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS="" LINUXBASE="${LINUXBASE}"
+.else
+PLIST_SUB+= NLS="@comment "
.endif
.include <bsd.port.pre.mk>
@@ -84,7 +86,7 @@ do-install:
${LN} -sf $c.so.6.0 ${RADIR}/codecs/$c.so
.endfor
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
@${MKDIR} ${RADIR}/share/locale
${CP} -Rp ${WRKSRC}/share/locale/* ${RADIR}/share/locale
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${RADIR}/share/locale