source: trunk/dports/multimedia/mpgtx/Portfile

Last change on this file was 110768, checked in by jmr@…, 4 years ago

mpgtx: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
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# $Id: Portfile 110768 2013-09-05 14:56:38Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                mpgtx
7version             1.3.1
8categories          multimedia
9license             GPL-2
10platforms           darwin
11maintainers         nomaintainer
12
13description         MPEG audio/video/system file toolbox
14
15long_description    The MPEG ToolboX can currently split and join MPEG-1 \
16                    video files and most MPEG audio files, fetch detailed \
17                    informations from MPEG-1 and MPEG-2 streams, demultiplex \
18                    MPEG-1 and MPEG-2 files (System layer, program layer and \
19                    Transport layer), add, remove and edit ID3 tags from MP3 \
20                    files and rename MP3 files according to their ID3 tags. \
21                    DivX is not yet supported, neither MPEG-4 and splitting \
22                    and joining MPEG-2 video files is experimental (read 'will \
23                    work only in your wildest dreams').
24
25homepage            http://mpgtx.sourceforge.net/
26master_sites        sourceforge:project/mpgtx/mpgtx/${version}
27
28checksums           md5     d628060aa04ad3b40a175bf35f5167cf \
29                    sha1    58b3d18b6dac968e8dd969a7b33c8a8fc31569cd \
30                    rmd160  f39704aef3e2b325d77f48817ecb883ea6a2a029
31
32patchfiles          patch-configure.diff
33
34post-patch {
35    if {[variant_isset universal]} {
36        set archflags ${configure.universal_cflags}
37    } else {
38        set archflags ${configure.cc_archflags}
39    }
40    reinplace "s|@CXX@|${configure.cxx}|g" ${worksrcpath}/configure
41    reinplace "s|@OPTFLAGS@|${configure.optflags}|g" ${worksrcpath}/configure
42    reinplace "s|@CFLAGS@|${configure.cflags} ${archflags}|g" ${worksrcpath}/configure
43    reinplace "s|@LDFLAGS@|${configure.ldflags} ${archflags}|g" ${worksrcpath}/configure
44}
45
46configure.pre_args  --prefix=${destroot}${prefix}
47
48configure.args      --parachute \
49                    --manprefix=${destroot}${prefix}/share
50
51configure.universal_args-delete --disable-dependency-tracking
52
53build.target
54
55post-destroot {
56    xinstall -d ${destroot}${prefix}/share/doc/${name}
57    xinstall -m 644 -W ${worksrcpath} AUTHORS README \
58        ${destroot}${prefix}/share/doc/${name}
59}
60
61platform darwin {
62    patchfiles-append patch-bsd.diff
63}
64platform freebsd {
65    patchfiles-append patch-bsd.diff
66}
Note: See TracBrowser for help on using the repository browser.