Ticket #13618: Portfile

File Portfile, 1.7 KB (added by ecronin (Eric Cronin), 17 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            tablet-encode
8version         2.16
9categories      multimedia
10maintainers     gizmolabs.org:ecronin
11platforms       darwin
12description     Transcoding video files for Nokia Internet Tablets
13long_description \
14                As the Nokia Internet Tablets have relatively slow \
15                processors, and relatively little storage space it is \
16                a good idea to "transcode" your videos to a smaller, \
17                more suitable format for watching them.
18homepage        http://mediautils.garage.maemo.org/tablet-encode.html
19master_sites    https://garage.maemo.org/frs/download.php/2853
20livecheck.check regex
21livecheck.url   https://garage.maemo.org/frs/?group_id=455
22livecheck.regex tablet-encode-\(\[0-9\]+\.\[0-9\]+\)\.tar\.gz
23checksums       md5  e737d5bbc3a7b6d369c5c6c5b148cc9b \
24                sha1 e1512feb2ec5d82144872c587f73e0c62e429161 \
25                rmd160 e1785a774f8553c931f1fca74e261b29c1f7bec7
26worksrcdir      ${name}
27
28depends_run     port:perl5.8 port:mplayer
29
30variant gui \
31    description {GTK2 Graphical User Interface} {
32    depends_run-append port:p5-gtk2
33}
34
35post-patch {
36    reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" \
37        ${worksrcpath}/tablet-encode
38}
39
40configure       {}
41
42build           {}
43
44destroot {
45    xinstall -m 755 ${worksrcpath}/tablet-encode \
46        ${destroot}${prefix}/bin/tablet-encode
47    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
48    xinstall -m 644 ${worksrcpath}/README.txt \
49        ${destroot}${prefix}/share/doc/${name}/README.txt
50}