diff options
author | riggs <riggs@FreeBSD.org> | 2014-06-12 02:54:20 +0800 |
---|---|---|
committer | riggs <riggs@FreeBSD.org> | 2014-06-12 02:54:20 +0800 |
commit | 604eb7cb88ca457702bac8043e6a3c21710047f8 (patch) | |
tree | 14ce27b72f650ceb407913afc78f0010b1a3c89e | |
parent | a5feacdb8df832db293b3526b31aa027ee646e3f (diff) | |
download | freebsd-ports-gnome-604eb7cb88ca457702bac8043e6a3c21710047f8.tar.gz freebsd-ports-gnome-604eb7cb88ca457702bac8043e6a3c21710047f8.tar.zst freebsd-ports-gnome-604eb7cb88ca457702bac8043e6a3c21710047f8.zip |
- Un-break
- Add new MASTER_SITE where distfile is still fetchable
- Add LICENSE*
- Stagify
- Handle GNOME and ICONS via OPTIONS rather than WITH*
- Pet portlint
PR: 190500 , 190528
Submitted by: kalten@gmx.at, mikhail.rokhin@gmail.com
Reviewed by: jadawin
Approved by: mentors (implicit)
-rw-r--r-- | multimedia/linux-realplayer/Makefile | 91 | ||||
-rw-r--r-- | multimedia/linux-realplayer/pkg-descr | 2 | ||||
-rw-r--r-- | multimedia/linux-realplayer/pkg-plist | 34 |
3 files changed, 79 insertions, 48 deletions
diff --git a/multimedia/linux-realplayer/Makefile b/multimedia/linux-realplayer/Makefile index 6dab2dc24eb6..702295f1a2e7 100644 --- a/multimedia/linux-realplayer/Makefile +++ b/multimedia/linux-realplayer/Makefile @@ -3,9 +3,11 @@ PORTNAME= linux-realplayer DISTVERSION= 10.0.9.809-20070726 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= multimedia audio linux -MASTER_SITES= http://client-software.real.com/free/unix/:player \ +MASTER_SITES= ftp://ftp.tw.freebsd.org/pub/distfiles/:player \ + http://freeheimdall.spdns.org/files/:player \ + http://freeheimdall.spdns.org/files/:codecs \ http://mirror.therek.net/freebsd/distfiles/mplayer/:codecs \ SF/mplayer-tru/mplayer-codecs/20040704:codecs \ ftp://fr2.rpmfind.net/linux/sourceforge/m/mp/mplayer-tru/mplayer-codecs/20040704/:codecs \ @@ -16,7 +18,10 @@ DISTFILES= RealPlayer10GOLD.rpm:player \ MAINTAINER= multimedia@FreeBSD.org COMMENT= Linux RealPlayer 10 from RealNetworks -BROKEN= Unfetchable +LICENSE= RealPlayer +LICENSE_NAME= Helix DNA Technology Binary Research Use License +LICENSE_FILE= ${WRKSRC}/LICENSE +LICENSE_PERMS= auto-accept WRKSRC= ${WRKDIR}/usr/local/RealPlayer ONLY_FOR_ARCHS= i386 amd64 @@ -30,13 +35,15 @@ RADIR= ${PREFIX}/lib/RealPlayer PLUGINSDIR= ${PREFIX}/lib/linux-mozilla/plugins RABINDIR= ${PREFIX}/bin -NO_STAGE= yes +OPTIONS_DEFINE= GNOME ICONS NLS +OPTIONS_DEFAULT= ICONS -OPTIONS_DEFINE= NLS +ICONS_DESC= Install set of icons .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MNLS} +USES+= gettext PLIST_SUB+= NLS="" LINUXBASE="${LINUXBASE}" .else PLIST_SUB+= NLS="@comment " @@ -44,21 +51,21 @@ PLIST_SUB+= NLS="@comment " .include <bsd.port.pre.mk> -.if exists(${LOCALBASE}/share/icons) -WITH_ICONS= yes +.if ${PORT_OPTIONS:MICONS} PLIST_SUB+= ICONS="" .else PLIST_SUB+= ICONS="@comment " .endif -.if ${HAVE_GNOME:Mgnomehier}!="" -WITH_GNOME= yes +.if ${PORT_OPTIONS:MGNOME} +USE_GNOME+= gnomehier +USES+= desktop-file-utils PLIST_SUB+= GNOME="" .else PLIST_SUB+= GNOME="@comment " .endif -.if defined(WITH_ICONS) || defined(WITH_GNOME) +.if ${PORT_OPTIONS:MICONS} || ${PORT_OPTIONS:MGNOME} PLIST_SUB+= X11="" .else PLIST_SUB+= X11="@comment " @@ -75,68 +82,68 @@ post-patch: < ${FILESDIR}/realplay > ${WRKSRC}/realplay do-install: - @${MKDIR} ${RADIR} - ${INSTALL_DATA} ${WRKSRC}/LICENSE ${WRKSRC}/README ${RADIR} - ${INSTALL_PROGRAM} ${WRKSRC}/realplay.bin ${RADIR} - ${BRANDELF} -t Linux ${RADIR}/realplay.bin + @${MKDIR} ${STAGEDIR}${RADIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${RADIR} + ${INSTALL_PROGRAM} ${WRKSRC}/realplay.bin ${STAGEDIR}${RADIR} + ${BRANDELF} -t Linux ${STAGEDIR}${RADIR}/realplay.bin .for dir in codecs common lib plugins share/default share/realplay - @${MKDIR} ${RADIR}/${dir} - ${INSTALL_DATA} ${WRKSRC}/${dir}/* ${RADIR}/${dir} + @${MKDIR} ${STAGEDIR}${RADIR}/${dir} + ${INSTALL_DATA} ${WRKSRC}/${dir}/* ${STAGEDIR}${RADIR}/${dir} .endfor # Extra codecs from the RealPlayer-9 -- no longer shipped by Real, # but still in use by major content providers, such as Amazon: .for c in dnet ddnt - ${INSTALL_DATA} ${WRKDIR}/usr/lib/codecs/$c.so.6.0 \ - ${RADIR}/codecs/ - ${LN} -sf $c.so.6.0 ${RADIR}/codecs/$c.so + ${INSTALL_DATA} ${WRKDIR}/usr/lib/codecs/$c.so.6.0 \ + ${STAGEDIR}${RADIR}/codecs/ + ${LN} -sf $c.so.6.0 ${STAGEDIR}${RADIR}/codecs/$c.so .endfor .if ${PORT_OPTIONS:MNLS} - @${MKDIR} ${RADIR}/share/locale - ${CP} -Rp ${WRKSRC}/share/locale/* ${RADIR}/share/locale - ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${RADIR}/share/locale + @${MKDIR} ${STAGEDIR}${RADIR}/share/locale + ${CP} -Rp ${WRKSRC}/share/locale/* ${STAGEDIR}${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 + @${MKDIR} ${STAGEDIR}${LINUXBASE}/usr/share/locale/${c}/LC_MESSAGES + ${INSTALL_DATA} ${STAGEDIR}${RADIR}/share/locale/${c}/player.mo \ + ${STAGEDIR}${LINUXBASE}/usr/share/locale/${c}/LC_MESSAGES/realplay.mo .endfor .endif - @${MKDIR} ${PLUGINSDIR} - ${INSTALL_DATA} ${WRKSRC}/mozilla/* ${PLUGINSDIR} + @${MKDIR} ${STAGEDIR}${PLUGINSDIR} + ${INSTALL_DATA} ${WRKSRC}/mozilla/* ${STAGEDIR}${PLUGINSDIR} - @${MKDIR} ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/realplay ${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/realplay ${STAGEDIR}${PREFIX}/bin -.if defined(WITH_ICONS) +.if ${PORT_OPTIONS:MICONS} . for size in 16x16 32x32 48x48 192x192 - @${MKDIR} ${LOCALBASE}/share/icons/hicolor/${size}/apps + @${MKDIR} ${STAGEDIR}${LOCALBASE}/share/icons/hicolor/${size}/apps ${INSTALL_DATA} ${WRKSRC}/share/icons/realplay_${size}.png \ - ${LOCALBASE}/share/icons/hicolor/${size}/apps + ${STAGEDIR}${LOCALBASE}/share/icons/hicolor/${size}/apps . endfor . for size in 48x48 192x192 - @${MKDIR} ${LOCALBASE}/share/icons/hicolor/${size}/mimetypes + @${MKDIR} ${STAGEDIR}${LOCALBASE}/share/icons/hicolor/${size}/mimetypes ${INSTALL_DATA} ${WRKSRC}/share/icons/mime-*_${size}.png \ - ${LOCALBASE}/share/icons/hicolor/${size}/mimetypes + ${STAGEDIR}${LOCALBASE}/share/icons/hicolor/${size}/mimetypes . endfor .endif -.if defined(WITH_GNOME) - @${MKDIR} ${LOCALBASE}/share/pixmaps +.if ${PORT_OPTIONS:MGNOME} + @${MKDIR} ${STAGEDIR}${LOCALBASE}/share/pixmaps ${INSTALL_DATA} ${WRKSRC}/share/realplay.png \ - ${LOCALBASE}/share/pixmaps + ${STAGEDIR}${LOCALBASE}/share/pixmaps - @${MKDIR} ${LOCALBASE}/share/applications + @${MKDIR} ${STAGEDIR}${LOCALBASE}/share/applications ${INSTALL_DATA} ${WRKSRC}/share/realplay.desktop \ - ${LOCALBASE}/share/applications + ${STAGEDIR}${LOCALBASE}/share/applications - @${MKDIR} ${LOCALBASE}/share/application-registry + @${MKDIR} ${STAGEDIR}${LOCALBASE}/share/application-registry ${INSTALL_DATA} ${WRKSRC}/share/realplay.applications \ - ${LOCALBASE}/share/application-registry + ${STAGEDIR}${LOCALBASE}/share/application-registry - @${MKDIR} ${LOCALBASE}/share/mime-info + @${MKDIR} ${STAGEDIR}${LOCALBASE}/share/mime-info ${INSTALL_DATA} ${WRKSRC}/share/realplay.keys ${WRKSRC}/share/realplay.mime \ - ${LOCALBASE}/share/mime-info + ${STAGEDIR}${LOCALBASE}/share/mime-info .endif .include <bsd.port.post.mk> diff --git a/multimedia/linux-realplayer/pkg-descr b/multimedia/linux-realplayer/pkg-descr index e296db31f0a7..926c05246a17 100644 --- a/multimedia/linux-realplayer/pkg-descr +++ b/multimedia/linux-realplayer/pkg-descr @@ -2,4 +2,4 @@ The RealPlayer for Linux is built on top of the Helix Player for Linux and includes support for several non-open source components including RealAudio/RealVideo, MP3 etc. -WWW: https://player.helixcommunity.org/ +WWW: https://player.helixcommunity.org/ diff --git a/multimedia/linux-realplayer/pkg-plist b/multimedia/linux-realplayer/pkg-plist index e3ceae3ba6dd..a5b34a99814d 100644 --- a/multimedia/linux-realplayer/pkg-plist +++ b/multimedia/linux-realplayer/pkg-plist @@ -1,5 +1,4 @@ bin/realplay -lib/RealPlayer/LICENSE lib/RealPlayer/README lib/RealPlayer/codecs/amrn.so lib/RealPlayer/codecs/amrw.so @@ -231,9 +230,6 @@ lib/linux-mozilla/plugins/nphelix.xpt %%ICONS%%share/icons/hicolor/48x48/mimetypes/mime-video-ogg_48x48.png %%ICONS%%share/icons/hicolor/48x48/mimetypes/mime-video-rv_48x48.png %%ICONS%%share/icons/hicolor/48x48/mimetypes/mime-video-swf_48x48.png -%%GNOME%%@dirrmtry share/application-registry -%%GNOME%%@dirrmtry share/mime-info -%%GNOME%%@dirrmtry share/pixmaps %%ICONS%%@dirrmtry share/icons/hicolor/48x48/apps %%ICONS%%@dirrmtry share/icons/hicolor/48x48/mimetypes %%ICONS%%@dirrmtry share/icons/hicolor/48x48 @@ -245,7 +241,8 @@ 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%% +%%ICONS%%@dirrmtry share/icons +%%NLS%%@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 @@ -257,3 +254,30 @@ lib/linux-mozilla/plugins/nphelix.xpt %%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 +%%NLS%%@dirrmtry usr/share/locale/de/LC_MESSAGES +%%NLS%%@dirrmtry usr/share/locale/de +%%NLS%%@dirrmtry usr/share/locale/es/LC_MESSAGES +%%NLS%%@dirrmtry usr/share/locale/es +%%NLS%%@dirrmtry usr/share/locale/fr/LC_MESSAGES +%%NLS%%@dirrmtry usr/share/locale/fr +%%NLS%%@dirrmtry usr/share/locale/hi/LC_MESSAGES +%%NLS%%@dirrmtry usr/share/locale/hi +%%NLS%%@dirrmtry usr/share/locale/it/LC_MESSAGES +%%NLS%%@dirrmtry usr/share/locale/it +%%NLS%%@dirrmtry usr/share/locale/ja/LC_MESSAGES +%%NLS%%@dirrmtry usr/share/locale/ja +%%NLS%%@dirrmtry usr/share/locale/ko/LC_MESSAGES +%%NLS%%@dirrmtry usr/share/locale/ko +%%NLS%%@dirrmtry usr/share/locale/pl/LC_MESSAGES +%%NLS%%@dirrmtry usr/share/locale/pl +%%NLS%%@dirrmtry usr/share/locale/pt_BR/LC_MESSAGES +%%NLS%%@dirrmtry usr/share/locale/pt_BR +%%NLS%%@dirrmtry usr/share/locale/zh_CN/LC_MESSAGES +%%NLS%%@dirrmtry usr/share/locale/zh_CN +%%NLS%%@dirrmtry usr/share/locale/zh_TW/LC_MESSAGES +%%NLS%%@dirrmtry usr/share/locale/zh_TW +%%NLS%%@dirrmtry usr/share/locale +%%NLS%%@dirrmtry usr/share +%%NLS%%@dirrmtry usr +%%NLS%%@unexec rmdir "%%LINUXBASE%%" >/dev/null 2>&1 || : +%%NLS%%@unexec rmdir "/compat" >/dev/null 2>&1 || : |