aboutsummaryrefslogtreecommitdiffstats
path: root/german/mediathek/Makefile
blob: 908e1ccc36174dc59db9e72c50ac19b04d79306e (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
# New ports collection makefile for:    mediathek
# Date created:     2010-10-17
# Whom:         Lars Engels <lme@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   mediathek
PORTVERSION=    2.4.0
CATEGORIES= german java
MASTER_SITES=   SF/zdfmediathk/Mediathek/Mediathek%20${PORTVERSION}
DISTNAME=   Mediathek_${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.6+
SUB_FILES=  mediathek

OPTIONS=    MPLAYER "mplayer zum Aufnehmen verwenden" on \
        VLC "VLC zum Abspielen verwenden" on

INSTALLFILES=   Bitte_lesen.txt Mediathek.jar \
        releases.txt Kurzanleitung.pdf
INSTALLLIBS=    commons-compress-1.1.jar commons-lang-2.5.jar \
        jdom.jar rome-1.0.jar

.include <bsd.port.pre.mk>

pre-everything::
.if !defined(WITH_MPLAYER) && !defined(WITH_VLC)
    @${ECHO_MSG} "Es muss entweder mplayer oder VLC ausgewaehlt sein"
    @${FALSE}
.endif

.if defined(WITH_MPLAYER)
RUN_DEPENDS+=   mplayer:${PORTSDIR}/multimedia/mplayer
.endif

.if defined(WITH_VLC)
RUN_DEPENDS+=   vlc:${PORTSDIR}/multimedia/vlc
.endif

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

do-install:
    @${MKDIR} ${DATADIR}
    @${MKDIR} ${DATADIR}/lib
.for i in ${INSTALLFILES}
    @${INSTALL_DATA} ${WRKSRC}/${i} ${DATADIR}/
.endfor
.for j in ${INSTALLLIBS}
    @${INSTALL_DATA} ${WRKSRC}/lib/${j} ${DATADIR}/lib/
.endfor
    @${INSTALL_SCRIPT} ${WRKDIR}/mediathek ${PREFIX}/bin

.include <bsd.port.post.mk>