blob: c78ee80425109411ca1c0346478cb8315ff8c037 [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
16revision 1
17
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 \
34 port:py${python.version}-pyccn \
35 port:py${python.version}-gst-python \
36 port:gst-ffmpeg \
37 port:gst-plugins-bad \
38 port:gst-plugins-base \
39 port:gst-plugins-gl \
40 port:gst-plugins-gl \
41 port:gst-plugins-gl \
42 port:gst-plugins-good \
43 port:gst-plugins-ugly \
44 port:gst-rtsp-server \
45 port:gstreamer
46}
47
48patchfiles fix-play.patch
49
50build {
51 reinplace "s|/usr/bin/env python|${python.bin}|g" ${worksrcpath}/videostreaming/play.py
52}
53
54destroot {
55 xinstall -d ${destroot}${python.pkgd}/ndnvideo
56 xinstall -d ${destroot}${python.pkgd}/ndnvideo/pytimecode
57
58 # system "echo ${worksrcpath}"
59 eval xinstall [glob ${worksrcpath}/videostreaming/*.py] ${destroot}${python.pkgd}/ndnvideo
60 eval xinstall [glob ${worksrcpath}/videostreaming/pytimecode/*.py] ${destroot}${python.pkgd}/ndnvideo/pytimecode
61
62 xinstall ${worksrcpath}/videostreaming/play.py ${destroot}${prefix}/bin/ndnplay
63}
64