diff options
author | simonb <simonb@pkgsrc.org> | 2003-12-17 03:23:45 +0000 |
---|---|---|
committer | simonb <simonb@pkgsrc.org> | 2003-12-17 03:23:45 +0000 |
commit | e3bf471f24746af6f1053151f934855569b7e50c (patch) | |
tree | f4ef0d2025f53ac3100954bb59498d7d15644cef /audio/libmad | |
parent | 009490a63b5c18a55a25667ea7519cf239c51206 (diff) | |
download | pkgsrc-e3bf471f24746af6f1053151f934855569b7e50c.tar.gz |
Add a pkgconfig config file. Some other packages require these.
Diffstat (limited to 'audio/libmad')
-rw-r--r-- | audio/libmad/Makefile | 12 | ||||
-rw-r--r-- | audio/libmad/PLIST | 3 | ||||
-rw-r--r-- | audio/libmad/files/mad.pc.in | 11 |
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} |