diff options
author | itetcu <itetcu@FreeBSD.org> | 2010-03-13 20:08:33 +0800 |
---|---|---|
committer | itetcu <itetcu@FreeBSD.org> | 2010-03-13 20:08:33 +0800 |
commit | e74166eb2712e1afce3c52417d06ba3161e98dff (patch) | |
tree | 685155fa1f12d508b3f44102ba793d6412a7909e /multimedia/linux-huludesktop | |
parent | 2f1e73ba1bae2063471fabc841c6118c949cf7ee (diff) | |
download | freebsd-ports-gnome-e74166eb2712e1afce3c52417d06ba3161e98dff.tar.gz freebsd-ports-gnome-e74166eb2712e1afce3c52417d06ba3161e98dff.tar.zst freebsd-ports-gnome-e74166eb2712e1afce3c52417d06ba3161e98dff.zip |
Hulu Desktop is a "lean-back viewing experince", providing streaming TV and
movies directly from Hulu to your desktop without the need for a flash enabled
web browser. Hulu Desktop provides full access to the Hulu Library. Signup not
required except for viewing mature content.
Hulu content may not be available outside of the US.
WWW: http://www.hulu.com/labs/hulu-desktop
PR: ports/144707
Submitted by: Joseph S. Atkinson <jsa at wickedmachine.net>
Diffstat (limited to 'multimedia/linux-huludesktop')
-rw-r--r-- | multimedia/linux-huludesktop/Makefile | 62 | ||||
-rw-r--r-- | multimedia/linux-huludesktop/distinfo | 3 | ||||
-rw-r--r-- | multimedia/linux-huludesktop/files/huludesktop.in | 19 | ||||
-rw-r--r-- | multimedia/linux-huludesktop/pkg-descr | 8 | ||||
-rw-r--r-- | multimedia/linux-huludesktop/pkg-plist | 11 |
5 files changed, 103 insertions, 0 deletions
diff --git a/multimedia/linux-huludesktop/Makefile b/multimedia/linux-huludesktop/Makefile new file mode 100644 index 000000000000..dd61ab006168 --- /dev/null +++ b/multimedia/linux-huludesktop/Makefile @@ -0,0 +1,62 @@ +# New ports collection makefile for: multimedia/linux-huludesktop +# Date created: 2010-02-22 +# Whom: Joseph S. Atkinson <jsa@wickedmachine.net> +# +# $FreeBSD$ +# + +PORTNAME= huludesktop +PORTVERSION= 0.9.7 +CATEGORIES= multimedia linux +MASTER_SITES= http://download.hulu.com/ +PKGNAMEPREFIX= linux- +DISTNAME= ${PORTNAME}-${LINUX_RPM_ARCH} +EXTRACT_SUFX= .rpm + +MAINTAINER= jsa@wickedmachine.net +COMMENT= Streaming video client for TV and movies on Hulu.com + +ONLY_FOR_ARCHS= i386 amd64 +LINUX_RPM_ARCH= i386 + +USE_LINUX= f10 +NO_BUILD= yes + +RPM2CPIO?= ${LOCALBASE}/bin/rpm2cpio +FLASHPLUGIN= linux-${USE_LINUX}-flashplugin +FLASHPATH= ${LOCALBASE}/lib/npapi/${FLASHPLUGIN}/libflashplayer.so +EXTRACT_DEPENDS+= ${RPM2CPIO}:${PORTSDIR}/archivers/rpm +RUN_DEPENDS+= ${FLASHPATH}:${PORTSDIR}/www/${FLASHPLUGIN}10 + +RESTRICTED= Non-redistributable, non-commercial, export controlled + +SUB_FILES= ${PORTNAME} + +.include <bsd.port.pre.mk> + +do-extract: + ${MKDIR} ${WRKSRC} + ${RPM2CPIO} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \ + ${TAR} xf - -C ${WRKSRC} + +do-install: + ${MKDIR} ${PREFIX}/etc/${PORTNAME} \ + ${PREFIX}/share/applications + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} + ${INSTALL_PROGRAM} ${WRKSRC}/usr/bin/${PORTNAME} \ + ${PREFIX}/libexec/${PORTNAME}.bin + ${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}/hd_keymap.ini \ + ${PREFIX}/etc/${PORTNAME} +. for FILE in applications/${PORTNAME}.desktop pixmaps/${PORTNAME}.png + ${INSTALL_DATA} ${WRKSRC}/usr/share/${FILE} \ + ${PREFIX}/share/${FILE} +. endfor +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +. for FILE in EULA LICENSE README + ${INSTALL_DATA} ${WRKSRC}/usr/share/doc/${PORTNAME}/${FILE} \ + ${DOCSDIR} +. endfor +.endif + +.include <bsd.port.post.mk> diff --git a/multimedia/linux-huludesktop/distinfo b/multimedia/linux-huludesktop/distinfo new file mode 100644 index 000000000000..8abeb2530964 --- /dev/null +++ b/multimedia/linux-huludesktop/distinfo @@ -0,0 +1,3 @@ +MD5 (huludesktop-i386.rpm) = a16f2fb4cf9dc80ac8dfbe9396002b98 +SHA256 (huludesktop-i386.rpm) = 5d44e8098cd0ba0544ac57d42f19b82ef2303d6c56c8982bd42d872bc9bde08f +SIZE (huludesktop-i386.rpm) = 557823 diff --git a/multimedia/linux-huludesktop/files/huludesktop.in b/multimedia/linux-huludesktop/files/huludesktop.in new file mode 100644 index 000000000000..b853fd0fa105 --- /dev/null +++ b/multimedia/linux-huludesktop/files/huludesktop.in @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# This scripts attempts to locate Flash on behalf of the Hulu Desktop. +# Without this script, Hulu will be unable to find libflashplayer.so causing +# each user to manually configure ~/.huludesktop manually. +# + +PREFIX="%%PREFIX%%" + +if [ ! -e ~/.huludesktop ] + then + echo -e "[flash]" > ~/.huludesktop + echo -e "flash_location = `find ${PREFIX}/lib/npapi \ + -type f -name libflashplayer.so`" >> ~/.huludesktop +fi + +${PREFIX}/libexec/huludesktop.bin & diff --git a/multimedia/linux-huludesktop/pkg-descr b/multimedia/linux-huludesktop/pkg-descr new file mode 100644 index 000000000000..13089e2d7de0 --- /dev/null +++ b/multimedia/linux-huludesktop/pkg-descr @@ -0,0 +1,8 @@ +Hulu Desktop is a "lean-back viewing experince", providing streaming TV and +movies directly from Hulu to your desktop without the need for a flash enabled +web browser. Hulu Desktop provides full access to the Hulu Library. Signup not +required except for viewing mature content. + +Hulu content may not be available outside of the US. + +WWW: http://www.hulu.com/labs/hulu-desktop diff --git a/multimedia/linux-huludesktop/pkg-plist b/multimedia/linux-huludesktop/pkg-plist new file mode 100644 index 000000000000..37e0c543027a --- /dev/null +++ b/multimedia/linux-huludesktop/pkg-plist @@ -0,0 +1,11 @@ +bin/huludesktop +etc/huludesktop/hd_keymap.ini +libexec/huludesktop.bin +share/applications/huludesktop.desktop +share/pixmaps/huludesktop.png +%%PORTDOCS%%%%DOCSDIR%%/EULA +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrmtry share/applications +@dirrm etc/huludesktop |