blob: 27e8300e61b62a02999d05cd44a5d3c4ccd42a0a [file] [log] [blame]
Alexander Afanasyev6368d432012-10-10 15:11:30 -07001# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem 1.0
5PortGroup github 1.0
6PortGroup python 1.0
7
8github.setup remap ndnvideo a7cd19d43cee16e85fcfdb4ead15dcb7075b3eeb
9checksums rmd160 d4ebdcb8c252a863c29058956bd5e13f17dd5e68 \
10 sha256 8890d6eb24c720e40e45e6e2d4b446f41b40e1b6f4ff98fe908cba004e2c77d0
11
12name py-ndnvideo
13homepage https://github.com/remap/ndnvideo
14license Unknown
15# version
Alexander Afanasyev7b997f72013-03-20 10:09:31 -070016revision 2
Alexander Afanasyev6368d432012-10-10 15:11:30 -070017
18python.versions 27
19python.default_version 27
20
21categories net ccnx
22platforms darwin
23maintainers ucla.edu:alexander.afanasyev
24
25description A video toolkit it publishes and plays live video in a segmented stream \
26 that also seeks from buffer in CCNx repo
27
28# long_description
29
30use_configure false
31
32if {$subport != $name} {
33 depends_lib-append port:ccnx \
Alexander Afanasyev7b997f72013-03-20 10:09:31 -070034 port:py${python.version}-pyccn \
35 port:py${python.version}-gst-python \
36 port:gstreamer010-gst-ffmpeg \
37 port:gstreamer010-gst-plugins-bad \
38 port:gstreamer010-gst-plugins-base \
39 port:gstreamer010-gst-plugins-gl \
40 port:gstreamer010-gst-plugins-good \
41 port:gstreamer010-gst-plugins-ugly \
42 port:gstreamer010-gst-rtsp \
43 port:gstreamer010
Alexander Afanasyev6368d432012-10-10 15:11:30 -070044}
Alexander Afanasyev7b997f72013-03-20 10:09:31 -070045# port:gstreamer010-gst-rtsp-server \
Alexander Afanasyev6368d432012-10-10 15:11:30 -070046
47patchfiles fix-play.patch
48
49build {
50 reinplace "s|/usr/bin/env python|${python.bin}|g" ${worksrcpath}/videostreaming/play.py
51}
52
53destroot {
54 xinstall -d ${destroot}${python.pkgd}/ndnvideo
55 xinstall -d ${destroot}${python.pkgd}/ndnvideo/pytimecode
56
57 # system "echo ${worksrcpath}"
58 eval xinstall [glob ${worksrcpath}/videostreaming/*.py] ${destroot}${python.pkgd}/ndnvideo
59 eval xinstall [glob ${worksrcpath}/videostreaming/pytimecode/*.py] ${destroot}${python.pkgd}/ndnvideo/pytimecode
60
61 xinstall ${worksrcpath}/videostreaming/play.py ${destroot}${prefix}/bin/ndnplay
62}
63