1 | # $Id: Portfile 513 2007-12-18 03:46:05Z ecronin $ |
---|
2 | |
---|
3 | # -*- 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 |
---|
4 | |
---|
5 | PortSystem 1.0 |
---|
6 | |
---|
7 | name mediaserv |
---|
8 | version 0.05 |
---|
9 | categories net |
---|
10 | maintainers gizmolabs.org:ecronin |
---|
11 | platforms darwin |
---|
12 | description On-demand transcoding server for videos, targetting \ |
---|
13 | the Nokia Internet Tablets. |
---|
14 | long_description \ |
---|
15 | mediaserv is a simple web server which exposes video \ |
---|
16 | content on your desktop PC or server to your Nokia \ |
---|
17 | Internet Tablet (such as the Nokia 770, Nokia N800 or \ |
---|
18 | Nokia N810). When content is accessed, it transcodes \ |
---|
19 | the video "Just In Time" and streams it to your \ |
---|
20 | Internet Tablet. RSS feeds for directories are also \ |
---|
21 | provided, listing the most recently updated content, \ |
---|
22 | and compatible with Nokia's beta Video Center \ |
---|
23 | application. |
---|
24 | homepage http://mediautils.garage.maemo.org/mediaserv.html |
---|
25 | master_sites https://garage.maemo.org/frs/download.php/2632 |
---|
26 | livecheck.check regex |
---|
27 | livecheck.url https://garage.maemo.org/frs/?group_id=455 |
---|
28 | livecheck.regex mediaserv-\(\[0-9\]+\.\[0-9\]+\)\.tar\.gz |
---|
29 | checksums md5 94c300a0e95c55dae42a61f77e4e41fe \ |
---|
30 | sha1 53aa0d2d287bdf82c232e7e944d9212453dc47b0 \ |
---|
31 | rmd160 78e824cd8b28effc58543e75aaf63e2cdc958941 |
---|
32 | worksrcdir ${name} |
---|
33 | |
---|
34 | depends_run port:perl5.8 port:p5-libwww-perl port:p5-xml-rss \ |
---|
35 | port:p5-datetime port:mplayer port:tablet-encode |
---|
36 | |
---|
37 | patchfiles patch-mediaserv.diff patch-install_sh.diff |
---|
38 | post-patch { |
---|
39 | reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" \ |
---|
40 | ${worksrcpath}/mediaserv |
---|
41 | reinplace "s|@@STATIC_DIR@@|${prefix}/share/${name}|g" \ |
---|
42 | ${worksrcpath}/install.sh |
---|
43 | } |
---|
44 | |
---|
45 | configure {} |
---|
46 | |
---|
47 | build {} |
---|
48 | |
---|
49 | destroot { |
---|
50 | xinstall -m 755 ${worksrcpath}/mediaserv \ |
---|
51 | ${destroot}${prefix}/bin/mediaserv |
---|
52 | xinstall -m 755 ${worksrcpath}/install.sh \ |
---|
53 | ${destroot}${prefix}/bin/mediaserv-install |
---|
54 | xinstall -m 755 -d ${destroot}${prefix}/share/${name} |
---|
55 | eval xinstall -m 644 [glob ${worksrcpath}/resources/*] \ |
---|
56 | ${destroot}${prefix}/share/${name} |
---|
57 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
58 | xinstall -m 644 ${worksrcpath}/README.txt \ |
---|
59 | ${destroot}${prefix}/share/doc/${name}/README.txt |
---|
60 | } |
---|