1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name subtitleripper |
---|
5 | version 0.3-4 |
---|
6 | categories multimedia |
---|
7 | platforms darwin |
---|
8 | maintainers shortround.net:stephen |
---|
9 | description DVD subtitle ripper |
---|
10 | long_description If you want to convert DVD subtitles into text format \ |
---|
11 | (e.g. subrip format) or VobSub format this program could be useful for you. |
---|
12 | |
---|
13 | homepage http://subtitleripper.sourceforge.net |
---|
14 | extract.suffix .tgz |
---|
15 | master_sites sourceforge:subtitleripper |
---|
16 | worksrcdir ${name} |
---|
17 | checksums md5 c0bd49a88f667c68c4430ad25bbed510 \ |
---|
18 | sha1 d93ff3578dd5f722c8f4ef16bc0903eec5781a0d \ |
---|
19 | rmd160 141355960773ab2dfe3782522858273d197cf797 |
---|
20 | |
---|
21 | depends_lib port:netpbm \ |
---|
22 | port:transcode |
---|
23 | |
---|
24 | use_configure no |
---|
25 | |
---|
26 | pre-build { |
---|
27 | # Add paths to MacPorts |
---|
28 | reinplace "s|LIBS := -lm|LIBS := -L${destroot}${prefix} -lm|g" ${worksrcpath}/Makefile |
---|
29 | reinplace "s|INCLUDES :=|INCLUDES := -I${destroot}${prefix}|g" ${worksrcpath}/Makefile |
---|
30 | } |
---|
31 | |
---|
32 | destroot { |
---|
33 | xinstall -m 755 -d ${destroot}${prefix}/bin |
---|
34 | xinstall -m 755 ${worksrcpath}/subtitle2pgm ${destroot}${prefix}/bin |
---|
35 | xinstall -m 755 ${worksrcpath}/srttool ${destroot}${prefix}/bin |
---|
36 | xinstall -m 755 ${worksrcpath}/subtitle2vobsub ${destroot}${prefix}/bin |
---|
37 | xinstall -m 755 ${worksrcpath}/vobsub2pgm ${destroot}${prefix}/bin |
---|
38 | } |
---|
39 | |
---|