Ticket #13619: Portfile

File Portfile, 2.4 KB (added by ecronin (Eric Cronin), 16 years ago)
Line 
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
5PortSystem 1.0
6
7name            mediaserv
8version         0.05
9categories      net
10maintainers     gizmolabs.org:ecronin
11platforms       darwin
12description     On-demand transcoding server for videos, targetting \
13                the Nokia Internet Tablets.
14long_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.
24homepage        http://mediautils.garage.maemo.org/mediaserv.html
25master_sites    https://garage.maemo.org/frs/download.php/2632
26livecheck.check regex
27livecheck.url   https://garage.maemo.org/frs/?group_id=455
28livecheck.regex mediaserv-\(\[0-9\]+\.\[0-9\]+\)\.tar\.gz
29checksums       md5 94c300a0e95c55dae42a61f77e4e41fe \
30                sha1 53aa0d2d287bdf82c232e7e944d9212453dc47b0 \
31                rmd160 78e824cd8b28effc58543e75aaf63e2cdc958941
32worksrcdir      ${name}
33
34depends_run     port:perl5.8 port:p5-libwww-perl port:p5-xml-rss \
35                port:p5-datetime port:mplayer port:tablet-encode
36
37patchfiles      patch-mediaserv.diff patch-install_sh.diff
38post-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
45configure       {}
46
47build           {}
48
49destroot {
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}