Ticket #64083: Portfile.2

File Portfile.2, 2.5 KB (added by RobK88, 2 years ago)

Working 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
4PortGroup           makefile 1.0
5
6name                m2vrequantiser
7version             1.1
8categories          multimedia
9platforms           darwin
10license             GPL-2+
11maintainers         {hotmail.com:amtor @RobK88} \
12                    openmaintainer
13
14description         M2VRequantiser requantizes MPEG-2 streams without \
15                    recompressing.
16
17long_description    M2VRequantiser accepts the raw MPEG2 \
18                    video data (not VOB) from the standard input \
19                    and writes the recompressed frames to the \
20                    standard output. \
21                    M2VRequantiser represents a good replacement for \
22                    tcrequant, an obsolete utility provided by some \
23                    versions of the transcode suite.
24
25homepage            https://launchpad.net/m2vrequantiser
26master_sites        https://launchpad.net/m2vrequantiser/trunk/${version}/+download/:tagone\
27                    debian:d/${name}:tagtwo
28
29distfiles           M2VRequantiser-v${version}.tar.gz:tagone \
30                    ${name}_${version}-5.debian.tar.xz:tagtwo
31
32distname            M2VRequantiser-v${version}
33worksrcdir          M2VRequantiser-v${version}
34
35checksums           ${distname}.tar.gz \
36                         rmd160  d66b15c0949930849d50e6a9176c16618e21daa4 \
37                         sha256  e537c7894edc4ae446d71e8f597aa1fcec85c3e76748ba0aaa289cc667c94209 \
38                         size    34472 \
39                    ${name}_${version}-5.debian.tar.xz \
40                         rmd160  7efb849fd3c61b4167cb810dbebb16dba9db834a \
41                         sha256  ef67b57442b3c2f21bb195885390497707e2abc5a54491f595f3fe8b6ff18a53 \
42                         size    4948 \
43
44depends_extract     port:gnutar\
45                    port:xz
46
47post-extract {
48system -W ${workpath} "xz -dc [shellescape ${distpath}/${name}_${version}-5.debian.tar.xz] | gnutar --no-same-owner -xf - "
49}
50
51patchfiles          1001-makefile.patch \
52                    1002-argc_sigsegv.patch \
53                    1003-typedef.patch
54
55destroot {
56    xinstall -m 755 ${worksrcpath}/M2VRequantiser ${destroot}${prefix}/bin
57    xinstall -m 755 ${workpath}/debian/manpage/${name}.1 ${destroot}${prefix}/share/man/man1
58    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
59    xinstall -m 644 ${worksrcpath}/README.txt ${destroot}${prefix}/share/doc/${name}
60}