[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] ac3dec standalone install





Hello,

the current ac3dec CVS version cannot be installed as standalone lib.
This patch fixes this, without changing anything in the libac3/libao
directory.
OMS is not affected by this patch.
Although the patch is a bit hacky, it seems to be the only
solution without canging the OMS Makefiles.

If noone has objections I like to apply the patch in the next days.

regards,

Martin

diff -ru ac3dec.old/Makefile.am ac3dec/Makefile.am
--- ac3dec.old/Makefile.am	Sun Jun 18 22:40:56 2000
+++ ac3dec/Makefile.am	Sun Feb  4 19:35:24 2001
@@ -15,4 +15,16 @@
        
 
 SUBDIRS = libao libac3 tools test .
+# now we install everything for a standalone ac3dec library
+lib_LTLIBRARIES    = libac3.la libao.la
+libac3_la_SOURCES  = $(NONE)
+libac3_la_LIBADD   = libac3/*.lo
+libao_la_SOURCES   = $(NONE)
+libao_la_LIBADD    = libao/*.lo
+BUILT_SOURCES      = ac3.h audio_out.h
+ac3.h		:
+		cp libac3/ac3.h .
+audio_out.h	:
+		cp libao/audio_out.h .
+pkginclude_HEADERS = ac3.h audio_out.h
 
diff -ru ac3dec.old/configure.in ac3dec/configure.in
--- ac3dec.old/configure.in	Fri Oct 27 07:20:13 2000
+++ ac3dec/configure.in	Sun Feb  4 19:35:42 2001
@@ -23,6 +23,10 @@
 ppc-*) AC_DEFINE(__ppc__);;
 *) echo "$host is not currently supported by ac3dec"; exit 1;;
 esac
+dnl here the substitution for a standalone installation
+NONE="dummy.c"
+echo "static int none() {};" >dummy.c
+AC_SUBST(NONE)
 
 builtin(include, libao/configure.incl)
 builtin(include, libac3/configure.incl)