mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 09:03:48 +00:00
64249d4372
svn path=/nixpkgs/trunk/; revision=21144
118 lines
3.7 KiB
Diff
118 lines
3.7 KiB
Diff
diff -ruN libmad-0.15.1b.orig/Makefile.am libmad-0.15.1b/Makefile.am
|
|
--- libmad-0.15.1b.orig/Makefile.am 2004-02-17 02:02:03.000000000 +0000
|
|
+++ libmad-0.15.1b/Makefile.am 2005-08-25 12:08:04.000000000 +0000
|
|
@@ -33,9 +33,12 @@
|
|
minimad_INCLUDES =
|
|
minimad_LDADD = libmad.la
|
|
|
|
-EXTRA_DIST = mad.h.sed \
|
|
+EXTRA_DIST = mad.h.sed mad.pc.in \
|
|
CHANGES COPYRIGHT CREDITS README TODO VERSION
|
|
|
|
+pkgconfigdir = $(libdir)/pkgconfig
|
|
+pkgconfig_DATA= mad.pc
|
|
+
|
|
exported_headers = version.h fixed.h bit.h timer.h stream.h frame.h \
|
|
synth.h decoder.h
|
|
|
|
diff -ruN libmad-0.15.1b.orig/Makefile.in libmad-0.15.1b/Makefile.in
|
|
--- libmad-0.15.1b.orig/Makefile.in 2004-02-17 02:33:23.000000000 +0000
|
|
+++ libmad-0.15.1b/Makefile.in 2005-08-25 12:09:34.000000000 +0000
|
|
@@ -14,6 +14,8 @@
|
|
|
|
@SET_MAKE@
|
|
|
|
+pkgconfigdir = $(libdir)/pkgconfig
|
|
+pkgconfig_DATA = mad.pc
|
|
|
|
SOURCES = $(libmad_la_SOURCES) $(EXTRA_libmad_la_SOURCES) $(minimad_SOURCES)
|
|
|
|
@@ -43,7 +45,7 @@
|
|
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
|
$(srcdir)/config.h.in $(srcdir)/libmad.list.in \
|
|
$(top_srcdir)/configure COPYING INSTALL TODO config.guess \
|
|
- config.sub depcomp install-sh ltmain.sh missing mkinstalldirs
|
|
+ config.sub depcomp install-sh ltmain.sh missing mkinstalldirs mad.pc.in
|
|
subdir = .
|
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
|
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
|
@@ -53,7 +55,7 @@
|
|
configure.lineno configure.status.lineno
|
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
|
CONFIG_HEADER = config.h
|
|
-CONFIG_CLEAN_FILES = libmad.list
|
|
+CONFIG_CLEAN_FILES = libmad.list mad.pc
|
|
am__installdirs = $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
|
|
libLTLIBRARIES_INSTALL = $(INSTALL)
|
|
LTLIBRARIES = $(lib_LTLIBRARIES)
|
|
@@ -218,7 +220,7 @@
|
|
minimad_SOURCES = minimad.c
|
|
minimad_INCLUDES =
|
|
minimad_LDADD = libmad.la
|
|
-EXTRA_DIST = mad.h.sed \
|
|
+EXTRA_DIST = mad.h.sed mad.pc.in \
|
|
CHANGES COPYRIGHT CREDITS README TODO VERSION
|
|
|
|
exported_headers = version.h fixed.h bit.h timer.h stream.h frame.h \
|
|
@@ -298,6 +300,28 @@
|
|
rm -f stamp-h1
|
|
touch $@
|
|
|
|
+mad.pc: $(top_builddir)/config.status mad.pc.in
|
|
+ cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
+
|
|
+install-pkgconfigDATA: $(pkgconfig_DATA)
|
|
+ @$(NORMAL_INSTALL)
|
|
+ $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
|
|
+ @list='$(pkgconfig_DATA)'; for p in $$list; do \
|
|
+ if test -f $(srcdir)/$$p; then \
|
|
+ echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgconfigdir)/$$p"; \
|
|
+ $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgconfigdir)/$$p; \
|
|
+ else if test -f $$p; then \
|
|
+ echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgconfigdir)/$$p"; \
|
|
+ $(INSTALL_DATA) $$p $(DESTDIR)$(pkgconfigdir)/$$p; \
|
|
+ fi; fi; \
|
|
+ done
|
|
+
|
|
+uninstall-pkgconfigDATA:
|
|
+ @$(NORMAL_UNINSTALL)
|
|
+ list='$(pkgconfig_DATA)'; for p in $$list; do \
|
|
+ rm -f $(DESTDIR)$(pkgconfigdir)/$$p; \
|
|
+ done
|
|
+
|
|
distclean-hdr:
|
|
-rm -f config.h stamp-h1
|
|
libmad.list: $(top_builddir)/config.status $(srcdir)/libmad.list.in
|
|
@@ -726,7 +750,7 @@
|
|
|
|
info-am:
|
|
|
|
-install-data-am: install-includeHEADERS
|
|
+install-data-am: install-includeHEADERS install-pkgconfigDATA
|
|
|
|
install-exec-am: install-libLTLIBRARIES
|
|
|
|
@@ -757,7 +781,7 @@
|
|
ps-am:
|
|
|
|
uninstall-am: uninstall-includeHEADERS uninstall-info-am \
|
|
- uninstall-libLTLIBRARIES
|
|
+ uninstall-libLTLIBRARIES install-pkgconfigDATA
|
|
|
|
uninstall-info: uninstall-info-recursive
|
|
|
|
diff -ruN libmad-0.15.1b.orig/mad.pc.in libmad-0.15.1b/mad.pc.in
|
|
--- libmad-0.15.1b.orig/mad.pc.in 1970-01-01 00:00:00.000000000 +0000
|
|
+++ libmad-0.15.1b/mad.pc.in 2005-08-25 12:08:04.000000000 +0000
|
|
@@ -0,0 +1,10 @@
|
|
+prefix=@prefix@
|
|
+exec_prefix=@exec_prefix@
|
|
+libdir=@libdir@
|
|
+includedir=@includedir@
|
|
+
|
|
+Name: MAD
|
|
+Description: libmad - MPEG audio decoder library
|
|
+Version: @VERSION@
|
|
+Libs: -L${libdir} -lmad
|
|
+Cflags:
|