source: trunk/dports/audio/libid3tag/Portfile

Last change on this file was 82565, checked in by ryandesign@…, 6 years ago

libid3tag: simplify setting archflags

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 82565 2011-08-15 20:37:25Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name            libid3tag
7version         0.15.1b
8revision        2
9categories      audio
10license         GPL-2+
11maintainers     nomaintainer
12description     id3 tag manipulation library
13long_description        libid3tag is a library for reading and \
14        writing ID3 tags, bothID3v1 \
15        and the various versions of ID3v2.
16platforms       darwin freebsd
17homepage        http://www.underbit.com/products/mad/
18master_sites    ftp://ftp.mars.org/pub/mpeg/ sourceforge:mad
19checksums       sha1    4d867e8a8436e73cd7762fe0e85958e35f1e4306 \
20                rmd160  31a69b8ad7684aefdb675acc8ebf89bd6f432095
21depends_lib     port:zlib
22
23patchfiles      patch-id3tag.diff
24post-patch {
25        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/id3tag.pc
26        reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/id3tag.pc
27}
28
29post-configure {
30    reinplace "s|CC -dynamiclib|CC -dynamiclib [get_canonical_archflags]|g" ${worksrcpath}/libtool
31}
32
33post-destroot {
34        xinstall -m 0644 ${worksrcpath}/id3tag.pc \
35                ${destroot}${prefix}/lib/pkgconfig
36}
37
38livecheck.type  regex
39livecheck.url   ftp://ftp.mars.org/pub/mpeg/
40livecheck.regex "${name}-(\\d+(?:\\.\\d+)*\[a-z\])${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.