summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/libid3tag/Makefile13
-rw-r--r--audio/libid3tag/PLIST3
-rw-r--r--audio/libid3tag/files/id3tag.pc.in11
-rw-r--r--audio/libmad/Makefile12
-rw-r--r--audio/libmad/PLIST3
-rw-r--r--audio/libmad/files/mad.pc.in11
6 files changed, 49 insertions, 4 deletions
diff --git a/audio/libid3tag/Makefile b/audio/libid3tag/Makefile
index b6edb826321..ef7d8674457 100644
--- a/audio/libid3tag/Makefile
+++ b/audio/libid3tag/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2003/07/17 21:22:40 grant Exp $
+# $NetBSD: Makefile,v 1.6 2003/12/17 03:23:46 simonb Exp $
#
DISTNAME= libid3tag-0.15.0b
+PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mad/} \
ftp://ftp.mars.org/pub/mpeg/
@@ -17,5 +18,15 @@ GNU_CONFIGURE= YES
USE_LIBTOOL= YES
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+post-build:
+ ${SED} -e 's,@PREFIX@,${PREFIX},g' \
+ -e 's,@VERSION@,${PKGVERSION},g' \
+ < ${FILESDIR}/id3tag.pc.in > ${WRKDIR}/id3tag.pc
+
+post-install:
+ ${INSTALL_DATA} ${WRKDIR}/id3tag.pc ${PREFIX}/lib/pkgconfig
+
+
+.include "../../devel/pkgconfig/buildlink2.mk"
.include "../../devel/zlib/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/audio/libid3tag/PLIST b/audio/libid3tag/PLIST
index 4a05951e508..f1ef146a136 100644
--- a/audio/libid3tag/PLIST
+++ b/audio/libid3tag/PLIST
@@ -1,7 +1,8 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2003/07/10 08:33:10 adam Exp $
+@comment $NetBSD: PLIST,v 1.2 2003/12/17 03:23:46 simonb Exp $
include/id3tag.h
lib/libid3tag.a
lib/libid3tag.la
lib/libid3tag.so
lib/libid3tag.so.2
lib/libid3tag.so.2.0
+lib/pkgconfig/id3tag.pc
diff --git a/audio/libid3tag/files/id3tag.pc.in b/audio/libid3tag/files/id3tag.pc.in
new file mode 100644
index 00000000000..c494d0849ab
--- /dev/null
+++ b/audio/libid3tag/files/id3tag.pc.in
@@ -0,0 +1,11 @@
+prefix=@PREFIX@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: id3tag
+Description: ID3 tag library
+Requires:
+Version: @VERSION@
+Libs: -Wl,-R${libdir} -L${libdir} -lid3tag -lz
+Cflags: -I${includedir}
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}