SOURCES: audacity-system-libs.patch (NEW) - system twolame, soundto...

qboosh qboosh at pld-linux.org
Fri Dec 29 21:45:48 CET 2006


Author: qboosh                       Date: Fri Dec 29 20:45:48 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- system twolame,soundtouch,libresample

---- Files affected:
SOURCES:
   audacity-system-libs.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/audacity-system-libs.patch
diff -u /dev/null SOURCES/audacity-system-libs.patch:1.1
--- /dev/null	Fri Dec 29 21:45:48 2006
+++ SOURCES/audacity-system-libs.patch	Fri Dec 29 21:45:43 2006
@@ -0,0 +1,78 @@
+--- audacity-src-1.3.2-beta/acinclude.m4.orig	2006-12-29 17:01:36.794372000 +0100
++++ audacity-src-1.3.2-beta/acinclude.m4	2006-12-29 17:23:30.465234287 +0100
+@@ -48,12 +48,22 @@
+                 [Define if libtwolame (MP2 export) support should be enabled])
+    fi
+ 
+-   dnl Libtwolame is so new, we should really use our patched local version for now
+-   dnl FIXME: Might want to change this at some point of time in the future...
+-   LIBTWOLAME_SYSTEM_AVAILABLE="no"
+-
+    dnl see if libtwolame is available locally
+ 
++   PKG_CHECK_MODULES(TWOLAME, twolame,
++		     twolame_available_system="yes",
++		     twolame_available_system="no")
++
++   if test "x$twolame_available_system" = "xyes" ; then
++      LIBTWOLAME_SYSTEM_AVAILABLE="yes"
++      LIBTWOLAME_SYSTEM_LIBS="$TWOLAME_LIBS"
++      LIBTWOLAME_SYSTEM_CXXFLAGS="$TWOLAME_CFLAGS"
++      AC_MSG_NOTICE([Twolame libraries are available as system libraries])
++   else
++      LIBTWOLAME_SYSTEM_AVAILABLE="no"
++      AC_MSG_NOTICE([Twolame libraries are NOT available as system libraries])
++   fi
++
+    AC_CHECK_FILE(${srcdir}/lib-src/twolame/libtwolame/twolame.h,
+                  twolame_h_found="yes",
+                  twolame_h_found="no")
+@@ -88,11 +98,19 @@
+ 
+    dnl see if soundtouch is installed on the system
+ 
+-   dnl ... TODO: I don't know if stock, unmodified soundtouch is
+-   dnl suitable for audacity, so I don't allow it
+-
+-   LIBSOUNDTOUCH_SYSTEM_AVAILABLE="no"
+-
++   PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch-1.0,
++		     soundtouch_available_system="yes",
++		     soundtouch_available_system="no")
++
++   if test "x$soundtouch_available_system" = "xyes" ; then
++      LIBSOUNDTOUCH_SYSTEM_AVAILABLE="yes"
++      LIBSOUNDTOUCH_SYSTEM_LIBS="$SOUNDTOUCH_LIBS"
++      LIBSOUNDTOUCH_SYSTEM_CXXFLAGS="$SOUNDTOUCH_CFLAGS"
++      AC_MSG_NOTICE([SoundTouch libraries are available as system libraries])
++   else
++      LIBID3TAG_SYSTEM_AVAILABLE="no"
++      AC_MSG_NOTICE([SoundTouch libraries are NOT available as system libraries])
++   fi
+    dnl see if libresample is available locally
+ 
+    AC_CHECK_FILE(${srcdir}/lib-src/soundtouch/include/SoundTouch.h,
+@@ -133,7 +151,22 @@
+ 
+    dnl ... but libresample isn't generally installed as a system library...
+ 
+-   LIBRESAMPLE_SYSTEM_AVAILABLE="no"
++   AC_CHECK_LIB(resample, resample_open,
++                libresample_found="yes",
++                libresample_found="no")
++
++   AC_CHECK_HEADER(libresample.h,
++                   libresample_h_found="yes",
++                   libresample_h_found="no")
++
++   if test "x$libresample_found" = "xyes" && test "x$libresample_h_found" = "xyes" ; then
++      LIBRESAMPLE_SYSTEM_AVAILABLE="yes"
++      LIBRESAMPLE_SYSTEM_LIBS=-lresample
++      AC_MSG_NOTICE([Libresample libraries are available as system libraries])
++   else
++      LIBRESAMPLE_SYSTEM_AVAILABLE="no"
++      AC_MSG_NOTICE([Libresample libraries are NOT available as system libraries])
++   fi
+ 
+    dnl see if libresample is available locally
+ 
================================================================


More information about the pld-cvs-commit mailing list