Modified: trunk/dports/audio/libid3tag/Portfile (68351 => 68352)
--- trunk/dports/audio/libid3tag/Portfile 2010-06-02 00:47:56 UTC (rev 68351)
+++ trunk/dports/audio/libid3tag/Portfile 2010-06-02 00:52:48 UTC (rev 68352)
@@ -5,6 +5,7 @@
name libid3tag
version 0.15.1b
+revision 1
categories audio
maintainers nomaintainer
description id3 tag manipulation library
@@ -17,12 +18,23 @@
checksums sha1 4d867e8a8436e73cd7762fe0e85958e35f1e4306
depends_lib port:zlib
+patchfiles patch-id3tag.diff
+post-patch {
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/id3tag.pc
+ reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/id3tag.pc
+}
+
post-configure {
if {[variant_isset universal]} {
reinplace "s|CC -dynamiclib|CC -dynamiclib ${configure.universal_ldflags}|g" ${worksrcpath}/libtool
}
}
+post-destroot {
+ xinstall -m 0644 ${worksrcpath}/id3tag.pc \
+ ${destroot}${prefix}/lib/pkgconfig
+}
+
livecheck.type regex
livecheck.url ftp://ftp.mars.org/pub/mpeg/
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*\[a-z\])${extract.suffix}"
Added: trunk/dports/audio/libid3tag/files/patch-id3tag.diff (0 => 68352)
--- trunk/dports/audio/libid3tag/files/patch-id3tag.diff (rev 0)
+++ trunk/dports/audio/libid3tag/files/patch-id3tag.diff 2010-06-02 00:52:48 UTC (rev 68352)
@@ -0,0 +1,13 @@
+--- id3tag.pc.empty 1969-12-31 19:00:00.000000000 -0500
++++ id3tag.pc 2010-05-31 21:01:48.000000000 -0400
+@@ -0,0 +1,10 @@
++prefix=@PREFIX@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/lib
++includedir=${prefix}/include
++
++Name: id3tag
++Description: ID3 tag manipulation library
++Version: @VERSION@
++Libs: -L${libdir} -lid3tag
++Cflags: -I${includedir}