aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/linux-realplayer
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2008-11-19 03:10:39 +0800
committerdelphij <delphij@FreeBSD.org>2008-11-19 03:10:39 +0800
commitab1ab2ffa003bfb5ba3407d7f87bde2a4769b33e (patch)
tree70b95da656db137bf238e2d2eabd63aafbb04d55 /multimedia/linux-realplayer
parentf73f486a6f075b321f0e914a4167d0c1cf7737d3 (diff)
downloadfreebsd-ports-graphics-ab1ab2ffa003bfb5ba3407d7f87bde2a4769b33e.tar.gz
freebsd-ports-graphics-ab1ab2ffa003bfb5ba3407d7f87bde2a4769b33e.tar.zst
freebsd-ports-graphics-ab1ab2ffa003bfb5ba3407d7f87bde2a4769b33e.zip
Install localization messagge files.
Submitted by: Intron <intron at intron dot ac> PR: ports/128580 Approved by: maintainer timeout
Diffstat (limited to 'multimedia/linux-realplayer')
-rw-r--r--multimedia/linux-realplayer/Makefile6
-rw-r--r--multimedia/linux-realplayer/pkg-plist12
2 files changed, 17 insertions, 1 deletions
diff --git a/multimedia/linux-realplayer/Makefile b/multimedia/linux-realplayer/Makefile
index c39ae39e559..6e868b25141 100644
--- a/multimedia/linux-realplayer/Makefile
+++ b/multimedia/linux-realplayer/Makefile
@@ -35,7 +35,7 @@ RABINDIR= ${PREFIX}/bin
.if defined(WITHOUT_NLS)
PLIST_SUB+= NLS="@comment "
.else
-PLIST_SUB+= NLS=""
+PLIST_SUB+= NLS="" LINUXBASE="${LINUXBASE}"
.endif
.include <bsd.port.pre.mk>
@@ -93,6 +93,10 @@ do-install:
@${MKDIR} ${RADIR}/share/locale
${CP} -Rp ${WRKSRC}/share/locale/* ${RADIR}/share/locale
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${RADIR}/share/locale
+.for c in de es fr hi it ja ko pl pt_BR zh_CN zh_TW
+ ${LN} -sf ${RADIR}/share/locale/${c}/player.mo \
+ ${LINUXBASE}/usr/share/locale/${c}/LC_MESSAGES/realplay.mo
+.endfor
.endif
@${MKDIR} ${PLUGINSDIR}
diff --git a/multimedia/linux-realplayer/pkg-plist b/multimedia/linux-realplayer/pkg-plist
index 6de623f44c6..63a00c88237 100644
--- a/multimedia/linux-realplayer/pkg-plist
+++ b/multimedia/linux-realplayer/pkg-plist
@@ -246,3 +246,15 @@ lib/linux-mozilla/plugins/nphelix.xpt
%%ICONS%%@dirrmtry share/icons/hicolor/16x16/apps
%%ICONS%%@dirrmtry share/icons/hicolor/16x16
%%ICONS%%@dirrmtry share/icons/hicolor
+@cwd %%LINUXBASE%%
+%%NLS%%usr/share/locale/de/LC_MESSAGES/realplay.mo
+%%NLS%%usr/share/locale/es/LC_MESSAGES/realplay.mo
+%%NLS%%usr/share/locale/fr/LC_MESSAGES/realplay.mo
+%%NLS%%usr/share/locale/hi/LC_MESSAGES/realplay.mo
+%%NLS%%usr/share/locale/it/LC_MESSAGES/realplay.mo
+%%NLS%%usr/share/locale/ja/LC_MESSAGES/realplay.mo
+%%NLS%%usr/share/locale/ko/LC_MESSAGES/realplay.mo
+%%NLS%%usr/share/locale/pl/LC_MESSAGES/realplay.mo
+%%NLS%%usr/share/locale/pt_BR/LC_MESSAGES/realplay.mo
+%%NLS%%usr/share/locale/zh_CN/LC_MESSAGES/realplay.mo
+%%NLS%%usr/share/locale/zh_TW/LC_MESSAGES/realplay.mo