[25282] trunk/dports/audio/libmad
source_changes at macosforge.org
source_changes at macosforge.org
Wed May 16 21:05:01 PDT 2007
Revision: 25282
http://trac.macosforge.org/projects/macports/changeset/25282
Author: markd at macports.org
Date: 2007-05-16 21:05:00 -0700 (Wed, 16 May 2007)
Log Message:
-----------
Add a mad.pc file for pkg-config.
Modified Paths:
--------------
trunk/dports/audio/libmad/Portfile
Added Paths:
-----------
trunk/dports/audio/libmad/files/
trunk/dports/audio/libmad/files/mad.pc.in
Modified: trunk/dports/audio/libmad/Portfile
===================================================================
--- trunk/dports/audio/libmad/Portfile 2007-05-17 03:50:53 UTC (rev 25281)
+++ trunk/dports/audio/libmad/Portfile 2007-05-17 04:05:00 UTC (rev 25282)
@@ -3,6 +3,7 @@
PortSystem 1.0
name libmad
version 0.15.1b
+revision 1
categories audio
maintainers nomaintainer at macports.org
description MPEG Audio Decoder
@@ -15,3 +16,19 @@
platforms darwin freebsd
master_sites ftp://ftp.mars.org/pub/mpeg/
checksums md5 1be543bc30c56fb6bea1d7bf6a64e66c
+
+depends_lib port:pkgconfig
+
+post-patch {
+ file copy -force ${filespath}/mad.pc.in ${worksrcpath}/mad.pc
+
+ reinplace "s|%PREFIX%|${prefix}|g" \
+ ${worksrcpath}/mad.pc
+ reinplace "s|%VERSION%|${version}|g" \
+ ${worksrcpath}/mad.pc
+}
+
+post-destroot {
+ file mkdir ${destroot}${prefix}/lib/pkgconfig
+ file copy -force ${worksrcpath}/mad.pc ${destroot}${prefix}/lib/pkgconfig
+}
Added: trunk/dports/audio/libmad/files/mad.pc.in
===================================================================
--- trunk/dports/audio/libmad/files/mad.pc.in (rev 0)
+++ trunk/dports/audio/libmad/files/mad.pc.in 2007-05-17 04:05:00 UTC (rev 25282)
@@ -0,0 +1,11 @@
+prefix=%PREFIX%
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: mad
+Description: MPEG Audio Decoder
+Requires:
+Version: 0.15.1b
+Libs: -L${libdir} -lmad -lm
+Cflags: -I${includedir}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070516/97e2b9a2/attachment.html
More information about the macports-changes
mailing list