source: trunk/dports/net/mediaserv/Portfile

Last change on this file was 151890, checked in by mojca@…, 15 months ago

mediaserv: switch to perl5.24 (#52081)

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