Ticket #28097: Portfile

File Portfile, 1.5 KB (added by stephen@…, 13 years ago)

Portfile

Line 
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
3PortSystem         1.0
4name               subtitleripper
5version            0.3-4
6categories         multimedia
7platforms          darwin
8maintainers        shortround.net:stephen
9description        DVD subtitle ripper
10long_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
13homepage           http://subtitleripper.sourceforge.net
14extract.suffix     .tgz
15master_sites       sourceforge:subtitleripper
16worksrcdir         ${name}
17checksums          md5 c0bd49a88f667c68c4430ad25bbed510 \
18                   sha1 d93ff3578dd5f722c8f4ef16bc0903eec5781a0d \
19                   rmd160 141355960773ab2dfe3782522858273d197cf797
20
21depends_lib        port:netpbm \
22                   port:transcode
23
24use_configure      no
25
26pre-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
32destroot {
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