summaryrefslogtreecommitdiff
path: root/audio/libmad
diff options
context:
space:
mode:
authorsimonb <simonb@pkgsrc.org>2003-12-17 03:23:45 +0000
committersimonb <simonb@pkgsrc.org>2003-12-17 03:23:45 +0000
commita04d5ac21ced0c4143eaba3f40ff962aab520fa2 (patch)
treef4ef0d2025f53ac3100954bb59498d7d15644cef /audio/libmad
parent84371b29b0b49d58029f57206983150ed0ee55d2 (diff)
downloadpkgsrc-a04d5ac21ced0c4143eaba3f40ff962aab520fa2.tar.gz
Add a pkgconfig config file. Some other packages require these.
Diffstat (limited to 'audio/libmad')
-rw-r--r--audio/libmad/Makefile12
-rw-r--r--audio/libmad/PLIST3
-rw-r--r--audio/libmad/files/mad.pc.in11
3 files changed, 24 insertions, 2 deletions
diff --git a/audio/libmad/Makefile b/audio/libmad/Makefile
index ff41215ff84..ca02856d4b1 100644
--- a/audio/libmad/Makefile
+++ b/audio/libmad/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2003/07/17 21:22:41 grant Exp $
+# $NetBSD: Makefile,v 1.5 2003/12/17 03:23:45 simonb Exp $
#
DISTNAME= libmad-0.15.0b
+PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mad/} \
ftp://ftp.mars.org/pub/mpeg/
@@ -17,4 +18,13 @@ GNU_CONFIGURE= YES
USE_LIBTOOL= YES
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+post-build:
+ ${SED} -e 's,@PREFIX@,${PREFIX},g' \
+ -e 's,@VERSION@,${PKGVERSION},g' \
+ < ${FILESDIR}/mad.pc.in > ${WRKDIR}/mad.pc
+
+post-install:
+ ${INSTALL_DATA} ${WRKDIR}/mad.pc ${PREFIX}/lib/pkgconfig
+
+.include "../../devel/pkgconfig/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/audio/libmad/PLIST b/audio/libmad/PLIST
index 49558f152b5..5bc2c161e9a 100644
--- a/audio/libmad/PLIST
+++ b/audio/libmad/PLIST
@@ -1,7 +1,8 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2003/07/10 08:21:44 adam Exp $
+@comment $NetBSD: PLIST,v 1.2 2003/12/17 03:23:45 simonb Exp $
include/mad.h
lib/libmad.a
lib/libmad.la
lib/libmad.so
lib/libmad.so.2
lib/libmad.so.2.0
+lib/pkgconfig/mad.pc
diff --git a/audio/libmad/files/mad.pc.in b/audio/libmad/files/mad.pc.in
new file mode 100644
index 00000000000..c0ba62e10b2
--- /dev/null
+++ b/audio/libmad/files/mad.pc.in
@@ -0,0 +1,11 @@
+prefix=@PREFIX@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: mad
+Description: MPEG Audio Decoder
+Requires:
+Version: @VERSION@
+Libs: -Wl,-R${libdir} -L${libdir} -lmad -lm
+Cflags: -I${includedir}