shithub: sox

Download patch

ref: ae9950f6d0523d17328ead6766650a608432a9ed
parent: c76e2756e6174b8ada17eda00afb5df38f747fd0
author: evilynux <evilynux>
date: Thu Feb 14 00:02:22 EST 2008

Initial pkg-config support.

--- a/ChangeLog
+++ b/ChangeLog
@@ -21,6 +21,7 @@
 
   o Command line support for multiple file comments.  (robs)
   o Added soxi utility to extract/display file header fields.  (robs)
+  o Added pkg-config support. (Pascal Giard)
 
 Bug fixes:
 
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,7 +10,10 @@
 # man pages are not considered to be sources, so need to add "dist_"
 # prefix to ensure they are added to the distribution.
 dist_man_MANS = sox.1 soxi.1 soxeffect.7 soxformat.7 soxexam.7 libsox.3
-EXTRA_DIST = sox.txt soxi.txt soxeffect.txt soxformat.txt soxexam.txt libsox.txt CMakeLists.txt
+EXTRA_DIST = sox.txt soxi.txt soxeffect.txt soxformat.txt soxexam.txt libsox.txt CMakeLists.txt sox.pc.in
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = sox.pc
 
 play.1 rec.1: sox.1
 	$(RM) $@ && $(LN_S) $< $@
--- a/configure.ac
+++ b/configure.ac
@@ -412,7 +412,7 @@
 
 dnl Generate output files.
 AX_CREATE_STDINT_H(src/soxstdint.h)
-AC_CONFIG_FILES(Makefile src/Makefile libgsm/Makefile lpc10/Makefile)
+AC_CONFIG_FILES(Makefile src/Makefile libgsm/Makefile lpc10/Makefile sox.pc)
 AC_OUTPUT
 
 if test "$found_libgsm" = "yes"; then
--- /dev/null
+++ b/sox.pc.in
@@ -1,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: SoX
+Description: Audio file format and effects library
+Version: @VERSION@
+URL: http://sox.sourceforge.net
+Libs: -L${libdir} -lsox -lsfx
+Libs.private: @LIBS@
+Cflags: -I${includedir}/sox