import yle-dl, from Antti Harri, ok dcoppa@
RTMPDump-YLE is a command-line program for downloading media files from the two video streaming services of the Finnish national broadcasting company Yle. Some content is only available to users connecting from Finnish addresses.
This commit is contained in:
parent
140ba3311c
commit
1f04402be0
48
multimedia/yle-dl/Makefile
Normal file
48
multimedia/yle-dl/Makefile
Normal file
@ -0,0 +1,48 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2011/10/19 09:16:08 sthen Exp $
|
||||
|
||||
V = 1.4.4
|
||||
COMMENT = download videos from YLE Areena
|
||||
DISTNAME = rtmpdump-yle-$V
|
||||
PKGNAME = yle-dl-$V
|
||||
CATEGORIES = multimedia
|
||||
|
||||
HOMEPAGE = http://users.tkk.fi/~aajanki/rtmpdump-yle/
|
||||
|
||||
MAINTAINER = Antti Harri <iku@openbsd.fi>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
WANTLIB += c crypto json ssl z
|
||||
|
||||
MASTER_SITES = ${HOMEPAGE}
|
||||
|
||||
MODULES = converters/libiconv \
|
||||
lang/python
|
||||
LIB_DEPENDS = devel/json-c
|
||||
|
||||
MAKE_FLAGS = OPT=""
|
||||
MAKE_ENV = XCFLAGS="${CFLAGS}" XLDFLAGS="${LDFLAGS}"
|
||||
|
||||
USE_GMAKE = Yes
|
||||
NO_REGRESS = Yes
|
||||
|
||||
CFLAGS += `pkg-config --cflags json` -I${PREFIX}/include
|
||||
LDFLAGS += `pkg-config --libs json` -liconv
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC} && env -i ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
|
||||
-f ${MAKE_FILE} ${ALL_TARGET}
|
||||
|
||||
do-install:
|
||||
${SUBST_CMD} ${WRKSRC}/yle-dl.py
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/yle-dl.py ${PREFIX}/bin/yle-dl
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/rtmpdump-yle ${PREFIX}/bin/
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/yle-dl
|
||||
${INSTALL_DATA} ${WRKSRC}/COPYING ${WRKSRC}/README.fi \
|
||||
${PREFIX}/share/doc/yle-dl
|
||||
|
||||
.include <bsd.port.mk>
|
5
multimedia/yle-dl/distinfo
Normal file
5
multimedia/yle-dl/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (rtmpdump-yle-1.4.4.tar.gz) = aSvgJe+rjjNE2fIYM9Kv8Q==
|
||||
RMD160 (rtmpdump-yle-1.4.4.tar.gz) = 0PVaCZZw9plY12kdIbmje+JG3kM=
|
||||
SHA1 (rtmpdump-yle-1.4.4.tar.gz) = 3vk86LQ0Y9WUMfgALqo4j0baZFo=
|
||||
SHA256 (rtmpdump-yle-1.4.4.tar.gz) = SaqI4JLz3iXSU8J+hvNdi5fLxoQj+6F0EImQPEqlc+A=
|
||||
SIZE (rtmpdump-yle-1.4.4.tar.gz) = 166434
|
24
multimedia/yle-dl/patches/patch-yle-dl_py
Normal file
24
multimedia/yle-dl/patches/patch-yle-dl_py
Normal file
@ -0,0 +1,24 @@
|
||||
$OpenBSD: patch-yle-dl_py,v 1.1.1.1 2011/10/19 09:16:08 sthen Exp $
|
||||
--- yle-dl.py.orig Tue Oct 11 21:39:25 2011
|
||||
+++ yle-dl.py Tue Oct 18 18:04:21 2011
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/python
|
||||
+#!${MODPY_BIN}
|
||||
|
||||
"""
|
||||
yle-dl - Frontend for rtmpdump-yle, the YLE Areena stream downloader
|
||||
@@ -21,11 +21,11 @@ import htmlentitydefs
|
||||
import json
|
||||
import string
|
||||
|
||||
-RTMPDUMPYLE_BINARY = './rtmpdump-yle' # @BINARY@ make install replaces this line with the real path
|
||||
-AREENA_RTMP = 'rtmp://flashk.yle.fi/AreenaServer'
|
||||
+RTMPDUMPYLE_BINARY = '${TRUEPREFIX}/bin/rtmpdump-yle' # @BINARY@ make install replaces this line with the real path
|
||||
+AREENA_RTMP = 'rtmp://flashu.yle.fi/AreenaServer'
|
||||
AREENA_SWF = 'http://areena.yle.fi/player/Application.swf?build=2'
|
||||
RTMPDUMPYLE_OPTIONS = ['-r', AREENA_RTMP, '-s', AREENA_SWF, '-m', '60']
|
||||
-ARKISTO_RTMP = 'rtmp://flashk.yle.fi/ElavaArkisto'
|
||||
+ARKISTO_RTMP = 'rtmp://flashu.yle.fi/ElavaArkisto'
|
||||
ARKISTO_SWF = 'http://www.yle.fi/elavaarkisto/flowplayer/flowplayer.commercial-3.2.2-dev2.swf'
|
||||
RTMPDUMPYLE_OPTIONS_ARKISTO = \
|
||||
['-r', ARKISTO_RTMP, '-s', ARKISTO_SWF, '-m', '60']
|
4
multimedia/yle-dl/pkg/DESCR
Normal file
4
multimedia/yle-dl/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
RTMPDump-YLE is a command-line program for downloading media files from
|
||||
the two video streaming services of the Finnish national broadcasting
|
||||
company Yle. Some content is only available to users connecting
|
||||
from Finnish addresses.
|
6
multimedia/yle-dl/pkg/PLIST
Normal file
6
multimedia/yle-dl/pkg/PLIST
Normal file
@ -0,0 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/10/19 09:16:08 sthen Exp $
|
||||
@bin bin/rtmpdump-yle
|
||||
bin/yle-dl
|
||||
share/doc/yle-dl/
|
||||
share/doc/yle-dl/COPYING
|
||||
share/doc/yle-dl/README.fi
|
Loading…
x
Reference in New Issue
Block a user