# Created by: Kris Kennaway # $FreeBSD: head/multimedia/linux-realplayer/Makefile 375146 2014-12-21 00:43:28Z bapt $ PORTNAME= linux-realplayer DISTVERSION= 10.0.9.809-20070726 PORTREVISION= 6 CATEGORIES= multimedia audio linux 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 \ DISTFILES= RealPlayer10GOLD.rpm:player \ mplayer-codecs-linux-real-20040626-1.i386.rpm:codecs MAINTAINER= multimedia@FreeBSD.org COMMENT= Linux RealPlayer 10 from RealNetworks 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 USES= webplugin:linux WEBPLUGIN_FILES=nphelix.so nphelix.xpt USE_LINUX= yes USE_LINUX_APPS= gtk2 xorglibs RESTRICTED= Redistribution not allowed NO_BUILD= yes RADIR= ${PREFIX}/lib/RealPlayer RABINDIR= ${PREFIX}/bin OPTIONS_DEFINE= GNOME ICONS NLS OPTIONS_DEFAULT= ICONS ICONS_DESC= Install set of icons .include .if ${PORT_OPTIONS:MNLS} USES+= gettext PLIST_SUB+= NLS="" LINUXBASE="${LINUXBASE}" .else PLIST_SUB+= NLS="@comment " .endif .if ${PORT_OPTIONS:MICONS} PLIST_SUB+= ICONS="" .else PLIST_SUB+= ICONS="@comment " .endif .if ${PORT_OPTIONS:MGNOME} USES+= desktop-file-utils PLIST_SUB+= GNOME="" .else PLIST_SUB+= GNOME="@comment " .endif .if ${PORT_OPTIONS:MICONS} || ${PORT_OPTIONS:MGNOME} PLIST_SUB+= X11="" .else PLIST_SUB+= X11="@comment " .endif do-extract: @${MKDIR} ${WRKDIR} @for f in ${_DISTFILES}; do\ cd ${WRKDIR}; ${TAR} -xf ${DISTDIR}/$$f ; \ done post-patch: @${SED} 's|/usr/local|${PREFIX}|' \ < ${FILESDIR}/realplay > ${WRKSRC}/realplay do-install: @${MKDIR} ${STAGEDIR}${RADIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${RADIR} ${BRANDELF} -t Linux ${WRKSRC}/realplay.bin ${INSTALL_PROGRAM} ${WRKSRC}/realplay.bin ${STAGEDIR}${RADIR} .for dir in codecs common lib plugins share/default share/realplay @${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 \ ${STAGEDIR}${RADIR}/codecs/ ${LN} -sf $c.so.6.0 ${STAGEDIR}${RADIR}/codecs/$c.so .endfor .if ${PORT_OPTIONS:MNLS} @${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 @${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} ${STAGEDIR}${WEBPLUGIN_DIR} ${INSTALL_DATA} ${WRKSRC}/mozilla/* ${STAGEDIR}${WEBPLUGIN_DIR} @${MKDIR} ${STAGEDIR}${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/realplay ${STAGEDIR}${PREFIX}/bin .if ${PORT_OPTIONS:MICONS} . for size in 16x16 32x32 48x48 192x192 @${MKDIR} ${STAGEDIR}${LOCALBASE}/share/icons/hicolor/${size}/apps ${INSTALL_DATA} ${WRKSRC}/share/icons/realplay_${size}.png \ ${STAGEDIR}${LOCALBASE}/share/icons/hicolor/${size}/apps . endfor . for size in 48x48 192x192 @${MKDIR} ${STAGEDIR}${LOCALBASE}/share/icons/hicolor/${size}/mimetypes ${INSTALL_DATA} ${WRKSRC}/share/icons/mime-*_${size}.png \ ${STAGEDIR}${LOCALBASE}/share/icons/hicolor/${size}/mimetypes . endfor .endif .if ${PORT_OPTIONS:MGNOME} @${MKDIR} ${STAGEDIR}${LOCALBASE}/share/pixmaps ${INSTALL_DATA} ${WRKSRC}/share/realplay.png \ ${STAGEDIR}${LOCALBASE}/share/pixmaps @${MKDIR} ${STAGEDIR}${LOCALBASE}/share/applications ${INSTALL_DATA} ${WRKSRC}/share/realplay.desktop \ ${STAGEDIR}${LOCALBASE}/share/applications @${MKDIR} ${STAGEDIR}${LOCALBASE}/share/application-registry ${INSTALL_DATA} ${WRKSRC}/share/realplay.applications \ ${STAGEDIR}${LOCALBASE}/share/application-registry @${MKDIR} ${STAGEDIR}${LOCALBASE}/share/mime-info ${INSTALL_DATA} ${WRKSRC}/share/realplay.keys ${WRKSRC}/share/realplay.mime \ ${STAGEDIR}${LOCALBASE}/share/mime-info .endif .include