aboutsummaryrefslogtreecommitdiff
path: root/german/mediathek/Makefile
blob: 92a81b5a7b3bcc0d0e0d041c16c5e95116ea395c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Created by: Lars Engels <lme@FreeBSD.org>
# $FreeBSD$

PORTNAME=	mediathek
PORTVERSION=	3.3.0
PORTREVISION=	1
CATEGORIES=	german java
MASTER_SITES=	SF/zdfmediathk/Mediathek/Mediathek%20${PORTVERSION}
DISTNAME=	MediathekView_${PORTVERSION}

MAINTAINER=	lme@FreeBSD.org
COMMENT=	Filme der oeff. rechtlichen Sender herunterladen und ansehen

RUN_DEPENDS=	flvstreamer:${PORTSDIR}/multimedia/flvstreamer

NO_BUILD=	yes
USE_ZIP=	yes
USE_JAVA=	yes
JAVA_VERSION=	1.7+
SUB_FILES=	mediathek

INSTALLFILES=	MediathekView.jar MediathekView.ico
INSTALLDOCS=	Kurzanleitung.pdf Instructions.pdf

OPTIONS_MULTI=		BACKEND
OPTIONS_MULTI_BACKEND=	MPLAYER VLC

VLC_DESC=		VLC support

OPTIONS_DEFAULT=	VLC

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMPLAYER}
RUN_DEPENDS+=	mplayer:${PORTSDIR}/multimedia/mplayer
.endif

.if ${PORT_OPTIONS:MVLC}
RUN_DEPENDS+=	vlc:${PORTSDIR}/multimedia/vlc
.endif

DESKTOP_ENTRIES="MediathekView" \
		"Filme der oeff. rechtlichen Sender herunterladen und ansehen" \
		"${DATADIR}/MediathekView.ico" \
		"mediathek" \
		"Video;AudioVideo;Java;" \
		false

do-extract:
	@${RM} -rf ${WRKDIR}
	@${MKDIR} ${WRKSRC}
	@${UNZIP_CMD} -q -d ${WRKSRC} ${DISTDIR}/${EXTRACT_ONLY}

do-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}
	@${MKDIR} ${STAGEDIR}${DATADIR}/lib
.for i in ${INSTALLFILES}
	@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DATADIR}/
.endfor
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${INSTALLDOCS}
		@${INSTALL_DATA} ${WRKSRC}/Anleitung/${i} ${STAGEDIR}${DOCSDIR}/
.endfor
	@(cd ${WRKSRC}/lib/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/lib/)
	@${INSTALL_SCRIPT} ${WRKDIR}/mediathek ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>