aboutsummaryrefslogblamecommitdiff
path: root/multimedia/linux-huludesktop/Makefile
blob: 5fd4e6ecdd507efa9176ed7720f15cd4741826eb (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                          
                     
                 





                                             
                               





                                                                    
                    





                                                                       
                                                             






                                                                      



                                                                               

























                                                                             
# 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.8
PORTREVISION?=	3
CATEGORIES=	multimedia linux
MASTER_SITES=	http://download.hulu.com/
PKGNAMEPREFIX=	linux-
DISTNAME=	${PORTNAME}-${LINUX_RPM_ARCH}
EXTRACT_SUFX=	.rpm

MAINTAINER=	jsa@FreeBSD.org
COMMENT=	Streaming video client for TV and movies on Hulu.com

ONLY_FOR_ARCHS=	i386 amd64
LINUX_RPM_ARCH=	i386

USE_LINUX=	f10
USE_LINUX_APPS=	gtk2
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}11

RESTRICTED=	Non-redistributable, non-commercial, export controlled

SUB_FILES=	${PORTNAME}

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 90000
IGNORE=	has known issues under 9.x. Define NO_IGNORE to install without support
.endif

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>