libmad.patch 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. diff -ruN libmad-0.15.1b.orig/Makefile.am libmad-0.15.1b/Makefile.am
  2. --- libmad-0.15.1b.orig/Makefile.am 2004-02-17 02:02:03.000000000 +0000
  3. +++ libmad-0.15.1b/Makefile.am 2005-08-25 12:08:04.000000000 +0000
  4. @@ -33,9 +33,12 @@
  5. minimad_INCLUDES =
  6. minimad_LDADD = libmad.la
  7. -EXTRA_DIST = mad.h.sed \
  8. +EXTRA_DIST = mad.h.sed mad.pc.in \
  9. CHANGES COPYRIGHT CREDITS README TODO VERSION
  10. +pkgconfigdir = $(libdir)/pkgconfig
  11. +pkgconfig_DATA= mad.pc
  12. +
  13. exported_headers = version.h fixed.h bit.h timer.h stream.h frame.h \
  14. synth.h decoder.h
  15. diff -ruN libmad-0.15.1b.orig/Makefile.in libmad-0.15.1b/Makefile.in
  16. --- libmad-0.15.1b.orig/Makefile.in 2004-02-17 02:33:23.000000000 +0000
  17. +++ libmad-0.15.1b/Makefile.in 2005-08-25 12:09:34.000000000 +0000
  18. @@ -14,6 +14,8 @@
  19. @SET_MAKE@
  20. +pkgconfigdir = $(libdir)/pkgconfig
  21. +pkgconfig_DATA = mad.pc
  22. SOURCES = $(libmad_la_SOURCES) $(EXTRA_libmad_la_SOURCES) $(minimad_SOURCES)
  23. @@ -43,7 +45,7 @@
  24. $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
  25. $(srcdir)/config.h.in $(srcdir)/libmad.list.in \
  26. $(top_srcdir)/configure COPYING INSTALL TODO config.guess \
  27. - config.sub depcomp install-sh ltmain.sh missing mkinstalldirs
  28. + config.sub depcomp install-sh ltmain.sh missing mkinstalldirs mad.pc.in
  29. subdir = .
  30. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  31. am__aclocal_m4_deps = $(top_srcdir)/configure.ac
  32. @@ -53,7 +55,7 @@
  33. configure.lineno configure.status.lineno
  34. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  35. CONFIG_HEADER = config.h
  36. -CONFIG_CLEAN_FILES = libmad.list
  37. +CONFIG_CLEAN_FILES = libmad.list mad.pc
  38. am__installdirs = $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
  39. libLTLIBRARIES_INSTALL = $(INSTALL)
  40. LTLIBRARIES = $(lib_LTLIBRARIES)
  41. @@ -218,7 +220,7 @@
  42. minimad_SOURCES = minimad.c
  43. minimad_INCLUDES =
  44. minimad_LDADD = libmad.la
  45. -EXTRA_DIST = mad.h.sed \
  46. +EXTRA_DIST = mad.h.sed mad.pc.in \
  47. CHANGES COPYRIGHT CREDITS README TODO VERSION
  48. exported_headers = version.h fixed.h bit.h timer.h stream.h frame.h \
  49. @@ -298,6 +300,28 @@
  50. rm -f stamp-h1
  51. touch $@
  52. +mad.pc: $(top_builddir)/config.status mad.pc.in
  53. + cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
  54. +
  55. +install-pkgconfigDATA: $(pkgconfig_DATA)
  56. + @$(NORMAL_INSTALL)
  57. + $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
  58. + @list='$(pkgconfig_DATA)'; for p in $$list; do \
  59. + if test -f $(srcdir)/$$p; then \
  60. + echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgconfigdir)/$$p"; \
  61. + $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgconfigdir)/$$p; \
  62. + else if test -f $$p; then \
  63. + echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgconfigdir)/$$p"; \
  64. + $(INSTALL_DATA) $$p $(DESTDIR)$(pkgconfigdir)/$$p; \
  65. + fi; fi; \
  66. + done
  67. +
  68. +uninstall-pkgconfigDATA:
  69. + @$(NORMAL_UNINSTALL)
  70. + list='$(pkgconfig_DATA)'; for p in $$list; do \
  71. + rm -f $(DESTDIR)$(pkgconfigdir)/$$p; \
  72. + done
  73. +
  74. distclean-hdr:
  75. -rm -f config.h stamp-h1
  76. libmad.list: $(top_builddir)/config.status $(srcdir)/libmad.list.in
  77. @@ -726,7 +750,7 @@
  78. info-am:
  79. -install-data-am: install-includeHEADERS
  80. +install-data-am: install-includeHEADERS install-pkgconfigDATA
  81. install-exec-am: install-libLTLIBRARIES
  82. @@ -757,7 +781,7 @@
  83. ps-am:
  84. uninstall-am: uninstall-includeHEADERS uninstall-info-am \
  85. - uninstall-libLTLIBRARIES
  86. + uninstall-libLTLIBRARIES install-pkgconfigDATA
  87. uninstall-info: uninstall-info-recursive
  88. diff -ruN libmad-0.15.1b.orig/mad.pc.in libmad-0.15.1b/mad.pc.in
  89. --- libmad-0.15.1b.orig/mad.pc.in 1970-01-01 00:00:00.000000000 +0000
  90. +++ libmad-0.15.1b/mad.pc.in 2005-08-25 12:08:04.000000000 +0000
  91. @@ -0,0 +1,10 @@
  92. +prefix=@prefix@
  93. +exec_prefix=@exec_prefix@
  94. +libdir=@libdir@
  95. +includedir=@includedir@
  96. +
  97. +Name: MAD
  98. +Description: libmad - MPEG audio decoder library
  99. +Version: @VERSION@
  100. +Libs: -L${libdir} -lmad
  101. +Cflags: