diff --git a/audio/libid3tag/Makefile b/audio/libid3tag/Makefile index 4adb49ebe14..c0caf75c84f 100644 --- a/audio/libid3tag/Makefile +++ b/audio/libid3tag/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.11 2009/06/04 18:03:13 naddy Exp $ +# $OpenBSD: Makefile,v 1.12 2009/07/20 15:36:19 naddy Exp $ COMMENT= library for reading ID3 tags DISTNAME= libid3tag-0.15.1b -PKGNAME= ${DISTNAME}p2 +PKGNAME= ${DISTNAME}p3 SHARED_LIBS += id3tag 4.0 # .3.0 CATEGORIES= audio @@ -29,4 +29,11 @@ SEPARATE_BUILD= simple CONFIGURE_STYLE=gnu CONFIGURE_ARGS= ${CONFIGURE_SHARED} +post-patch: + cp ${FILESDIR}/id3tag.pc.in ${WRKSRC} + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig + ${INSTALL_DATA} ${WRKBUILD}/id3tag.pc ${PREFIX}/lib/pkgconfig + .include diff --git a/audio/libid3tag/files/id3tag.pc.in b/audio/libid3tag/files/id3tag.pc.in new file mode 100644 index 00000000000..fa12b407d6d --- /dev/null +++ b/audio/libid3tag/files/id3tag.pc.in @@ -0,0 +1,15 @@ +# $OpenBSD: id3tag.pc.in,v 1.1 2009/07/20 15:36:19 naddy Exp $ +# libid3tag pkg-config source file + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: id3tag +Description: ID3 tag reading library +Version: @VERSION@ +Requires: +Conflicts: +Libs: -L${libdir} -lid3tag -lz +Cflags: -I${includedir} diff --git a/audio/libid3tag/patches/patch-configure b/audio/libid3tag/patches/patch-configure new file mode 100644 index 00000000000..cf6f8c3fa24 --- /dev/null +++ b/audio/libid3tag/patches/patch-configure @@ -0,0 +1,12 @@ +$OpenBSD: patch-configure,v 1.1 2009/07/20 15:36:19 naddy Exp $ +--- configure.orig Thu Feb 5 10:35:25 2004 ++++ configure Mon Jun 22 17:34:37 2009 +@@ -20017,7 +20017,7 @@ test -n "$optimize" && CFLAGS="$CFLAGS $optimize" + test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile" + + +- ac_config_files="$ac_config_files Makefile msvc++/Makefile libid3tag.list" ++ ac_config_files="$ac_config_files Makefile msvc++/Makefile libid3tag.list id3tag.pc" + + cat >confcache <<\_ACEOF + # This file is a shell script that caches the results of configure diff --git a/audio/libid3tag/pkg/PLIST b/audio/libid3tag/pkg/PLIST index ad8379365d2..19425b54e4f 100644 --- a/audio/libid3tag/pkg/PLIST +++ b/audio/libid3tag/pkg/PLIST @@ -1,6 +1,8 @@ -@comment $OpenBSD: PLIST,v 1.3 2004/09/18 10:26:55 espie Exp $ +@comment $OpenBSD: PLIST,v 1.4 2009/07/20 15:36:19 naddy Exp $ @conflict mad-* +%%SHARED%% include/id3tag.h lib/libid3tag.a lib/libid3tag.la -%%SHARED%% +lib/pkgconfig/ +lib/pkgconfig/id3tag.pc