1*4882a593SmuzhiyunHere is a patch for adding pkg-config support to libmad.
2*4882a593SmuzhiyunIt would make life a bit easier for distro maintainers if this was applied.
3*4882a593SmuzhiyunIn case you didn't know, pkg-config is a tool for providing LDFLAGS and
4*4882a593SmuzhiyunCFLAGS for packages using shared libraries. It's on freedesktop.org.
5*4882a593SmuzhiyunDebian has already been distributing the pkg-config file mad.pc with
6*4882a593Smuzhiyunlibmad for some time, and people developing on debian (notably xmms2
7*4882a593Smuzhiyundevelopers) have started relying on this support being present, causing
8*4882a593Smuzhiyunsome confusion for people installing from source and on some BSDs which
9*4882a593Smuzhiyundo not provide mad.pc (google: pkgconfig libmad).
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunEMH
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunUpstream-Status: Inappropriate [configuration]
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun--h31gzZEtNLTqOjlF
16*4882a593SmuzhiyunContent-Type: text/plain; charset=us-ascii
17*4882a593SmuzhiyunContent-Disposition: attachment; filename="libmad-0.15.1b-pkgconfig.patch"
18*4882a593Smuzhiyun
19*4882a593Smuzhiyundiff -Naur libmad-0.15.1b.old/configure.ac libmad-0.15.1b/configure.ac
20*4882a593Smuzhiyun--- libmad-0.15.1b.old/configure.ac	2004-01-23 10:41:32.000000000 +0100
21*4882a593Smuzhiyun+++ libmad-0.15.1b/configure.ac	2004-08-07 02:25:24.633462168 +0200
22*4882a593Smuzhiyun@@ -429,5 +429,5 @@
23*4882a593Smuzhiyun dnl AC_SUBST(LTLIBOBJS)
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun AC_CONFIG_FILES([Makefile msvc++/Makefile  \
26*4882a593Smuzhiyun-	libmad.list])
27*4882a593Smuzhiyun+	libmad.list mad.pc])
28*4882a593Smuzhiyun AC_OUTPUT
29*4882a593Smuzhiyundiff -Naur libmad-0.15.1b.old/mad.pc.in libmad-0.15.1b/mad.pc.in
30*4882a593Smuzhiyun--- libmad-0.15.1b.old/mad.pc.in	1970-01-01 01:00:00.000000000 +0100
31*4882a593Smuzhiyun+++ libmad-0.15.1b/mad.pc.in	2004-08-07 02:04:59.617692872 +0200
32*4882a593Smuzhiyun@@ -0,0 +1,14 @@
33*4882a593Smuzhiyun+# libmad pkg-config source file
34*4882a593Smuzhiyun+
35*4882a593Smuzhiyun+prefix=@prefix@
36*4882a593Smuzhiyun+exec_prefix=@exec_prefix@
37*4882a593Smuzhiyun+libdir=@libdir@
38*4882a593Smuzhiyun+includedir=@includedir@
39*4882a593Smuzhiyun+
40*4882a593Smuzhiyun+Name: mad
41*4882a593Smuzhiyun+Description: MPEG Audio Decoder
42*4882a593Smuzhiyun+Version: @VERSION@
43*4882a593Smuzhiyun+Requires:
44*4882a593Smuzhiyun+Conflicts:
45*4882a593Smuzhiyun+Libs: -L${libdir} -lmad -lm
46*4882a593Smuzhiyun+Cflags: -I${includedir}
47*4882a593Smuzhiyundiff -Naur libmad-0.15.1b.old/Makefile.am libmad-0.15.1b/Makefile.am
48*4882a593Smuzhiyun--- libmad-0.15.1b.old/Makefile.am	2004-02-17 03:02:03.000000000 +0100
49*4882a593Smuzhiyun+++ libmad-0.15.1b/Makefile.am	2004-08-07 02:03:19.859858368 +0200
50*4882a593Smuzhiyun@@ -24,6 +24,9 @@
51*4882a593Smuzhiyun SUBDIRS =
52*4882a593Smuzhiyun DIST_SUBDIRS =		msvc++
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun+pkgconfigdir =		$(libdir)/pkgconfig
55*4882a593Smuzhiyun+pkgconfig_DATA =	mad.pc
56*4882a593Smuzhiyun+
57*4882a593Smuzhiyun lib_LTLIBRARIES =	libmad.la
58*4882a593Smuzhiyun include_HEADERS =	mad.h
59*4882a593Smuzhiyun
60*4882a593Smuzhiyun@@ -34,7 +37,8 @@
61*4882a593Smuzhiyun minimad_LDADD =		libmad.la
62*4882a593Smuzhiyun
63*4882a593Smuzhiyun EXTRA_DIST =		mad.h.sed  \
64*4882a593Smuzhiyun-			CHANGES COPYRIGHT CREDITS README TODO VERSION
65*4882a593Smuzhiyun+			CHANGES COPYRIGHT CREDITS README TODO VERSION \
66*4882a593Smuzhiyun+			mad.pc.in
67*4882a593Smuzhiyun
68*4882a593Smuzhiyun exported_headers =	version.h fixed.h bit.h timer.h stream.h frame.h  \
69*4882a593Smuzhiyun 			synth.h decoder.h
70*4882a593Smuzhiyun
71