source: trunk/dports/net/mediaserv/Portfile @ 143375

Last change on this file since 143375 was 143375, checked in by mojca@…, 4 years ago

mediaserv: whitespace and checksums only

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 143375 2015-12-11 19:32:20Z mojca@macports.org $
3
4PortSystem          1.0
5
6name                mediaserv
7version             0.05
8revision            3
9categories          net
10license             Artistic-1
11maintainers         nomaintainer
12platforms           darwin
13
14description         On-demand transcoding server for videos, targetting \
15                    the Nokia Internet Tablets.
16long_description    mediaserv is a simple web server which exposes video \
17                    content on your desktop PC or server to your Nokia \
18                    Internet Tablet (such as the Nokia 770, Nokia N800 or \
19                    Nokia N810).  When content is accessed, it transcodes \
20                    the video "Just In Time" and streams it to your \
21                    Internet Tablet.  RSS feeds for directories are also \
22                    provided, listing the most recently updated content, \
23                    and compatible with Nokia's beta Video Center \
24                    application.
25
26homepage            http://mediautils.garage.maemo.org/mediaserv.html
27master_sites        https://garage.maemo.org/frs/download.php/2632
28
29checksums           rmd160  78e824cd8b28effc58543e75aaf63e2cdc958941 \
30                    sha256  4c5ed56e63752adb21e136c4ae0de2a3ed712aaa6f77f08984eed261ed26ecea
31
32worksrcdir          ${name}
33
34depends_run         port:perl5.16 \
35                    port:p5.16-libwww-perl \
36                    port:p5.16-xml-rss \
37                    port:p5.16-datetime \
38                    port:tablet-encode \
39                    path:bin/mplayer:mplayer-devel
40
41patchfiles          patch-install_sh.diff \
42                    patch-mediaserv.diff
43
44post-patch {
45    reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.16|g" \
46        ${worksrcpath}/mediaserv
47    reinplace "s|@@STATIC_DIR@@|${prefix}/share/${name}|g" \
48        ${worksrcpath}/install.sh
49}
50
51use_configure       no
52
53build               {}
54
55destroot {
56    xinstall -m 755 ${worksrcpath}/mediaserv \
57        ${destroot}${prefix}/bin/mediaserv
58    xinstall -m 755 ${worksrcpath}/install.sh \
59        ${destroot}${prefix}/bin/mediaserv-install
60    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
61    eval xinstall -m 644 [glob ${worksrcpath}/resources/*] \
62        ${destroot}${prefix}/share/${name}
63    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
64    xinstall -m 644 ${worksrcpath}/README.txt \
65        ${destroot}${prefix}/share/doc/${name}/README.txt
66}
67
68livecheck.type      regex
69livecheck.url       https://garage.maemo.org/frs/?group_id=455
70livecheck.regex     mediaserv-\(\[0-9\]+\.\[0-9\]+\)\.tar\.gz
Note: See TracBrowser for help on using the repository browser.