Ticket #27273: id3v2-0.1.12.diff
File id3v2-0.1.12.diff, 2.2 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago) |
---|
-
files/patch-Makefile.diff
1 --- Makefile 2004-05-04 13:33:53.000000000 -05002 +++ Makefile 2009-06-25 01:00:03.000000000 -05003 @@ -7,10 +7,10 @@4 LDFLAGS+= -L${PREFIX}/lib/5 6 id3v2: convert.o list.o id3v2.o genre.o7 - c++ ${LDFLAGS} -pedantic -Wall -lz -lid3 -g -o $@ $^8 + $(CXX) ${LDFLAGS} -pedantic -Wall -lz -lid3 -g -o $@ $^9 10 create_map: create_map.o11 - c++ -Wall -g -o $@ $^12 + $(CXX) -Wall -g -o $@ $^13 14 install: all15 install -c -s id3v2 ${PREFIX}/bin/id3v2 -
Portfile
3 3 PortSystem 1.0 4 4 5 5 name id3v2 6 version 0.1.11 7 revision 1 6 version 0.1.12 8 7 categories audio 9 8 maintainers nordist.net:brent 9 license LGPL-2.1 10 10 11 description ID3v2 editing tool 11 12 long_description A command line editor for ID3v2 tags, based on id3lib. \ 12 13 Written by Myers Carpenter. 13 14 homepage http://id3v2.sourceforge.net/ 14 15 platforms darwin 15 16 master_sites sourceforge 16 checksums md5 68afc3827cf01501dfb22949f901f1d8 17 18 checksums sha1 8f42153b2f53098c221da2e8fe42170e727cd9ad \ 19 rmd160 084f90bea49cc8fb93acb5f78bb55602c5358ac5 20 17 21 depends_lib port:id3lib 18 22 19 universal_variant no 20 21 patchfiles patch-Makefile.diff 22 post-patch{23 reinplace "s|/usr/local|${prefix}|g" "${worksrcpath}/Makefile"23 variant universal {} 24 if {[variant_isset universal]} { 25 set archflags ${configure.universal_cxxflags} 26 } else { 27 set archflags ${configure.cxx_archflags} 24 28 } 25 29 26 30 use_configure no 27 31 28 build.env CXX=${configure.cxx} 32 pre-build { 33 # The distfile contains compiled Linux objects and binaries. 34 system "cd ${worksrcpath} && make clean" 35 } 29 36 30 destroot { 31 xinstall -m 755 ${worksrcpath}/id3v2 ${destroot}${prefix}/bin/ 32 xinstall -m 644 ${worksrcpath}/id3v2.1 ${destroot}${prefix}/share/man/man1/ 33 } 37 build.args CXX="${configure.cxx} ${archflags}" \ 38 PREFIX=${prefix} 39 40 destroot.args PREFIX=${destroot}${prefix} 41 42 livecheck.type regex 43 livecheck.url http://sourceforge.net/projects/${name}/files/ 44 livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}