blob: 7312c8969db25454b8988300aa7c545381b2a4bf [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
Alexander Afanasyev4c8fb122013-07-14 13:19:20 -07008github.setup remap ndnvideo ee2df117eb386fd91ff343b11790b7e8b656e561
9checksums rmd160 56c96068fed580776b4a0d93db706f58497b1568 \
10 sha256 1810b2d1d6474517fa1e67e4dbc2ef244071b2e5d701937e3242ee0f9bbc3931
Alexander Afanasyev6368d432012-10-10 15:11:30 -070011
12name py-ndnvideo
13homepage https://github.com/remap/ndnvideo
14license Unknown
15# version
Alexander Afanasyev4c8fb122013-07-14 13:19:20 -070016revision 4
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 Afanasyev4c8fb122013-07-14 13:19:20 -070034 port:py${python.version}-ndn \
Alexander Afanasyev7b997f72013-03-20 10:09:31 -070035 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