aboutsummaryrefslogtreecommitdiffstats
path: root/german/mediathekview/Makefile
blob: 459656478970cb658fa80d088b058d24cd405f00 (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
# Created by: Lars Engels <lme@FreeBSD.org>
# $FreeBSD$

PORTNAME=   mediathekview
PORTVERSION=    13.0.4
CATEGORIES= german java
MASTER_SITES=   https://download.mediathekview.de/stabil/
DISTNAME=   MediathekView-${PORTVERSION}

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

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/Copyright/_mediathekView-LICENSE.txt

RUN_DEPENDS=    ${LOCALBASE}/openjdk8/bin/javafxpackager:java/openjfx8-devel \
        flvstreamer:multimedia/flvstreamer

NO_BUILD=   yes
USE_JAVA=   yes
JAVA_VERSION=   1.8+
SUB_FILES=  ${PORTNAME}

NO_ARCH=    yes

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

OPTIONS_DEFINE=     DOCS
OPTIONS_MULTI=      BACKEND
OPTIONS_MULTI_BACKEND=  MPLAYER MPV VLC

VLC_DESC=       VLC support
MPV_DESC=       MPV support

OPTIONS_DEFAULT=    MPV

MPLAYER_RUN_DEPENDS=    mplayer:multimedia/mplayer
MPV_RUN_DEPENDS=    mpv:multimedia/mpv
VLC_RUN_DEPENDS=    vlc:multimedia/vlc

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

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}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>