summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libmad')
-rw-r--r--media-libs/libmad/files/mad.pc2
-rw-r--r--media-libs/libmad/libmad-0.15.1b-r10.ebuild (renamed from media-libs/libmad/libmad-0.15.1b-r9.ebuild)4
2 files changed, 4 insertions, 2 deletions
diff --git a/media-libs/libmad/files/mad.pc b/media-libs/libmad/files/mad.pc
index 14a66f552582..329276cdeec6 100644
--- a/media-libs/libmad/files/mad.pc
+++ b/media-libs/libmad/files/mad.pc
@@ -6,6 +6,6 @@ includedir=${prefix}/include
Name: mad
Description: MPEG Audio Decoder
Requires:
-Version: 0.15.0b
+Version: %VERSION%
Libs: -L${libdir} -lmad -lm
Cflags: -I${includedir}
diff --git a/media-libs/libmad/libmad-0.15.1b-r9.ebuild b/media-libs/libmad/libmad-0.15.1b-r10.ebuild
index 856aa42c5f77..285cf5467f48 100644
--- a/media-libs/libmad/libmad-0.15.1b-r9.ebuild
+++ b/media-libs/libmad/libmad-0.15.1b-r10.ebuild
@@ -67,7 +67,9 @@ multilib_src_install() {
# This file must be updated with each version update
insinto /usr/$(get_libdir)/pkgconfig
- doins "${FILESDIR}"/mad.pc
+ cp "${FILESDIR}/mad.pc" "${S}"
+ sed -i "s/%VERSION%/${PV}/g" "${S}/mad.pc"
+ doins "${S}/mad.pc"
# Use correct libdir in pkgconfig file
sed -e "s:^libdir.*:libdir=${EPREFIX}/usr/$(get_libdir):" \