source: trunk/dports/audio/mp3info/Portfile

Last change on this file was 139469, checked in by jmr@…, 2 years ago

ncurses: update to 6.0, rev bump dependents due to new ABI

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 139469 2015-08-18 01:10:17Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            mp3info
7version         0.8.5a
8revision        1
9categories      audio
10license         GPL-2+
11platforms       darwin
12maintainers     nomaintainer
13description     MP3 information tool
14
15long_description \
16    A small utility to read and write TAG info, as well as retrieve the MP3 \
17    Header info. Included is a command-line interface and a gtk-UI.
18
19homepage        http://www.ibiblio.org/mp3info/
20master_sites    sunsite:apps/sound/mp3-utils/${name}
21extract.suffix  .tgz
22
23checksums       md5 cb7b619a10a40aaac2113b87bb2b2ea2 \
24                sha1 54df29eb6c2e581899affc12be698b0a71d91ca6 \
25                rmd160 898b566d9ba2f352949d061d991d92f2c8996ec3
26
27depends_lib     port:ncurses
28
29livecheck.type  regex
30livecheck.url   ${homepage}
31livecheck.regex "The current version of MP3Info is (\\d+(?:\\.\\d+)*\[a-z\]*) --"
32
33patchfiles      patch-mp3tech.c.diff
34
35configure {
36   reinplace -E "s|(LIBS =)|\\1 ${configure.ldflags}|" ${worksrcpath}/Makefile
37}
38
39build.target    mp3info
40build.args-append   CC=${configure.cc} \
41                    CXX=${configure.cxx} \
42                    CPP=${configure.cpp}
43
44destroot.target     install-mp3info
45destroot.args       INSTALL=/usr/bin/install
46destroot.destdir    prefix=${destroot}${prefix} \
47                    mandir=${destroot}${prefix}/share/man/man1
48
49post-destroot {
50    set docdir ${prefix}/share/doc/${name}-${version}
51    xinstall -d ${destroot}${docdir}
52    xinstall -m 0644 -W ${worksrcpath} ChangeLog LICENSE README mp3info.txt mp3info.html \
53        ${destroot}${docdir}
54}
55
56variant gtk description {Enable GTK user interface} {
57    depends_build-append    port:pkgconfig
58    depends_lib-append      port:gtk1
59
60    build.target            all
61    destroot.target         install
62}
63
64variant universal {
65    post-configure {
66        reinplace -E "/^CFLAGS/s|\$| [join ${configure.universal_cflags} " "]|" ${worksrcpath}/Makefile
67    }
68}
Note: See TracBrowser for help on using the repository browser.