Ticket #27273: id3v2-0.1.12.diff

File id3v2-0.1.12.diff, 2.2 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)

proposed patch

  • files/patch-Makefile.diff

     
    1 --- Makefile    2004-05-04 13:33:53.000000000 -0500
    2 +++ Makefile    2009-06-25 01:00:03.000000000 -0500
    3 @@ -7,10 +7,10 @@
    4  LDFLAGS+=      -L${PREFIX}/lib/
    5  
    6  id3v2: convert.o list.o id3v2.o genre.o
    7 -       c++ ${LDFLAGS} -pedantic -Wall -lz -lid3 -g -o $@ $^
    8 +       $(CXX) ${LDFLAGS} -pedantic -Wall -lz -lid3 -g -o $@ $^
    9  
    10  create_map: create_map.o
    11 -       c++ -Wall -g -o $@ $^
    12 +       $(CXX) -Wall -g -o $@ $^
    13  
    14  install: all
    15         install -c -s id3v2 ${PREFIX}/bin/id3v2
  • Portfile

     
    33PortSystem 1.0
    44
    55name                    id3v2
    6 version                 0.1.11
    7 revision                1
     6version                 0.1.12
    87categories              audio
    98maintainers             nordist.net:brent
     9license                 LGPL-2.1
     10
    1011description             ID3v2 editing tool
    1112long_description A command line editor for ID3v2 tags, based on id3lib. \
    1213                                Written by Myers Carpenter.
    1314homepage                http://id3v2.sourceforge.net/
    1415platforms               darwin
    1516master_sites    sourceforge
    16 checksums               md5 68afc3827cf01501dfb22949f901f1d8
     17
     18checksums               sha1    8f42153b2f53098c221da2e8fe42170e727cd9ad \
     19                                rmd160  084f90bea49cc8fb93acb5f78bb55602c5358ac5
     20
    1721depends_lib             port:id3lib
    1822
    19 universal_variant no
    20 
    21 patchfiles              patch-Makefile.diff
    22 post-patch {
    23         reinplace "s|/usr/local|${prefix}|g" "${worksrcpath}/Makefile" 
     23variant universal {}
     24if {[variant_isset universal]} {
     25        set archflags ${configure.universal_cxxflags}
     26} else {
     27        set archflags ${configure.cxx_archflags}
    2428}
    2529
    2630use_configure   no
    2731
    28 build.env               CXX=${configure.cxx}
     32pre-build {
     33        # The distfile contains compiled Linux objects and binaries.
     34        system "cd ${worksrcpath} && make clean"
     35}
    2936
    30 destroot {
    31         xinstall -m 755 ${worksrcpath}/id3v2 ${destroot}${prefix}/bin/
    32         xinstall -m 644 ${worksrcpath}/id3v2.1 ${destroot}${prefix}/share/man/man1/
    33 }
     37build.args              CXX="${configure.cxx} ${archflags}" \
     38                                PREFIX=${prefix}
     39
     40destroot.args   PREFIX=${destroot}${prefix}
     41
     42livecheck.type  regex
     43livecheck.url   http://sourceforge.net/projects/${name}/files/
     44livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}