add pkg-config support for vorbis
authorcalc <calc@xiph.org>
Thu, 11 Sep 2003 20:42:26 +0000 (20:42 +0000)
committercalc <calc@xiph.org>
Thu, 11 Sep 2003 20:42:26 +0000 (20:42 +0000)
svn path=/trunk/vorbis/; revision=5333

Makefile.am
configure.in
vorbis.pc.in [new file with mode: 0644]
vorbisenc.pc.in [new file with mode: 0644]
vorbisfile.pc.in [new file with mode: 0644]

index 8844c3b..b99f500 100644 (file)
@@ -7,8 +7,11 @@ SUBDIRS = lib include doc examples win32 debian vq
 m4datadir = $(datadir)/aclocal
 m4data_DATA = vorbis.m4
 
-EXTRA_DIST = HACKING todo.txt macos macosx \
-       autogen.sh libvorbis.spec vorbis.m4
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = vorbis.pc vorbisenc.pc vorbisfile.pc
+
+EXTRA_DIST = HACKING todo.txt macos macosx autogen.sh libvorbis.spec \
+       vorbis.m4 vorbis.pc.in vorbisenc.pc.in vorbisfile.pc.in
 
 dist-hook:
        rm -rf `find $(distdir)/macos -name CVS`
index 44a80cf..a2075d8 100644 (file)
@@ -204,4 +204,4 @@ AC_SUBST(DEBUG)
 AC_SUBST(PROFILE)
 AC_SUBST(pthread_lib)
 
-AC_OUTPUT(Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile include/Makefile include/vorbis/Makefile examples/Makefile win32/Makefile debian/Makefile vq/Makefile)
+AC_OUTPUT(Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile include/Makefile include/vorbis/Makefile examples/Makefile win32/Makefile debian/Makefile vq/Makefile vorbis.pc vorbisenc.pc vorbisfile.pc)
diff --git a/vorbis.pc.in b/vorbis.pc.in
new file mode 100644 (file)
index 0000000..259abe7
--- /dev/null
@@ -0,0 +1,14 @@
+# libvorbis pkg-config source file
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: vorbis
+Description: vorbis is the primary Ogg Vorbis library
+Version: @VERSION@
+Requires: ogg
+Conflicts:
+Libs: -L${libdir} -lvorbis -lm
+Cflags: -I${includedir}
diff --git a/vorbisenc.pc.in b/vorbisenc.pc.in
new file mode 100644 (file)
index 0000000..1d90095
--- /dev/null
@@ -0,0 +1,14 @@
+# libvorbisenc pkg-config source file
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: vorbisenc
+Description: vorbisenc is a library that provides a convenient API for setting up an encoding environment using libvorbis
+Version: @VERSION@
+Requires: vorbis
+Conflicts:
+Libs: -L${libdir} -lvorbisenc
+Cflags: -I${includedir}
diff --git a/vorbisfile.pc.in b/vorbisfile.pc.in
new file mode 100644 (file)
index 0000000..b4387f2
--- /dev/null
@@ -0,0 +1,14 @@
+# libvorbisfile pkg-config source file
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: vorbisfile
+Description: vorbisfile is a library that provides a convenient high-level API for decoding and basic manipulation of all Vorbis I audio streams
+Version: @VERSION@
+Requires: vorbis
+Conflicts:
+Libs: -L${libdir} -lvorbisfile
+Cflags: -I${includedir}