1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-10 14:47:07 +01:00

Update libvamp to 2.5.

This commit is contained in:
lllucius
2013-10-31 06:33:59 +00:00
parent c8aa505879
commit 6fef6dd8b4
77 changed files with 6254 additions and 3598 deletions

View File

@@ -1,5 +1,5 @@
AC_INIT(vamp-plugin-sdk, 2.0, cannam@all-day-breakfast.com)
AC_INIT(vamp-plugin-sdk, 2.5, cannam@all-day-breakfast.com)
AC_CONFIG_SRCDIR(vamp/vamp.h)
AC_PROG_CXX
@@ -14,67 +14,32 @@ fi
AC_SEARCH_LIBS([dlopen],[dl])
TARGETS="plugins"
dnl to start with, example plug-ins. Next bit will build a list
dnl of other things like static and dynamic SDKs
dnl See if the user wants to build static SDK
AC_ARG_ENABLE(static, [AS_HELP_STRING([--enable-static],
[enable building of static linked vamp SDK [default=no]])],
SSDK_ARGUMENT=$enableval,
SSDK_ARGUMENT="no")
if test "x$SSDK_ARGUMENT" = "xyes" ; then
TARGETS="$TARGETS sdkstatic"
fi
dnl See if the user wants to build shared SDK
AC_ARG_ENABLE(shared, [AS_HELP_STRING([--enable-shared],
[enable building of dynamic linked vamp SDK [default=yes]])],
DSDK_ARGUMENT=$enableval,
DSDK_ARGUMENT="yes")
if test "x$DSDK_ARGUMENT" = "xyes" ; then
TARGETS="$TARGETS sdk"
fi
dnl See if the user wants to build static SDK
AC_ARG_ENABLE(static-sdk, [AS_HELP_STRING([--enable-static-sdk],
[enable building of static linked vamp SDK [default=no]])],
SSDK_ARGUMENT=$enableval,
SSDK_ARGUMENT="no")
if test "x$SSDK_ARGUMENT" = "xyes" ; then
TARGETS="$TARGETS sdkstatic"
fi
dnl See if the user wants to build programs
dnl See if the user wants to build programs, or just the SDK
AC_ARG_ENABLE(programs, [AS_HELP_STRING([--enable-programs],
[enable building of example host and RDF generator [default=yes]])],
PROGS_ARGUMENT=$enableval,
PROGS_ARGUMENT="yes")
dnl if the user wants progs, then we need to check for libsndfile
if test "x$PROGS_ARGUMENT" = "xyes" ; then
PKG_CHECK_MODULES([SNDFILE],[sndfile],
have_sndfile="yes", have_sndfile="no")
PKG_CHECK_MODULES([SNDFILE],[sndfile],have_sndfile="yes",have_sndfile="no")
if test "x$have_sndfile" = "xyes" ; then
dnl all good, build everything (test depends on host)
TARGETS="$TARGETS host rdfgen test"
dnl all good, build everything
TARGETS="sdk plugins host rdfgen test"
else
dnl no libsndfile - can't build host!
AC_MSG_ERROR([libsndfile not found - cannot build example Vamp host!])
AC_MSG_ERROR([libsndfile not found - cannot build example Vamp host!
If you don't want to build the host, configure with --disable-programs.])
fi
else
dnl user didn't want programs - so we won't build them
TARGETS="sdk plugins"
fi
AC_SUBST(SNDFILE_CFLAGS)
AC_SUBST(SNDFILE_LIBS)
AC_SUBST(TARGETS)
changequote(,)dnl
if test "x$GCC" = "xyes"; then
case " $CXXFLAGS " in
@@ -84,5 +49,6 @@ if test "x$GCC" = "xyes"; then
fi
changequote([,])dnl
AC_SUBST(CXXFLAGS)
AC_OUTPUT([Makefile])