Initial import of akode 2.0.2
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>pull/1/head
commit
2dd1aeb937
@ -0,0 +1,209 @@
|
||||
configure.in:31:AC_SUBST:SHELL:${CONFIG_SHELL-/bin/sh}
|
||||
configure.in:31:AC_SUBST:PATH_SEPARATOR
|
||||
configure.in:31:AC_SUBST:PACKAGE_NAME:m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])
|
||||
configure.in:31:AC_SUBST:PACKAGE_TARNAME:m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])
|
||||
configure.in:31:AC_SUBST:PACKAGE_VERSION:m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])
|
||||
configure.in:31:AC_SUBST:PACKAGE_STRING:m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])
|
||||
configure.in:31:AC_SUBST:PACKAGE_BUGREPORT:m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])
|
||||
configure.in:31:AC_SUBST:exec_prefix:NONE
|
||||
configure.in:31:AC_SUBST:prefix:NONE
|
||||
configure.in:31:AC_SUBST:program_transform_name:s,x,x,
|
||||
configure.in:31:AC_SUBST:bindir:'${exec_prefix}/bin'
|
||||
configure.in:31:AC_SUBST:sbindir:'${exec_prefix}/sbin'
|
||||
configure.in:31:AC_SUBST:libexecdir:'${exec_prefix}/libexec'
|
||||
configure.in:31:AC_SUBST:datadir:'${prefix}/share'
|
||||
configure.in:31:AC_SUBST:sysconfdir:'${prefix}/etc'
|
||||
configure.in:31:AC_SUBST:sharedstatedir:'${prefix}/com'
|
||||
configure.in:31:AC_SUBST:localstatedir:'${prefix}/var'
|
||||
configure.in:31:AC_SUBST:libdir:'${exec_prefix}/lib'
|
||||
configure.in:31:AC_SUBST:includedir:'${prefix}/include'
|
||||
configure.in:31:AC_SUBST:oldincludedir:'/usr/include'
|
||||
configure.in:31:AC_SUBST:infodir:'${prefix}/info'
|
||||
configure.in:31:AC_SUBST:mandir:'${prefix}/man'
|
||||
configure.in:31:AC_SUBST:build_alias
|
||||
configure.in:31:AC_SUBST:host_alias
|
||||
configure.in:31:AC_SUBST:target_alias
|
||||
configure.in:31:AC_SUBST:DEFS
|
||||
configure.in:31:AC_SUBST:ECHO_C
|
||||
configure.in:31:AC_SUBST:ECHO_N
|
||||
configure.in:31:AC_SUBST:ECHO_T
|
||||
configure.in:31:AC_SUBST:LIBS
|
||||
configure.in:34:AC_CONFIG_AUX_DIR:admin
|
||||
configure.in:40:AC_SUBST:build:$ac_cv_build
|
||||
configure.in:40:AC_SUBST:build_cpu:`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`
|
||||
configure.in:40:AC_SUBST:build_vendor:`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`
|
||||
configure.in:40:AC_SUBST:build_os:`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`
|
||||
configure.in:40:AC_SUBST:host:$ac_cv_host
|
||||
configure.in:40:AC_SUBST:host_cpu:`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`
|
||||
configure.in:40:AC_SUBST:host_vendor:`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`
|
||||
configure.in:40:AC_SUBST:host_os:`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`
|
||||
configure.in:40:AC_SUBST:target:$ac_cv_target
|
||||
configure.in:40:AC_SUBST:target_cpu:`echo $ac_cv_target | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`
|
||||
configure.in:40:AC_SUBST:target_vendor:`echo $ac_cv_target | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`
|
||||
configure.in:40:AC_SUBST:target_os:`echo $ac_cv_target | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`
|
||||
configure.in:45:AC_SUBST:INSTALL_PROGRAM
|
||||
configure.in:45:AC_SUBST:INSTALL_SCRIPT
|
||||
configure.in:45:AC_SUBST:INSTALL_DATA
|
||||
configure.in:45:AC_SUBST:CYGPATH_W
|
||||
configure.in:45:AC_SUBST:PACKAGE:kdesupport
|
||||
configure.in:45:AC_SUBST:VERSION:3.3
|
||||
configure.in:45:AC_SUBST:ACLOCAL
|
||||
configure.in:45:AC_SUBST:AUTOCONF
|
||||
configure.in:45:AC_SUBST:AUTOMAKE
|
||||
configure.in:45:AC_SUBST:AUTOHEADER
|
||||
configure.in:45:AC_SUBST:MAKEINFO
|
||||
configure.in:45:AC_SUBST:install_sh
|
||||
configure.in:45:AC_SUBST:STRIP
|
||||
configure.in:45:AC_SUBST:ac_ct_STRIP
|
||||
configure.in:45:AC_SUBST:INSTALL_STRIP_PROGRAM
|
||||
configure.in:45:AC_SUBST:mkdir_p
|
||||
configure.in:45:AC_SUBST:AWK
|
||||
configure.in:45:AC_SUBST:SET_MAKE
|
||||
configure.in:45:AC_SUBST:am__leading_dot
|
||||
configure.in:45:AC_SUBST:AMTAR
|
||||
configure.in:45:AC_SUBST:am__tar
|
||||
configure.in:45:AC_SUBST:am__untar
|
||||
configure.in:56:AC_SUBST:USER_INCLUDES
|
||||
configure.in:56:AC_SUBST:USER_LDFLAGS
|
||||
configure.in:58:AC_SUBST:CONF_FILES
|
||||
configure.in:62:AC_CONFIG_HEADERS:config.h
|
||||
configure.in:66:AC_SUBST:CC
|
||||
configure.in:66:AC_SUBST:CFLAGS
|
||||
configure.in:66:AC_SUBST:LDFLAGS
|
||||
configure.in:66:AC_SUBST:CPPFLAGS
|
||||
configure.in:66:AC_SUBST:CC
|
||||
configure.in:66:AC_SUBST:ac_ct_CC
|
||||
configure.in:66:AC_SUBST:CC
|
||||
configure.in:66:AC_SUBST:ac_ct_CC
|
||||
configure.in:66:AC_SUBST:CC
|
||||
configure.in:66:AC_SUBST:CC
|
||||
configure.in:66:AC_SUBST:ac_ct_CC
|
||||
configure.in:66:AC_SUBST:EXEEXT:$ac_cv_exeext
|
||||
configure.in:66:AC_SUBST:OBJEXT:$ac_cv_objext
|
||||
configure.in:66:AC_SUBST:DEPDIR:"${am__leading_dot}deps"
|
||||
configure.in:66:AC_SUBST:am__include
|
||||
configure.in:66:AC_SUBST:am__quote
|
||||
configure.in:66:AC_SUBST:AMDEP_TRUE
|
||||
configure.in:66:AC_SUBST:AMDEP_FALSE
|
||||
configure.in:66:AC_SUBST:AMDEPBACKSLASH
|
||||
configure.in:66:AC_SUBST:CCDEPMODE:depmode=$am_cv_CC_dependencies_compiler_type
|
||||
configure.in:66:AC_SUBST:am__fastdepCC_TRUE
|
||||
configure.in:66:AC_SUBST:am__fastdepCC_FALSE
|
||||
configure.in:66:AC_SUBST:CPP
|
||||
configure.in:66:AC_SUBST:CPPFLAGS
|
||||
configure.in:66:AC_SUBST:CPP
|
||||
configure.in:66:AC_SUBST:CXX
|
||||
configure.in:66:AC_SUBST:CXXFLAGS
|
||||
configure.in:66:AC_SUBST:LDFLAGS
|
||||
configure.in:66:AC_SUBST:CPPFLAGS
|
||||
configure.in:66:AC_SUBST:CXX
|
||||
configure.in:66:AC_SUBST:ac_ct_CXX
|
||||
configure.in:66:AC_SUBST:CXXDEPMODE:depmode=$am_cv_CXX_dependencies_compiler_type
|
||||
configure.in:66:AC_SUBST:am__fastdepCXX_TRUE
|
||||
configure.in:66:AC_SUBST:am__fastdepCXX_FALSE
|
||||
configure.in:66:AC_SUBST:WOVERLOADED_VIRTUAL
|
||||
configure.in:66:AC_SUBST:HAVE_GCC_VISIBILITY
|
||||
configure.in:66:AC_SUBST:unsermake_enable_pch_TRUE
|
||||
configure.in:66:AC_SUBST:unsermake_enable_pch_FALSE
|
||||
configure.in:66:AC_SUBST:USE_EXCEPTIONS
|
||||
configure.in:66:AC_SUBST:USE_RTTI
|
||||
configure.in:66:AC_SUBST:CXXCPP
|
||||
configure.in:66:AC_SUBST:CPPFLAGS
|
||||
configure.in:66:AC_SUBST:CXXCPP
|
||||
configure.in:66:AC_SUBST:NOOPT_CXXFLAGS
|
||||
configure.in:66:AC_SUBST:NOOPT_CFLAGS
|
||||
configure.in:66:AC_SUBST:ENABLE_PERMISSIVE_FLAG
|
||||
configure.in:66:AC_SUBST:LDFLAGS_AS_NEEDED
|
||||
configure.in:66:AC_SUBST:LDFLAGS_NEW_DTAGS
|
||||
configure.in:66:AC_SUBST:KDE_USE_FINAL_TRUE
|
||||
configure.in:66:AC_SUBST:KDE_USE_FINAL_FALSE
|
||||
configure.in:66:AC_SUBST:KDE_USE_CLOSURE_TRUE
|
||||
configure.in:66:AC_SUBST:KDE_USE_CLOSURE_FALSE
|
||||
configure.in:66:AC_SUBST:KDE_NO_UNDEFINED
|
||||
configure.in:66:AC_SUBST:KDE_USE_NMCHECK_TRUE
|
||||
configure.in:66:AC_SUBST:KDE_USE_NMCHECK_FALSE
|
||||
configure.in:81:AC_SUBST:libdir:"$libdir"
|
||||
configure.in:81:AC_SUBST:EGREP
|
||||
configure.in:81:AC_SUBST:LN_S:$as_ln_s
|
||||
configure.in:81:AC_SUBST:ECHO
|
||||
configure.in:81:AC_SUBST:AR
|
||||
configure.in:81:AC_SUBST:ac_ct_AR
|
||||
configure.in:81:AC_SUBST:RANLIB
|
||||
configure.in:81:AC_SUBST:ac_ct_RANLIB
|
||||
configure.in:81:AC_SUBST:STRIP
|
||||
configure.in:81:AC_SUBST:ac_ct_STRIP
|
||||
configure.in:81:AC_SUBST:F77
|
||||
configure.in:81:AC_SUBST:FFLAGS
|
||||
configure.in:81:AC_SUBST:LDFLAGS
|
||||
configure.in:81:AC_SUBST:F77
|
||||
configure.in:81:AC_SUBST:ac_ct_F77
|
||||
configure.in:81:AC_SUBST:LIBTOOL
|
||||
configure.in:81:AC_SUBST:KDE_PLUGIN
|
||||
configure.in:81:AC_SUBST:KDE_CHECK_PLUGIN
|
||||
configure.in:81:AC_SUBST:AUTOCONF:'$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure'
|
||||
configure.in:97:AC_SUBST:all_includes
|
||||
configure.in:98:AC_SUBST:all_libraries
|
||||
configure.in:100:AC_SUBST:AUTODIRS
|
||||
configure.in:109:AC_CONFIG_HEADERS:akode/lib/akode_export.h
|
||||
configure.in:260:AC_SUBST:LIBFLAC
|
||||
configure.in:261:AC_SUBST:LIBOGGFLAC
|
||||
configure.in:316:AC_SUBST:SPEEXLIBS
|
||||
configure.in:352:AC_SUBST:MADLIBS
|
||||
configure.in:366:AC_SUBST:LIBSAMPLERATE
|
||||
configure.in:370:AC_SUBST:PKG_CONFIG:$ac_cv_path_PKG_CONFIG
|
||||
configure.in:387:AC_SUBST:JACK_CFLAGS
|
||||
configure.in:388:AC_SUBST:JACK_LIBADD
|
||||
configure.in:389:AC_SUBST:JACK_LDFLAGS
|
||||
configure.in:407:AC_SUBST:POLYP_CFLAGS
|
||||
configure.in:408:AC_SUBST:POLYP_LIBADD
|
||||
configure.in:409:AC_SUBST:POLYP_LDFLAGS
|
||||
configure.in:434:AC_SUBST:AVCODEC_CFLAGS
|
||||
configure.in:435:AC_SUBST:AVCODEC_LIBADD
|
||||
configure.in:436:AC_SUBST:AVCODEC_LDFLAGS
|
||||
configure.in:437:AC_SUBST:AVFORMAT_CFLAGS
|
||||
configure.in:438:AC_SUBST:AVFORMAT_LIBADD
|
||||
configure.in:439:AC_SUBST:AVFORMAT_LDFLAGS
|
||||
configure.in:474:AC_SUBST:AKODE_LIBDL
|
||||
configure.in:476:AC_SUBST:LIBPTHREAD
|
||||
configure.in:528:AC_SUBST:include_mpeg_decoder_TRUE
|
||||
configure.in:528:AC_SUBST:include_mpeg_decoder_FALSE
|
||||
configure.in:536:AC_SUBST:LIBOSSAUDIO
|
||||
configure.in:550:AC_SUBST:LIBASOUND
|
||||
configure.in:564:AC_SUBST:VORBIS_LIBS
|
||||
configure.in:564:AC_SUBST:VORBISFILE_LIBS
|
||||
configure.in:564:AC_SUBST:VORBISENC_LIBS
|
||||
configure.in:576:AC_SUBST:include_xiph_decoder_TRUE
|
||||
configure.in:576:AC_SUBST:include_xiph_decoder_FALSE
|
||||
configure.in:577:AC_SUBST:include_src_resampler_TRUE
|
||||
configure.in:577:AC_SUBST:include_src_resampler_FALSE
|
||||
configure.in:578:AC_SUBST:include_alsa_sink_TRUE
|
||||
configure.in:578:AC_SUBST:include_alsa_sink_FALSE
|
||||
configure.in:579:AC_SUBST:include_oss_sink_TRUE
|
||||
configure.in:579:AC_SUBST:include_oss_sink_FALSE
|
||||
configure.in:580:AC_SUBST:include_jack_sink_TRUE
|
||||
configure.in:580:AC_SUBST:include_jack_sink_FALSE
|
||||
configure.in:581:AC_SUBST:include_polyp_sink_TRUE
|
||||
configure.in:581:AC_SUBST:include_polyp_sink_FALSE
|
||||
configure.in:582:AC_SUBST:include_ffmpeg_decoder_TRUE
|
||||
configure.in:582:AC_SUBST:include_ffmpeg_decoder_FALSE
|
||||
configure.in:600:AC_SUBST:TOPSUBDIRS
|
||||
configure.in:601:AC_SUBST:akode_SUBDIR_included_TRUE
|
||||
configure.in:601:AC_SUBST:akode_SUBDIR_included_FALSE
|
||||
configure.in:602:AC_CONFIG_FILES:Makefile
|
||||
configure.in:603:AC_CONFIG_FILES:akode/Makefile
|
||||
configure.in:604:AC_CONFIG_FILES:akode/akodeplay/Makefile
|
||||
configure.in:605:AC_CONFIG_FILES:akode/lib/Makefile
|
||||
configure.in:606:AC_CONFIG_FILES:akode/plugins/Makefile
|
||||
configure.in:607:AC_CONFIG_FILES:akode/plugins/alsa_sink/Makefile
|
||||
configure.in:608:AC_CONFIG_FILES:akode/plugins/ffmpeg_decoder/Makefile
|
||||
configure.in:609:AC_CONFIG_FILES:akode/plugins/jack_sink/Makefile
|
||||
configure.in:610:AC_CONFIG_FILES:akode/plugins/mpc_decoder/Makefile
|
||||
configure.in:611:AC_CONFIG_FILES:akode/plugins/mpc_decoder/mppdec/Makefile
|
||||
configure.in:612:AC_CONFIG_FILES:akode/plugins/mpeg_decoder/Makefile
|
||||
configure.in:613:AC_CONFIG_FILES:akode/plugins/oss_sink/Makefile
|
||||
configure.in:614:AC_CONFIG_FILES:akode/plugins/polyp_sink/Makefile
|
||||
configure.in:615:AC_CONFIG_FILES:akode/plugins/src_resampler/Makefile
|
||||
configure.in:616:AC_CONFIG_FILES:akode/plugins/xiph_decoder/Makefile
|
||||
configure.in:617:AC_CONFIG_FILES:akode/akode-config
|
||||
configure.in:618:AC_SUBST:LIBOBJS:$ac_libobjs
|
||||
configure.in:618:AC_SUBST:LTLIBOBJS:$ac_ltlibobjs
|
@ -0,0 +1,2 @@
|
||||
Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
Author, maintainer
|
@ -0,0 +1,167 @@
|
||||
Basic Installation
|
||||
==================
|
||||
|
||||
These are generic installation instructions.
|
||||
|
||||
The `configure' shell script attempts to guess correct values for
|
||||
various system-dependent variables used during compilation. It uses
|
||||
those values to create a `Makefile' in each directory of the package.
|
||||
It may also create one or more `.h' files containing system-dependent
|
||||
definitions. Finally, it creates a shell script `config.status' that
|
||||
you can run in the future to recreate the current configuration, a file
|
||||
`config.cache' that saves the results of its tests to speed up
|
||||
reconfiguring, and a file `config.log' containing compiler output
|
||||
(useful mainly for debugging `configure').
|
||||
|
||||
If you need to do unusual things to compile the package, please try
|
||||
to figure out how `configure' could check whether to do them, and mail
|
||||
diffs or instructions to the address given in the `README' so they can
|
||||
be considered for the next release. If at some point `config.cache'
|
||||
contains results you don't want to keep, you may remove or edit it.
|
||||
|
||||
The file `configure.in' is used to create `configure' by a program
|
||||
called `autoconf'. You only need `configure.in' if you want to change
|
||||
it or regenerate `configure' using a newer version of `autoconf'.
|
||||
|
||||
The simplest way to compile this package is:
|
||||
|
||||
1. `cd' to the directory containing the package's source code and type
|
||||
`./configure' to configure the package for your system. If you're
|
||||
using `csh' on an old version of System V, you might need to type
|
||||
`sh ./configure' instead to prevent `csh' from trying to execute
|
||||
`configure' itself.
|
||||
|
||||
Running `configure' takes a while. While running, it prints some
|
||||
messages telling which features it is checking for.
|
||||
|
||||
2. Type `make' to compile the package.
|
||||
|
||||
3. Type `make install' to install the programs and any data files and
|
||||
documentation.
|
||||
|
||||
4. You can remove the program binaries and object files from the
|
||||
source code directory by typing `make clean'.
|
||||
|
||||
Compilers and Options
|
||||
=====================
|
||||
|
||||
Some systems require unusual options for compilation or linking that
|
||||
the `configure' script does not know about. You can give `configure'
|
||||
initial values for variables by setting them in the environment. Using
|
||||
a Bourne-compatible shell, you can do that on the command line like
|
||||
this:
|
||||
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
|
||||
|
||||
Or on systems that have the `env' program, you can do it like this:
|
||||
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
|
||||
|
||||
Compiling For Multiple Architectures
|
||||
====================================
|
||||
|
||||
You can compile the package for more than one kind of computer at the
|
||||
same time, by placing the object files for each architecture in their
|
||||
own directory. To do this, you must use a version of `make' that
|
||||
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
||||
directory where you want the object files and executables to go and run
|
||||
the `configure' script. `configure' automatically checks for the
|
||||
source code in the directory that `configure' is in and in `..'.
|
||||
|
||||
If you have to use a `make' that does not supports the `VPATH'
|
||||
variable, you have to compile the package for one architecture at a time
|
||||
in the source code directory. After you have installed the package for
|
||||
one architecture, use `make distclean' before reconfiguring for another
|
||||
architecture.
|
||||
|
||||
Installation Names
|
||||
==================
|
||||
|
||||
By default, `make install' will install the package's files in
|
||||
`/usr/local/bin', `/usr/local/man', etc. You can specify an
|
||||
installation prefix other than `/usr/local' by giving `configure' the
|
||||
option `--prefix=PATH'.
|
||||
|
||||
You can specify separate installation prefixes for
|
||||
architecture-specific files and architecture-independent files. If you
|
||||
give `configure' the option `--exec-prefix=PATH', the package will use
|
||||
PATH as the prefix for installing programs and libraries.
|
||||
Documentation and other data files will still use the regular prefix.
|
||||
|
||||
If the package supports it, you can cause programs to be installed
|
||||
with an extra prefix or suffix on their names by giving `configure' the
|
||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||
|
||||
Optional Features
|
||||
=================
|
||||
|
||||
Some packages pay attention to `--enable-FEATURE' options to
|
||||
`configure', where FEATURE indicates an optional part of the package.
|
||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||
is something like `gnu-as' or `x' (for the X Window System). The
|
||||
`README' should mention any `--enable-' and `--with-' options that the
|
||||
package recognizes.
|
||||
|
||||
For packages that use the X Window System, `configure' can usually
|
||||
find the X include and library files automatically, but if it doesn't,
|
||||
you can use the `configure' options `--x-includes=DIR' and
|
||||
`--x-libraries=DIR' to specify their locations.
|
||||
|
||||
Specifying the System Type
|
||||
==========================
|
||||
|
||||
There may be some features `configure' can not figure out
|
||||
automatically, but needs to determine by the type of host the package
|
||||
will run on. Usually `configure' can figure that out, but if it prints
|
||||
a message saying it can not guess the host type, give it the
|
||||
`--host=TYPE' option. TYPE can either be a short name for the system
|
||||
type, such as `sun4', or a canonical name with three fields:
|
||||
CPU-COMPANY-SYSTEM
|
||||
|
||||
See the file `config.sub' for the possible values of each field. If
|
||||
`config.sub' isn't included in this package, then this package doesn't
|
||||
need to know the host type.
|
||||
|
||||
If you are building compiler tools for cross-compiling, you can also
|
||||
use the `--target=TYPE' option to select the type of system they will
|
||||
produce code for and the `--build=TYPE' option to select the type of
|
||||
system on which you are compiling the package.
|
||||
|
||||
Sharing Defaults
|
||||
================
|
||||
|
||||
If you want to set default values for `configure' scripts to share,
|
||||
you can create a site shell script called `config.site' that gives
|
||||
default values for variables like `CC', `cache_file', and `prefix'.
|
||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||
`CONFIG_SITE' environment variable to the location of the site script.
|
||||
A warning: not all `configure' scripts look for a site script.
|
||||
|
||||
Operation Controls
|
||||
==================
|
||||
|
||||
`configure' recognizes the following options to control how it
|
||||
operates.
|
||||
|
||||
`--cache-file=FILE'
|
||||
Use and save the results of the tests in FILE instead of
|
||||
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
|
||||
debugging `configure'.
|
||||
|
||||
`--help'
|
||||
Print a summary of the options to `configure', and exit.
|
||||
|
||||
`--quiet'
|
||||
`--silent'
|
||||
`-q'
|
||||
Do not print messages saying which checks are being made.
|
||||
|
||||
`--srcdir=DIR'
|
||||
Look for the package's source code in directory DIR. Usually
|
||||
`configure' can determine that directory automatically.
|
||||
|
||||
`--version'
|
||||
Print the version of Autoconf used to generate the `configure'
|
||||
script, and exit.
|
||||
|
||||
`configure' also accepts some other, not widely useful, options.
|
||||
|
@ -0,0 +1,13 @@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
|
||||
include admin/deps.am
|
||||
|
||||
MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files
|
||||
|
||||
package-messages:
|
||||
$(MAKE) -f admin/Makefile.common package-messages
|
||||
|
||||
dist-hook:
|
||||
cd $(top_distdir) && perl admin/am_edit -padmin
|
||||
cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs
|
||||
SUBDIRS=$(TOPSUBDIRS)
|
@ -0,0 +1,12 @@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
|
||||
include admin/deps.am
|
||||
|
||||
MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files
|
||||
|
||||
package-messages:
|
||||
$(MAKE) -f admin/Makefile.common package-messages
|
||||
|
||||
dist-hook:
|
||||
cd $(top_distdir) && perl admin/am_edit -padmin
|
||||
cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs
|
@ -0,0 +1,15 @@
|
||||
all:
|
||||
@echo "This Makefile is only for the CVS repository"
|
||||
@echo "This will be deleted before making the distribution"
|
||||
@echo ""
|
||||
@if test ! -d admin; then \
|
||||
echo "Please recheckout this module!" ;\
|
||||
echo "for cvs: use checkout once and after that update again" ;\
|
||||
echo "for cvsup: checkout kde-common from cvsup and" ;\
|
||||
echo " link kde-common/admin to ./admin" ;\
|
||||
exit 1 ;\
|
||||
fi
|
||||
$(MAKE) -f admin/Makefile.common cvs
|
||||
|
||||
.SILENT:
|
||||
|
@ -0,0 +1,819 @@
|
||||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# KDE tags expanded automatically by am_edit - $Revision: 483858 $
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = .
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
target_triplet = @target@
|
||||
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||
$(srcdir)/Makefile.in $(srcdir)/admin/deps.am \
|
||||
$(srcdir)/config.h.in $(top_srcdir)/configure AUTHORS COPYING \
|
||||
INSTALL NEWS admin/compile admin/config.guess admin/config.sub \
|
||||
admin/depcomp admin/install-sh admin/ltmain.sh admin/missing \
|
||||
admin/mkinstalldirs admin/ylwrap
|
||||
subdir = .
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
configure.lineno configure.status.lineno
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
|
||||
CONFIG_HEADER = config.h $(top_builddir)/akode/lib/akode_export.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
#>- RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
#>- html-recursive info-recursive install-data-recursive \
|
||||
#>- install-exec-recursive install-info-recursive \
|
||||
#>- install-recursive installcheck-recursive installdirs-recursive \
|
||||
#>- pdf-recursive ps-recursive uninstall-info-recursive \
|
||||
#>- uninstall-recursive
|
||||
#>+ 6
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
html-recursive info-recursive install-data-recursive \
|
||||
install-exec-recursive install-info-recursive \
|
||||
install-recursive installcheck-recursive installdirs-recursive \
|
||||
pdf-recursive ps-recursive uninstall-info-recursive \
|
||||
uninstall-recursive nmcheck-recursive bcheck-recursive
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
#>+ 1
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
top_distdir = $(distdir)
|
||||
am__remove_distdir = \
|
||||
{ test ! -d $(distdir) \
|
||||
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||
&& rm -fr $(distdir); }; }
|
||||
DIST_ARCHIVES = $(distdir).tar.gz
|
||||
GZIP_ENV = --best
|
||||
distuninstallcheck_listfiles = find . -type f -print
|
||||
distcleancheck_listfiles = find . -type f -print
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AKODE_LIBDL = @AKODE_LIBDL@
|
||||
ALSA_CFLAGS = @ALSA_CFLAGS@
|
||||
ALSA_LIBS = @ALSA_LIBS@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTODIRS = @AUTODIRS@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AVCODEC_CFLAGS = @AVCODEC_CFLAGS@
|
||||
AVCODEC_LDFLAGS = @AVCODEC_LDFLAGS@
|
||||
AVCODEC_LIBADD = @AVCODEC_LIBADD@
|
||||
AVFORMAT_CFLAGS = @AVFORMAT_CFLAGS@
|
||||
AVFORMAT_LDFLAGS = @AVFORMAT_LDFLAGS@
|
||||
AVFORMAT_LIBADD = @AVFORMAT_LIBADD@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CONF_FILES = @CONF_FILES@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
ECHO = @ECHO@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
ENABLE_PERMISSIVE_FLAG = @ENABLE_PERMISSIVE_FLAG@
|
||||
EXEEXT = @EXEEXT@
|
||||
F77 = @F77@
|
||||
FFLAGS = @FFLAGS@
|
||||
GREP = @GREP@
|
||||
HAVE_GCC_VISIBILITY = @HAVE_GCC_VISIBILITY@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
JACK_CFLAGS = @JACK_CFLAGS@
|
||||
JACK_LDFLAGS = @JACK_LDFLAGS@
|
||||
JACK_LIBADD = @JACK_LIBADD@
|
||||
KDE_CHECK_PLUGIN = @KDE_CHECK_PLUGIN@
|
||||
KDE_NO_UNDEFINED = @KDE_NO_UNDEFINED@
|
||||
KDE_PLUGIN = @KDE_PLUGIN@
|
||||
KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@
|
||||
KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@
|
||||
KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@
|
||||
KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@
|
||||
KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
|
||||
KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LDFLAGS_AS_NEEDED = @LDFLAGS_AS_NEEDED@
|
||||
LDFLAGS_NEW_DTAGS = @LDFLAGS_NEW_DTAGS@
|
||||
LIBFLAC = @LIBFLAC@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBOGGFLAC = @LIBOGGFLAC@
|
||||
LIBOSSAUDIO = @LIBOSSAUDIO@
|
||||
LIBPTHREAD = @LIBPTHREAD@
|
||||
LIBS = @LIBS@
|
||||
LIBSAMPLERATE = @LIBSAMPLERATE@
|
||||
LIBSEM = @LIBSEM@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MADLIBS = @MADLIBS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
NOOPT_CFLAGS = @NOOPT_CFLAGS@
|
||||
NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
POLYP_CFLAGS = @POLYP_CFLAGS@
|
||||
POLYP_LDFLAGS = @POLYP_LDFLAGS@
|
||||
POLYP_LIBADD = @POLYP_LIBADD@
|
||||
RANLIB = @RANLIB@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SPEEXLIBS = @SPEEXLIBS@
|
||||
STRIP = @STRIP@
|
||||
TOPSUBDIRS = @TOPSUBDIRS@
|
||||
USER_INCLUDES = @USER_INCLUDES@
|
||||
USER_LDFLAGS = @USER_LDFLAGS@
|
||||
USE_EXCEPTIONS = @USE_EXCEPTIONS@
|
||||
USE_RTTI = @USE_RTTI@
|
||||
VERSION = @VERSION@
|
||||
VORBISFILE_LIBS = @VORBISFILE_LIBS@
|
||||
VORBIS_LIBS = @VORBIS_LIBS@
|
||||
WOVERLOADED_VIRTUAL = @WOVERLOADED_VIRTUAL@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_F77 = @ac_ct_F77@
|
||||
akode_SUBDIR_included_FALSE = @akode_SUBDIR_included_FALSE@
|
||||
akode_SUBDIR_included_TRUE = @akode_SUBDIR_included_TRUE@
|
||||
all_includes = @all_includes@
|
||||
all_libraries = @all_libraries@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
|
||||
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
include_alsa_sink_FALSE = @include_alsa_sink_FALSE@
|
||||
include_alsa_sink_TRUE = @include_alsa_sink_TRUE@
|
||||
include_ffmpeg_decoder_FALSE = @include_ffmpeg_decoder_FALSE@
|
||||
include_ffmpeg_decoder_TRUE = @include_ffmpeg_decoder_TRUE@
|
||||
include_jack_sink_FALSE = @include_jack_sink_FALSE@
|
||||
include_jack_sink_TRUE = @include_jack_sink_TRUE@
|
||||
include_mpeg_decoder_FALSE = @include_mpeg_decoder_FALSE@
|
||||
include_mpeg_decoder_TRUE = @include_mpeg_decoder_TRUE@
|
||||
include_oss_sink_FALSE = @include_oss_sink_FALSE@
|
||||
include_oss_sink_TRUE = @include_oss_sink_TRUE@
|
||||
include_polyp_sink_FALSE = @include_polyp_sink_FALSE@
|
||||
include_polyp_sink_TRUE = @include_polyp_sink_TRUE@
|
||||
include_src_resampler_FALSE = @include_src_resampler_FALSE@
|
||||
include_src_resampler_TRUE = @include_src_resampler_TRUE@
|
||||
include_sun_sink_FALSE = @include_sun_sink_FALSE@
|
||||
include_sun_sink_TRUE = @include_sun_sink_TRUE@
|
||||
include_xiph_decoder_FALSE = @include_xiph_decoder_FALSE@
|
||||
include_xiph_decoder_TRUE = @include_xiph_decoder_TRUE@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target = @target@
|
||||
target_alias = @target_alias@
|
||||
target_cpu = @target_cpu@
|
||||
target_os = @target_os@
|
||||
target_vendor = @target_vendor@
|
||||
unsermake_enable_pch_FALSE = @unsermake_enable_pch_FALSE@
|
||||
unsermake_enable_pch_TRUE = @unsermake_enable_pch_TRUE@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files
|
||||
SUBDIRS = $(TOPSUBDIRS)
|
||||
#>- all: config.h
|
||||
#>+ 1
|
||||
all: docs-am config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
am--refresh:
|
||||
@:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/admin/deps.am $(am__configure_deps)
|
||||
#>- @for dep in $?; do \
|
||||
#>- case '$(am__configure_deps)' in \
|
||||
#>- *$$dep*) \
|
||||
#>- echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
|
||||
#>- cd $(srcdir) && $(AUTOMAKE) --foreign \
|
||||
#>- && exit 0; \
|
||||
#>- exit 1;; \
|
||||
#>- esac; \
|
||||
#>- done; \
|
||||
#>- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
||||
#>- cd $(top_srcdir) && \
|
||||
#>- $(AUTOMAKE) --foreign Makefile
|
||||
#>+ 14
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
|
||||
( \
|
||||
cd $(srcdir) && $(AUTOMAKE) --foreign \
|
||||
) || exit 1; echo ' cd $(top_srcdir) && perl admin/am_edit '; cd $(top_srcdir) && perl admin/am_edit && exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign Makefile
|
||||
cd $(top_srcdir) && perl admin/am_edit Makefile.in
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
echo ' $(SHELL) ./config.status'; \
|
||||
$(SHELL) ./config.status;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
$(SHELL) ./config.status --recheck
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
#>- cd $(srcdir) && $(AUTOCONF)
|
||||
#>+ 2
|
||||
cd $(srcdir) && rm -f configure
|
||||
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||
|
||||
config.h: stamp-h1
|
||||
@if test ! -f $@; then \
|
||||
rm -f stamp-h1; \
|
||||
$(MAKE) stamp-h1; \
|
||||
else :; fi
|
||||
|
||||
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||
@rm -f stamp-h1
|
||||
cd $(top_builddir) && $(SHELL) ./config.status config.h
|
||||
$(srcdir)/config.h.in: $(am__configure_deps)
|
||||
cd $(top_srcdir) && $(AUTOHEADER)
|
||||
rm -f stamp-h1
|
||||
touch $@
|
||||
|
||||
distclean-hdr:
|
||||
-rm -f config.h stamp-h1
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool
|
||||
uninstall-info-am:
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
$(RECURSIVE_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
rev=''; for subdir in $$list; do \
|
||||
if test "$$subdir" = "."; then :; else \
|
||||
rev="$$subdir $$rev"; \
|
||||
fi; \
|
||||
done; \
|
||||
rev="$$rev ."; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
ctags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
$(am__remove_distdir)
|
||||
mkdir $(distdir)
|
||||
$(mkdir_p) $(distdir)/admin $(distdir)/akode
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d "$(distdir)/$$subdir" \
|
||||
|| $(mkdir_p) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
distdir=`$(am__cd) $(distdir) && pwd`; \
|
||||
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
||||
(cd $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$top_distdir" \
|
||||
distdir="$$distdir/$$subdir" \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$(top_distdir)" distdir="$(distdir)" \
|
||||
dist-hook
|
||||
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
||||
|| chmod -R a+r $(distdir)
|
||||
dist-gzip: distdir
|
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-bzip2: distdir
|
||||
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-tarZ: distdir
|
||||
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-shar: distdir
|
||||
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-zip: distdir
|
||||
-rm -f $(distdir).zip
|
||||
zip -rq $(distdir).zip $(distdir)
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist dist-all: distdir
|
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
# it guarantees that the distribution is self-contained by making another
|
||||
# tarfile.
|
||||
distcheck: dist
|
||||
case '$(DIST_ARCHIVES)' in \
|
||||
*.tar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
|
||||
*.tar.bz2*) \
|
||||
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||
*.tar.Z*) \
|
||||
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||
*.shar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
||||
*.zip*) \
|
||||
unzip $(distdir).zip ;;\
|
||||
esac
|
||||
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||
mkdir $(distdir)/_build
|
||||
mkdir $(distdir)/_inst
|
||||
chmod a-w $(distdir)
|
||||
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||
&& cd $(distdir)/_build \
|
||||
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||
distuninstallcheck \
|
||||
&& chmod -R a-w "$$dc_install_base" \
|
||||
&& ({ \
|
||||
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||
&& rm -rf "$$dc_destdir" \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||
&& rm -rf $(DIST_ARCHIVES) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
|
||||
$(am__remove_distdir)
|
||||
@(echo "$(distdir) archives ready for distribution: "; \
|
||||
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||
sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
|
||||
distuninstallcheck:
|
||||
@cd $(distuninstallcheck_dir) \
|
||||
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
||||
|| { echo "ERROR: files left after uninstall:" ; \
|
||||
if test -n "$(DESTDIR)"; then \
|
||||
echo " (check DESTDIR support)"; \
|
||||
fi ; \
|
||||
$(distuninstallcheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
distcleancheck: distclean
|
||||
@if test '$(srcdir)' = . ; then \
|
||||
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||
$(distcleancheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile config.h
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
|
||||
#>- clean: clean-recursive
|
||||
#>+ 1
|
||||
clean: kde-rpo-clean clean-recursive
|
||||
|
||||
#>- clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
#>+ 1
|
||||
clean-am: clean-bcheck clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-hdr \
|
||||
distclean-libtool distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -rf $(top_srcdir)/autom4te.cache
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-info-am
|
||||
|
||||
uninstall-info: uninstall-info-recursive
|
||||
|
||||
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
|
||||
check-am clean clean-generic clean-libtool clean-recursive \
|
||||
ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
|
||||
dist-hook dist-shar dist-tarZ dist-zip distcheck distclean \
|
||||
distclean-generic distclean-hdr distclean-libtool \
|
||||
distclean-recursive distclean-tags distcleancheck distdir \
|
||||
distuninstallcheck dvi dvi-am html html-am info info-am \
|
||||
install install-am install-data install-data-am install-exec \
|
||||
install-exec-am install-info install-info-am install-man \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
installdirs-am maintainer-clean maintainer-clean-generic \
|
||||
maintainer-clean-recursive mostlyclean mostlyclean-generic \
|
||||
mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
|
||||
tags tags-recursive uninstall uninstall-am uninstall-info-am
|
||||
|
||||
$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in $(top_srcdir)/admin/cvs.sh $(top_srcdir)/admin/pkg.m4.in
|
||||
@cd $(top_srcdir) && $(SHELL) admin/cvs.sh acinclude_m4
|
||||
|
||||
$(top_srcdir)/configure.in: $(top_srcdir)/subdirs $(top_srcdir)/configure.files $(top_srcdir)/admin/cvs.sh
|
||||
@cd $(top_srcdir) && $(SHELL) admin/cvs.sh configure_in
|
||||
|
||||
$(top_srcdir)/configure.files: $(top_srcdir)/subdirs $(CONF_FILES)
|
||||
@cd $(top_srcdir) && $(SHELL) admin/cvs.sh configure.files $(top_srcdir)/admin/cvs.sh
|
||||
|
||||
$(top_srcdir)/Makefile.am: $(top_srcdir)/Makefile.am.in $(top_srcdir)/subdirs $(top_srcdir)/admin/cvs.sh
|
||||
@cd $(top_srcdir) && $(SHELL) admin/cvs.sh Makefile_am
|
||||
|
||||
$(top_srcdir)/subdirs: $(top_srcdir)/Makefile.am.in $(top_srcdir)/admin/cvs.sh
|
||||
@cd $(top_srcdir) && $(SHELL) admin/cvs.sh subdirs
|
||||
|
||||
# defining default rules for files that may not be present
|
||||
$(top_srcdir)/Makefile.am.in:
|
||||
$(CONF_FILES):
|
||||
|
||||
package-messages:
|
||||
$(MAKE) -f admin/Makefile.common package-messages
|
||||
|
||||
dist-hook:
|
||||
cd $(top_distdir) && perl admin/am_edit -padmin
|
||||
cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
|
||||
#>+ 2
|
||||
KDE_DIST=stamp-h.in subdirs Makefile.in configure.files config.h.in configure.in akode.lsm Makefile.cvs aclocal.m4 configure.in.in PACKAGING acinclude.m4 Makefile.am configure Makefile.am.in
|
||||
|
||||
#>+ 2
|
||||
docs-am:
|
||||
|
||||
#>+ 7
|
||||
force-reedit:
|
||||
\
|
||||
cd $(srcdir) && $(AUTOMAKE) --foreign \
|
||||
|
||||
cd $(top_srcdir) && perl admin/am_edit Makefile.in
|
||||
|
||||
|
||||
#>+ 21
|
||||
clean-bcheck:
|
||||
rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
|
||||
|
||||
bcheck: bcheck-recursive
|
||||
|
||||
bcheck-am:
|
||||
@for i in ; do \
|
||||
if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
|
||||
echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
|
||||
echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
|
||||
echo "$$i"; \
|
||||
if ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS) --dump-class-hierarchy -c $$i.bchecktest.cc; then \
|
||||
rm -f $$i.bchecktest.cc; exit 1; \
|
||||
fi ; \
|
||||
echo "" >> $$i.bchecktest.cc.class; \
|
||||
perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
|
||||
rm -f a.out; \
|
||||
fi ; \
|
||||
done
|
||||
|
||||
|
||||
#>+ 3
|
||||
final:
|
||||
$(MAKE) all-am
|
||||
|
||||
#>+ 3
|
||||
final-install:
|
||||
$(MAKE) install-am
|
||||
|
||||
#>+ 3
|
||||
no-final:
|
||||
$(MAKE) all-am
|
||||
|
||||
#>+ 3
|
||||
no-final-install:
|
||||
$(MAKE) install-am
|
||||
|
||||
#>+ 3
|
||||
kde-rpo-clean:
|
||||
-rm -f *.rpo
|
||||
|
||||
#>+ 3
|
||||
nmcheck:
|
||||
nmcheck-am: nmcheck
|
@ -0,0 +1,15 @@
|
||||
The plugins are designed for being packaged and installed separately of akodelib.
|
||||
|
||||
Take especially note of the following:
|
||||
- Do not install mpeg_decoder if you have software patent concerns
|
||||
- Do not install src_resampler and mpeg_decoder if you want a pure LGPL
|
||||
library since they are both derived of GPL libraries.
|
||||
- If you wish to install plugins in a non-standard place, you can change the
|
||||
AKODE_SEARCHDIR definition in lib/pluginhandler.cpp.
|
||||
- You SHOULD not install sinks for backends you don't use. Thus jack_sink
|
||||
should only be installed when jackd is available, polyp_sink only when
|
||||
the polypaudio server is used and alsa_sink only when using a Linux kernel
|
||||
with ALSA drivers.
|
||||
When using direct aKode playback sinks will be autodetected by loading and
|
||||
probing plugins in this order: polyp, jack, alsa, oss
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,863 @@
|
||||
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
||||
# 2005 Free Software Foundation, Inc.
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_AUTOMAKE_VERSION(VERSION)
|
||||
# ----------------------------
|
||||
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
||||
# generated from the m4 files accompanying Automake X.Y.
|
||||
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
|
||||
|
||||
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
||||
# -------------------------------
|
||||
# Call AM_AUTOMAKE_VERSION so it can be traced.
|
||||
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
|
||||
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
||||
[AM_AUTOMAKE_VERSION([1.9.6])])
|
||||
|
||||
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
||||
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
||||
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
||||
#
|
||||
# Of course, Automake must honor this variable whenever it calls a
|
||||
# tool from the auxiliary directory. The problem is that $srcdir (and
|
||||
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
||||
# depending on how configure is run. This is pretty annoying, since
|
||||
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
||||
# source directory, any form will work fine, but in subdirectories a
|
||||
# relative path needs to be adjusted first.
|
||||
#
|
||||
# $ac_aux_dir/missing
|
||||
# fails when called from a subdirectory if $ac_aux_dir is relative
|
||||
# $top_srcdir/$ac_aux_dir/missing
|
||||
# fails if $ac_aux_dir is absolute,
|
||||
# fails when called from a subdirectory in a VPATH build with
|
||||
# a relative $ac_aux_dir
|
||||
#
|
||||
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
||||
# are both prefixed by $srcdir. In an in-source build this is usually
|
||||
# harmless because $srcdir is `.', but things will broke when you
|
||||
# start a VPATH build or use an absolute $srcdir.
|
||||
#
|
||||
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
||||
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
||||
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
||||
# and then we would define $MISSING as
|
||||
# MISSING="\${SHELL} $am_aux_dir/missing"
|
||||
# This will work as long as MISSING is not called from configure, because
|
||||
# unfortunately $(top_srcdir) has no meaning in configure.
|
||||
# However there are other variables, like CC, which are often used in
|
||||
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
||||
#
|
||||
# Another solution, used here, is to always expand $ac_aux_dir to an
|
||||
# absolute PATH. The drawback is that using absolute paths prevent a
|
||||
# configured tree to be moved without reconfiguration.
|
||||
|
||||
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
||||
[dnl Rely on autoconf to set up CDPATH properly.
|
||||
AC_PREREQ([2.50])dnl
|
||||
# expand $ac_aux_dir to an absolute path
|
||||
am_aux_dir=`cd $ac_aux_dir && pwd`
|
||||
])
|
||||
|
||||
# AM_CONDITIONAL -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 7
|
||||
|
||||
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
||||
# -------------------------------------
|
||||
# Define a conditional.
|
||||
AC_DEFUN([AM_CONDITIONAL],
|
||||
[AC_PREREQ(2.52)dnl
|
||||
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
||||
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
||||
AC_SUBST([$1_TRUE])
|
||||
AC_SUBST([$1_FALSE])
|
||||
if $2; then
|
||||
$1_TRUE=
|
||||
$1_FALSE='#'
|
||||
else
|
||||
$1_TRUE='#'
|
||||
$1_FALSE=
|
||||
fi
|
||||
AC_CONFIG_COMMANDS_PRE(
|
||||
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
||||
AC_MSG_ERROR([[conditional "$1" was never defined.
|
||||
Usually this means the macro was only invoked conditionally.]])
|
||||
fi])])
|
||||
|
||||
|
||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 8
|
||||
|
||||
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
||||
# written in clear, in which case automake, when reading aclocal.m4,
|
||||
# will think it sees a *use*, and therefore will trigger all it's
|
||||
# C support machinery. Also note that it means that autoscan, seeing
|
||||
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
||||
|
||||
|
||||
# _AM_DEPENDENCIES(NAME)
|
||||
# ----------------------
|
||||
# See how the compiler implements dependency checking.
|
||||
# NAME is "CC", "CXX", "GCJ", or "OBJC".
|
||||
# We try a few techniques and use that to set a single cache variable.
|
||||
#
|
||||
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
||||
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
||||
# dependency, and given that the user is not expected to run this macro,
|
||||
# just rely on AC_PROG_CC.
|
||||
AC_DEFUN([_AM_DEPENDENCIES],
|
||||
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
||||
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
||||
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
||||
AC_REQUIRE([AM_DEP_TRACK])dnl
|
||||
|
||||
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
||||
[$1], CXX, [depcc="$CXX" am_compiler_list=],
|
||||
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
||||
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
||||
[depcc="$$1" am_compiler_list=])
|
||||
|
||||
AC_CACHE_CHECK([dependency style of $depcc],
|
||||
[am_cv_$1_dependencies_compiler_type],
|
||||
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
||||
# We make a subdir and do the tests there. Otherwise we can end up
|
||||
# making bogus files that we don't know about and never remove. For
|
||||
# instance it was reported that on HP-UX the gcc test will end up
|
||||
# making a dummy file named `D' -- because `-MD' means `put the output
|
||||
# in D'.
|
||||
mkdir conftest.dir
|
||||
# Copy depcomp to subdir because otherwise we won't find it if we're
|
||||
# using a relative directory.
|
||||
cp "$am_depcomp" conftest.dir
|
||||
cd conftest.dir
|
||||
# We will build objects and dependencies in a subdirectory because
|
||||
# it helps to detect inapplicable dependency modes. For instance
|
||||
# both Tru64's cc and ICC support -MD to output dependencies as a
|
||||
# side effect of compilation, but ICC will put the dependencies in
|
||||
# the current directory while Tru64 will put them in the object
|
||||
# directory.
|
||||
mkdir sub
|
||||
|
||||
am_cv_$1_dependencies_compiler_type=none
|
||||
if test "$am_compiler_list" = ""; then
|
||||
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
||||
fi
|
||||
for depmode in $am_compiler_list; do
|
||||
# Setup a source with many dependencies, because some compilers
|
||||
# like to wrap large dependency lists on column 80 (with \), and
|
||||
# we should not choose a depcomp mode which is confused by this.
|
||||
#
|
||||
# We need to recreate these files for each test, as the compiler may
|
||||
# overwrite some of them when testing with obscure command lines.
|
||||
# This happens at least with the AIX C compiler.
|
||||
: > sub/conftest.c
|
||||
for i in 1 2 3 4 5 6; do
|
||||
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
||||
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
||||
# Solaris 8's {/usr,}/bin/sh.
|
||||
touch sub/conftst$i.h
|
||||
done
|
||||
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
||||
|
||||
case $depmode in
|
||||
nosideeffect)
|
||||
# after this tag, mechanisms are not by side-effect, so they'll
|
||||
# only be used when explicitly requested
|
||||
if test "x$enable_dependency_tracking" = xyes; then
|
||||
continue
|
||||
else
|
||||
break
|
||||
fi
|
||||
;;
|
||||
none) break ;;
|
||||
esac
|
||||
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
||||
# mode. It turns out that the SunPro C++ compiler does not properly
|
||||
# handle `-M -o', and we need to detect this.
|
||||
if depmode=$depmode \
|
||||
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
||||
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
||||
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
||||
>/dev/null 2>conftest.err &&
|
||||
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
||||
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
||||
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
||||
# icc doesn't choke on unknown options, it will just issue warnings
|
||||
# or remarks (even with -Werror). So we grep stderr for any message
|
||||
# that says an option was ignored or not supported.
|
||||
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
||||
# icc: Command line warning: ignoring option '-M'; no argument required
|
||||
# The diagnosis changed in icc 8.0:
|
||||
# icc: Command line remark: option '-MP' not supported
|
||||
if (grep 'ignoring option' conftest.err ||
|
||||
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
||||
am_cv_$1_dependencies_compiler_type=$depmode
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
cd ..
|
||||
rm -rf conftest.dir
|
||||
else
|
||||
am_cv_$1_dependencies_compiler_type=none
|
||||
fi
|
||||
])
|
||||
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
||||
AM_CONDITIONAL([am__fastdep$1], [
|
||||
test "x$enable_dependency_tracking" != xno \
|
||||
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
||||
])
|
||||
|
||||
|
||||
# AM_SET_DEPDIR
|
||||
# -------------
|
||||
# Choose a directory name for dependency files.
|
||||
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
|
||||
AC_DEFUN([AM_SET_DEPDIR],
|
||||
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
||||
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
||||
])
|
||||
|
||||
|
||||
# AM_DEP_TRACK
|
||||
# ------------
|
||||
AC_DEFUN([AM_DEP_TRACK],
|
||||
[AC_ARG_ENABLE(dependency-tracking,
|
||||
[ --disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors])
|
||||
if test "x$enable_dependency_tracking" != xno; then
|
||||
am_depcomp="$ac_aux_dir/depcomp"
|
||||
AMDEPBACKSLASH='\'
|
||||
fi
|
||||
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
||||
AC_SUBST([AMDEPBACKSLASH])
|
||||
])
|
||||
|
||||
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
#serial 3
|
||||
|
||||
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
# ------------------------------
|
||||
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[for mf in $CONFIG_FILES; do
|
||||
# Strip MF so we end up with the name of the file.
|
||||
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
||||
# Check whether this is an Automake generated Makefile or not.
|
||||
# We used to match only the files named `Makefile.in', but
|
||||
# some people rename them; so instead we look at the file content.
|
||||
# Grep'ing the first line is not enough: some people post-process
|
||||
# each Makefile.in and add a new line on top of each file to say so.
|
||||
# So let's grep whole file.
|
||||
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
|
||||
dirpart=`AS_DIRNAME("$mf")`
|
||||
else
|
||||
continue
|
||||
fi
|
||||
# Extract the definition of DEPDIR, am__include, and am__quote
|
||||
# from the Makefile without running `make'.
|
||||
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
||||
test -z "$DEPDIR" && continue
|
||||
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
||||
test -z "am__include" && continue
|
||||
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
||||
# When using ansi2knr, U may be empty or an underscore; expand it
|
||||
U=`sed -n 's/^U = //p' < "$mf"`
|
||||
# Find all dependency output files, they are included files with
|
||||
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
||||
# simplest approach to changing $(DEPDIR) to its actual value in the
|
||||
# expansion.
|
||||
for file in `sed -n "
|
||||
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
||||
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
||||
# Make sure the directory exists.
|
||||
test -f "$dirpart/$file" && continue
|
||||
fdir=`AS_DIRNAME(["$file"])`
|
||||
AS_MKDIR_P([$dirpart/$fdir])
|
||||
# echo "creating $dirpart/$file"
|
||||
echo '# dummy' > "$dirpart/$file"
|
||||
done
|
||||
done
|
||||
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
|
||||
|
||||
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
# -----------------------------
|
||||
# This macro should only be invoked once -- use via AC_REQUIRE.
|
||||
#
|
||||
# This code is only required when automatic dependency tracking
|
||||
# is enabled. FIXME. This creates each `.P' file that we will
|
||||
# need in order to bootstrap the dependency handling code.
|
||||
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[AC_CONFIG_COMMANDS([depfiles],
|
||||
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
||||
])
|
||||
|
||||
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 8
|
||||
|
||||
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
|
||||
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
|
||||
|
||||
# Do all the work for Automake. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 12
|
||||
|
||||
# This macro actually does too much. Some checks are only needed if
|
||||
# your package does certain things. But this isn't really a big deal.
|
||||
|
||||
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
||||
# AM_INIT_AUTOMAKE([OPTIONS])
|
||||
# -----------------------------------------------
|
||||
# The call with PACKAGE and VERSION arguments is the old style
|
||||
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
||||
# and VERSION should now be passed to AC_INIT and removed from
|
||||
# the call to AM_INIT_AUTOMAKE.
|
||||
# We support both call styles for the transition. After
|
||||
# the next Automake release, Autoconf can make the AC_INIT
|
||||
# arguments mandatory, and then we can depend on a new Autoconf
|
||||
# release and drop the old call support.
|
||||
AC_DEFUN([AM_INIT_AUTOMAKE],
|
||||
[AC_PREREQ([2.58])dnl
|
||||
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
||||
dnl the ones we care about.
|
||||
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
||||
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
||||
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
||||
# test to see if srcdir already configured
|
||||
if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
||||
test -f $srcdir/config.status; then
|
||||
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
||||
fi
|
||||
|
||||
# test whether we have cygpath
|
||||
if test -z "$CYGPATH_W"; then
|
||||
if (cygpath --version) >/dev/null 2>/dev/null; then
|
||||
CYGPATH_W='cygpath -w'
|
||||
else
|
||||
CYGPATH_W=echo
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([CYGPATH_W])
|
||||
|
||||
# Define the identity of the package.
|
||||
dnl Distinguish between old-style and new-style calls.
|
||||
m4_ifval([$2],
|
||||
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
||||
AC_SUBST([PACKAGE], [$1])dnl
|
||||
AC_SUBST([VERSION], [$2])],
|
||||
[_AM_SET_OPTIONS([$1])dnl
|
||||
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
||||
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
||||
|
||||
_AM_IF_OPTION([no-define],,
|
||||
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
||||
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
||||
|
||||
# Some tools Automake needs.
|
||||
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
||||
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
||||
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
||||
AM_MISSING_PROG(AUTOCONF, autoconf)
|
||||
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
||||
AM_MISSING_PROG(AUTOHEADER, autoheader)
|
||||
AM_MISSING_PROG(MAKEINFO, makeinfo)
|
||||
AM_PROG_INSTALL_SH
|
||||
AM_PROG_INSTALL_STRIP
|
||||
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
|
||||
# We need awk for the "check" target. The system "awk" is bad on
|
||||
# some platforms.
|
||||
AC_REQUIRE([AC_PROG_AWK])dnl
|
||||
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
||||
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
||||
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
||||
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
||||
[_AM_PROG_TAR([v7])])])
|
||||
_AM_IF_OPTION([no-dependencies],,
|
||||
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
||||
[_AM_DEPENDENCIES(CC)],
|
||||
[define([AC_PROG_CC],
|
||||
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
||||
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
||||
[_AM_DEPENDENCIES(CXX)],
|
||||
[define([AC_PROG_CXX],
|
||||
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
||||
])
|
||||
])
|
||||
|
||||
|
||||
# When config.status generates a header, we must update the stamp-h file.
|
||||
# This file resides in the same directory as the config header
|
||||
# that is generated. The stamp files are numbered to have different names.
|
||||
|
||||
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
||||
# loop where config.status creates the headers, so we can generate
|
||||
# our stamp files there.
|
||||
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
||||
[# Compute $1's index in $config_headers.
|
||||
_am_stamp_count=1
|
||||
for _am_header in $config_headers :; do
|
||||
case $_am_header in
|
||||
$1 | $1:* )
|
||||
break ;;
|
||||
* )
|
||||
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
||||
esac
|
||||
done
|
||||
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
|
||||
|
||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_PROG_INSTALL_SH
|
||||
# ------------------
|
||||
# Define $install_sh.
|
||||
AC_DEFUN([AM_PROG_INSTALL_SH],
|
||||
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
||||
install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
||||
AC_SUBST(install_sh)])
|
||||
|
||||
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 2
|
||||
|
||||
# Check whether the underlying file-system supports filenames
|
||||
# with a leading dot. For instance MS-DOS doesn't.
|
||||
AC_DEFUN([AM_SET_LEADING_DOT],
|
||||
[rm -rf .tst 2>/dev/null
|
||||
mkdir .tst 2>/dev/null
|
||||
if test -d .tst; then
|
||||
am__leading_dot=.
|
||||
else
|
||||
am__leading_dot=_
|
||||
fi
|
||||
rmdir .tst 2>/dev/null
|
||||
AC_SUBST([am__leading_dot])])
|
||||
|
||||
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 3
|
||||
|
||||
# AM_MAKE_INCLUDE()
|
||||
# -----------------
|
||||
# Check to see how make treats includes.
|
||||
AC_DEFUN([AM_MAKE_INCLUDE],
|
||||
[am_make=${MAKE-make}
|
||||
cat > confinc << 'END'
|
||||
am__doit:
|
||||
@echo done
|
||||
.PHONY: am__doit
|
||||
END
|
||||
# If we don't find an include directive, just comment out the code.
|
||||
AC_MSG_CHECKING([for style of include used by $am_make])
|
||||
am__include="#"
|
||||
am__quote=
|
||||
_am_result=none
|
||||
# First try GNU make style include.
|
||||
echo "include confinc" > confmf
|
||||
# We grep out `Entering directory' and `Leaving directory'
|
||||
# messages which can occur if `w' ends up in MAKEFLAGS.
|
||||
# In particular we don't look at `^make:' because GNU make might
|
||||
# be invoked under some other name (usually "gmake"), in which
|
||||
# case it prints its new name instead of `make'.
|
||||
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
||||
am__include=include
|
||||
am__quote=
|
||||
_am_result=GNU
|
||||
fi
|
||||
# Now try BSD make style include.
|
||||
if test "$am__include" = "#"; then
|
||||
echo '.include "confinc"' > confmf
|
||||
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
||||
am__include=.include
|
||||
am__quote="\""
|
||||
_am_result=BSD
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([am__include])
|
||||
AC_SUBST([am__quote])
|
||||
AC_MSG_RESULT([$_am_result])
|
||||
rm -f confinc confmf
|
||||
])
|
||||
|
||||
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 4
|
||||
|
||||
# AM_MISSING_PROG(NAME, PROGRAM)
|
||||
# ------------------------------
|
||||
AC_DEFUN([AM_MISSING_PROG],
|
||||
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
||||
$1=${$1-"${am_missing_run}$2"}
|
||||
AC_SUBST($1)])
|
||||
|
||||
|
||||
# AM_MISSING_HAS_RUN
|
||||
# ------------------
|
||||
# Define MISSING if not defined so far and test if it supports --run.
|
||||
# If it does, set am_missing_run to use it, otherwise, to nothing.
|
||||
AC_DEFUN([AM_MISSING_HAS_RUN],
|
||||
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
||||
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
||||
# Use eval to expand $SHELL
|
||||
if eval "$MISSING --run true"; then
|
||||
am_missing_run="$MISSING --run "
|
||||
else
|
||||
am_missing_run=
|
||||
AC_MSG_WARN([`missing' script is too old or missing])
|
||||
fi
|
||||
])
|
||||
|
||||
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_PROG_MKDIR_P
|
||||
# ---------------
|
||||
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
|
||||
#
|
||||
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
|
||||
# created by `make install' are always world readable, even if the
|
||||
# installer happens to have an overly restrictive umask (e.g. 077).
|
||||
# This was a mistake. There are at least two reasons why we must not
|
||||
# use `-m 0755':
|
||||
# - it causes special bits like SGID to be ignored,
|
||||
# - it may be too restrictive (some setups expect 775 directories).
|
||||
#
|
||||
# Do not use -m 0755 and let people choose whatever they expect by
|
||||
# setting umask.
|
||||
#
|
||||
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
|
||||
# Some implementations (such as Solaris 8's) are not thread-safe: if a
|
||||
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
|
||||
# concurrently, both version can detect that a/ is missing, but only
|
||||
# one can create it and the other will error out. Consequently we
|
||||
# restrict ourselves to GNU make (using the --version option ensures
|
||||
# this.)
|
||||
AC_DEFUN([AM_PROG_MKDIR_P],
|
||||
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
||||
# We used to keeping the `.' as first argument, in order to
|
||||
# allow $(mkdir_p) to be used without argument. As in
|
||||
# $(mkdir_p) $(somedir)
|
||||
# where $(somedir) is conditionally defined. However this is wrong
|
||||
# for two reasons:
|
||||
# 1. if the package is installed by a user who cannot write `.'
|
||||
# make install will fail,
|
||||
# 2. the above comment should most certainly read
|
||||
# $(mkdir_p) $(DESTDIR)$(somedir)
|
||||
# so it does not work when $(somedir) is undefined and
|
||||
# $(DESTDIR) is not.
|
||||
# To support the latter case, we have to write
|
||||
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
|
||||
# so the `.' trick is pointless.
|
||||
mkdir_p='mkdir -p --'
|
||||
else
|
||||
# On NextStep and OpenStep, the `mkdir' command does not
|
||||
# recognize any option. It will interpret all options as
|
||||
# directories to create, and then abort because `.' already
|
||||
# exists.
|
||||
for d in ./-p ./--version;
|
||||
do
|
||||
test -d $d && rmdir $d
|
||||
done
|
||||
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
|
||||
if test -f "$ac_aux_dir/mkinstalldirs"; then
|
||||
mkdir_p='$(mkinstalldirs)'
|
||||
else
|
||||
mkdir_p='$(install_sh) -d'
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([mkdir_p])])
|
||||
|
||||
# Helper functions for option handling. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 3
|
||||
|
||||
# _AM_MANGLE_OPTION(NAME)
|
||||
# -----------------------
|
||||
AC_DEFUN([_AM_MANGLE_OPTION],
|
||||
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
||||
|
||||
# _AM_SET_OPTION(NAME)
|
||||
# ------------------------------
|
||||
# Set option NAME. Presently that only means defining a flag for this option.
|
||||
AC_DEFUN([_AM_SET_OPTION],
|
||||
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
||||
|
||||
# _AM_SET_OPTIONS(OPTIONS)
|
||||
# ----------------------------------
|
||||
# OPTIONS is a space-separated list of Automake options.
|
||||
AC_DEFUN([_AM_SET_OPTIONS],
|
||||
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
||||
|
||||
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
||||
# -------------------------------------------
|
||||
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
||||
AC_DEFUN([_AM_IF_OPTION],
|
||||
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
||||
|
||||
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 4
|
||||
|
||||
# AM_SANITY_CHECK
|
||||
# ---------------
|
||||
AC_DEFUN([AM_SANITY_CHECK],
|
||||
[AC_MSG_CHECKING([whether build environment is sane])
|
||||
# Just in case
|
||||
sleep 1
|
||||
echo timestamp > conftest.file
|
||||
# Do `set' in a subshell so we don't clobber the current shell's
|
||||
# arguments. Must try -L first in case configure is actually a
|
||||
# symlink; some systems play weird games with the mod time of symlinks
|
||||
# (eg FreeBSD returns the mod time of the symlink's containing
|
||||
# directory).
|
||||
if (
|
||||
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
||||
if test "$[*]" = "X"; then
|
||||
# -L didn't work.
|
||||
set X `ls -t $srcdir/configure conftest.file`
|
||||
fi
|
||||
rm -f conftest.file
|
||||
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
||||
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
||||
|
||||
# If neither matched, then we have a broken ls. This can happen
|
||||
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
||||
# broken ls alias from the environment. This has actually
|
||||
# happened. Such a system could not be considered "sane".
|
||||
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
||||
alias in your environment])
|
||||
fi
|
||||
|
||||
test "$[2]" = conftest.file
|
||||
)
|
||||
then
|
||||
# Ok.
|
||||
:
|
||||
else
|
||||
AC_MSG_ERROR([newly created file is older than distributed files!
|
||||
Check your system clock])
|
||||
fi
|
||||
AC_MSG_RESULT(yes)])
|
||||
|
||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_PROG_INSTALL_STRIP
|
||||
# ---------------------
|
||||
# One issue with vendor `install' (even GNU) is that you can't
|
||||
# specify the program used to strip binaries. This is especially
|
||||
# annoying in cross-compiling environments, where the build's strip
|
||||
# is unlikely to handle the host's binaries.
|
||||
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
||||
# always use install-sh in `make install-strip', and initialize
|
||||
# STRIPPROG with the value of the STRIP variable (set by the user).
|
||||
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
||||
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
||||
# Installed binaries are usually stripped using `strip' when the user
|
||||
# run `make install-strip'. However `strip' might not be the right
|
||||
# tool to use in cross-compilation environments, therefore Automake
|
||||
# will honor the `STRIP' environment variable to overrule this program.
|
||||
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
|
||||
if test "$cross_compiling" != no; then
|
||||
AC_CHECK_TOOL([STRIP], [strip], :)
|
||||
fi
|
||||
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
||||
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
||||
|
||||
# Check how to create a tarball. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 2
|
||||
|
||||
# _AM_PROG_TAR(FORMAT)
|
||||
# --------------------
|
||||
# Check how to create a tarball in format FORMAT.
|
||||
# FORMAT should be one of `v7', `ustar', or `pax'.
|
||||
#
|
||||
# Substitute a variable $(am__tar) that is a command
|
||||
# writing to stdout a FORMAT-tarball containing the directory
|
||||
# $tardir.
|
||||
# tardir=directory && $(am__tar) > result.tar
|
||||
#
|
||||
# Substitute a variable $(am__untar) that extract such
|
||||
# a tarball read from stdin.
|
||||
# $(am__untar) < result.tar
|
||||
AC_DEFUN([_AM_PROG_TAR],
|
||||
[# Always define AMTAR for backward compatibility.
|
||||
AM_MISSING_PROG([AMTAR], [tar])
|
||||
m4_if([$1], [v7],
|
||||
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
|
||||
[m4_case([$1], [ustar],, [pax],,
|
||||
[m4_fatal([Unknown tar format])])
|
||||
AC_MSG_CHECKING([how to create a $1 tar archive])
|
||||
# Loop over all known methods to create a tar archive until one works.
|
||||
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
||||
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
||||
# Do not fold the above two line into one, because Tru64 sh and
|
||||
# Solaris sh will not grok spaces in the rhs of `-'.
|
||||
for _am_tool in $_am_tools
|
||||
do
|
||||
case $_am_tool in
|
||||
gnutar)
|
||||
for _am_tar in tar gnutar gtar;
|
||||
do
|
||||
AM_RUN_LOG([$_am_tar --version]) && break
|
||||
done
|
||||
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
||||
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
||||
am__untar="$_am_tar -xf -"
|
||||
;;
|
||||
plaintar)
|
||||
# Must skip GNU tar: if it does not support --format= it doesn't create
|
||||
# ustar tarball either.
|
||||
(tar --version) >/dev/null 2>&1 && continue
|
||||
am__tar='tar chf - "$$tardir"'
|
||||
am__tar_='tar chf - "$tardir"'
|
||||
am__untar='tar xf -'
|
||||
;;
|
||||
pax)
|
||||
am__tar='pax -L -x $1 -w "$$tardir"'
|
||||
am__tar_='pax -L -x $1 -w "$tardir"'
|
||||
am__untar='pax -r'
|
||||
;;
|
||||
cpio)
|
||||
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
||||
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
||||
am__untar='cpio -i -H $1 -d'
|
||||
;;
|
||||
none)
|
||||
am__tar=false
|
||||
am__tar_=false
|
||||
am__untar=false
|
||||
;;
|
||||
esac
|
||||
|
||||
# If the value was cached, stop now. We just wanted to have am__tar
|
||||
# and am__untar set.
|
||||
test -n "${am_cv_prog_tar_$1}" && break
|
||||
|
||||
# tar/untar a dummy directory, and stop if the command works
|
||||
rm -rf conftest.dir
|
||||
mkdir conftest.dir
|
||||
echo GrepMe > conftest.dir/file
|
||||
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
||||
rm -rf conftest.dir
|
||||
if test -s conftest.tar; then
|
||||
AM_RUN_LOG([$am__untar <conftest.tar])
|
||||
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
||||
fi
|
||||
done
|
||||
rm -rf conftest.dir
|
||||
|
||||
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
||||
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
||||
AC_SUBST([am__tar])
|
||||
AC_SUBST([am__untar])
|
||||
]) # _AM_PROG_TAR
|
||||
|
||||
m4_include([acinclude.m4])
|
@ -0,0 +1,11 @@
|
||||
Begin4
|
||||
Title: aKode
|
||||
Version: 2.0.2
|
||||
Entered-date: 2007-04-06
|
||||
Description: Audio decoding library
|
||||
Keywords: KDE desktop audio
|
||||
Author: Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
Primary-site: http://carewolf.com/akode
|
||||
Platforms: Unix
|
||||
Copying-policy: LGPL
|
||||
End
|
@ -0,0 +1,3 @@
|
||||
bin_SCRIPTS = akode-config
|
||||
|
||||
SUBDIRS= lib plugins akodeplay
|
@ -0,0 +1,679 @@
|
||||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# KDE tags expanded automatically by am_edit - $Revision: 483858 $
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = ..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
target_triplet = @target@
|
||||
subdir = akode
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
||||
$(srcdir)/akode-config.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
|
||||
CONFIG_HEADER = $(top_builddir)/config.h \
|
||||
$(top_builddir)/akode/lib/akode_export.h
|
||||
CONFIG_CLEAN_FILES = akode-config
|
||||
am__installdirs = "$(DESTDIR)$(bindir)"
|
||||
binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
|
||||
SCRIPTS = $(bin_SCRIPTS)
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
#>- RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
#>- html-recursive info-recursive install-data-recursive \
|
||||
#>- install-exec-recursive install-info-recursive \
|
||||
#>- install-recursive installcheck-recursive installdirs-recursive \
|
||||
#>- pdf-recursive ps-recursive uninstall-info-recursive \
|
||||
#>- uninstall-recursive
|
||||
#>+ 6
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
html-recursive info-recursive install-data-recursive \
|
||||
install-exec-recursive install-info-recursive \
|
||||
install-recursive installcheck-recursive installdirs-recursive \
|
||||
pdf-recursive ps-recursive uninstall-info-recursive \
|
||||
uninstall-recursive nmcheck-recursive bcheck-recursive
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
#>+ 1
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AKODE_LIBDL = @AKODE_LIBDL@
|
||||
ALSA_CFLAGS = @ALSA_CFLAGS@
|
||||
ALSA_LIBS = @ALSA_LIBS@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTODIRS = @AUTODIRS@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AVCODEC_CFLAGS = @AVCODEC_CFLAGS@
|
||||
AVCODEC_LDFLAGS = @AVCODEC_LDFLAGS@
|
||||
AVCODEC_LIBADD = @AVCODEC_LIBADD@
|
||||
AVFORMAT_CFLAGS = @AVFORMAT_CFLAGS@
|
||||
AVFORMAT_LDFLAGS = @AVFORMAT_LDFLAGS@
|
||||
AVFORMAT_LIBADD = @AVFORMAT_LIBADD@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CONF_FILES = @CONF_FILES@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
ECHO = @ECHO@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
ENABLE_PERMISSIVE_FLAG = @ENABLE_PERMISSIVE_FLAG@
|
||||
EXEEXT = @EXEEXT@
|
||||
F77 = @F77@
|
||||
FFLAGS = @FFLAGS@
|
||||
GREP = @GREP@
|
||||
HAVE_GCC_VISIBILITY = @HAVE_GCC_VISIBILITY@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
JACK_CFLAGS = @JACK_CFLAGS@
|
||||
JACK_LDFLAGS = @JACK_LDFLAGS@
|
||||
JACK_LIBADD = @JACK_LIBADD@
|
||||
KDE_CHECK_PLUGIN = @KDE_CHECK_PLUGIN@
|
||||
KDE_NO_UNDEFINED = @KDE_NO_UNDEFINED@
|
||||
KDE_PLUGIN = @KDE_PLUGIN@
|
||||
KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@
|
||||
KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@
|
||||
KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@
|
||||
KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@
|
||||
KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
|
||||
KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LDFLAGS_AS_NEEDED = @LDFLAGS_AS_NEEDED@
|
||||
LDFLAGS_NEW_DTAGS = @LDFLAGS_NEW_DTAGS@
|
||||
LIBFLAC = @LIBFLAC@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBOGGFLAC = @LIBOGGFLAC@
|
||||
LIBOSSAUDIO = @LIBOSSAUDIO@
|
||||
LIBPTHREAD = @LIBPTHREAD@
|
||||
LIBS = @LIBS@
|
||||
LIBSAMPLERATE = @LIBSAMPLERATE@
|
||||
LIBSEM = @LIBSEM@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MADLIBS = @MADLIBS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
NOOPT_CFLAGS = @NOOPT_CFLAGS@
|
||||
NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
POLYP_CFLAGS = @POLYP_CFLAGS@
|
||||
POLYP_LDFLAGS = @POLYP_LDFLAGS@
|
||||
POLYP_LIBADD = @POLYP_LIBADD@
|
||||
RANLIB = @RANLIB@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SPEEXLIBS = @SPEEXLIBS@
|
||||
STRIP = @STRIP@
|
||||
TOPSUBDIRS = @TOPSUBDIRS@
|
||||
USER_INCLUDES = @USER_INCLUDES@
|
||||
USER_LDFLAGS = @USER_LDFLAGS@
|
||||
USE_EXCEPTIONS = @USE_EXCEPTIONS@
|
||||
USE_RTTI = @USE_RTTI@
|
||||
VERSION = @VERSION@
|
||||
VORBISFILE_LIBS = @VORBISFILE_LIBS@
|
||||
VORBIS_LIBS = @VORBIS_LIBS@
|
||||
WOVERLOADED_VIRTUAL = @WOVERLOADED_VIRTUAL@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_F77 = @ac_ct_F77@
|
||||
akode_SUBDIR_included_FALSE = @akode_SUBDIR_included_FALSE@
|
||||
akode_SUBDIR_included_TRUE = @akode_SUBDIR_included_TRUE@
|
||||
all_includes = @all_includes@
|
||||
all_libraries = @all_libraries@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
|
||||
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
include_alsa_sink_FALSE = @include_alsa_sink_FALSE@
|
||||
include_alsa_sink_TRUE = @include_alsa_sink_TRUE@
|
||||
include_ffmpeg_decoder_FALSE = @include_ffmpeg_decoder_FALSE@
|
||||
include_ffmpeg_decoder_TRUE = @include_ffmpeg_decoder_TRUE@
|
||||
include_jack_sink_FALSE = @include_jack_sink_FALSE@
|
||||
include_jack_sink_TRUE = @include_jack_sink_TRUE@
|
||||
include_mpeg_decoder_FALSE = @include_mpeg_decoder_FALSE@
|
||||
include_mpeg_decoder_TRUE = @include_mpeg_decoder_TRUE@
|
||||
include_oss_sink_FALSE = @include_oss_sink_FALSE@
|
||||
include_oss_sink_TRUE = @include_oss_sink_TRUE@
|
||||
include_polyp_sink_FALSE = @include_polyp_sink_FALSE@
|
||||
include_polyp_sink_TRUE = @include_polyp_sink_TRUE@
|
||||
include_src_resampler_FALSE = @include_src_resampler_FALSE@
|
||||
include_src_resampler_TRUE = @include_src_resampler_TRUE@
|
||||
include_sun_sink_FALSE = @include_sun_sink_FALSE@
|
||||
include_sun_sink_TRUE = @include_sun_sink_TRUE@
|
||||
include_xiph_decoder_FALSE = @include_xiph_decoder_FALSE@
|
||||
include_xiph_decoder_TRUE = @include_xiph_decoder_TRUE@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target = @target@
|
||||
target_alias = @target_alias@
|
||||
target_cpu = @target_cpu@
|
||||
target_os = @target_os@
|
||||
target_vendor = @target_vendor@
|
||||
unsermake_enable_pch_FALSE = @unsermake_enable_pch_FALSE@
|
||||
unsermake_enable_pch_TRUE = @unsermake_enable_pch_TRUE@
|
||||
bin_SCRIPTS = akode-config
|
||||
SUBDIRS = lib plugins akodeplay
|
||||
#>- all: all-recursive
|
||||
#>+ 1
|
||||
all: docs-am all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
#>- @for dep in $?; do \
|
||||
#>- case '$(am__configure_deps)' in \
|
||||
#>- *$$dep*) \
|
||||
#>- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
#>- && exit 0; \
|
||||
#>- exit 1;; \
|
||||
#>- esac; \
|
||||
#>- done; \
|
||||
#>- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu akode/Makefile'; \
|
||||
#>- cd $(top_srcdir) && \
|
||||
#>- $(AUTOMAKE) --gnu akode/Makefile
|
||||
#>+ 12
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu akode/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu akode/Makefile
|
||||
cd $(top_srcdir) && perl admin/am_edit akode/Makefile.in
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
akode-config: $(top_builddir)/config.status $(srcdir)/akode-config.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
|
||||
install-binSCRIPTS: $(bin_SCRIPTS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
|
||||
@list='$(bin_SCRIPTS)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
if test -f $$d$$p; then \
|
||||
f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
|
||||
echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \
|
||||
$(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-binSCRIPTS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(bin_SCRIPTS)'; for p in $$list; do \
|
||||
f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
|
||||
echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(bindir)/$$f"; \
|
||||
done
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool
|
||||
uninstall-info-am:
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
$(RECURSIVE_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
rev=''; for subdir in $$list; do \
|
||||
if test "$$subdir" = "."; then :; else \
|
||||
rev="$$subdir $$rev"; \
|
||||
fi; \
|
||||
done; \
|
||||
rev="$$rev ."; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
ctags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d "$(distdir)/$$subdir" \
|
||||
|| $(mkdir_p) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
distdir=`$(am__cd) $(distdir) && pwd`; \
|
||||
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
||||
(cd $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$top_distdir" \
|
||||
distdir="$$distdir/$$subdir" \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile $(SCRIPTS)
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
for dir in "$(DESTDIR)$(bindir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
#>- clean: clean-recursive
|
||||
#>+ 1
|
||||
clean: kde-rpo-clean clean-recursive
|
||||
|
||||
#>- clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
#>+ 1
|
||||
clean-am: clean-bcheck clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-libtool \
|
||||
distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-exec-am: install-binSCRIPTS
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-binSCRIPTS uninstall-info-am
|
||||
|
||||
uninstall-info: uninstall-info-recursive
|
||||
|
||||
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
|
||||
clean clean-generic clean-libtool clean-recursive ctags \
|
||||
ctags-recursive distclean distclean-generic distclean-libtool \
|
||||
distclean-recursive distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-binSCRIPTS \
|
||||
install-data install-data-am install-exec install-exec-am \
|
||||
install-info install-info-am install-man install-strip \
|
||||
installcheck installcheck-am installdirs installdirs-am \
|
||||
maintainer-clean maintainer-clean-generic \
|
||||
maintainer-clean-recursive mostlyclean mostlyclean-generic \
|
||||
mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
|
||||
tags tags-recursive uninstall uninstall-am \
|
||||
uninstall-binSCRIPTS uninstall-info-am
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
|
||||
#>+ 2
|
||||
KDE_DIST=configure.in.bot Makefile.in akode-config.in configure.in.in Makefile.am PACKAGING
|
||||
|
||||
#>+ 2
|
||||
docs-am:
|
||||
|
||||
#>+ 15
|
||||
force-reedit:
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu akode/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu akode/Makefile
|
||||
cd $(top_srcdir) && perl admin/am_edit akode/Makefile.in
|
||||
|
||||
|
||||
#>+ 21
|
||||
clean-bcheck:
|
||||
rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
|
||||
|
||||
bcheck: bcheck-recursive
|
||||
|
||||
bcheck-am:
|
||||
@for i in ; do \
|
||||
if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
|
||||
echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
|
||||
echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
|
||||
echo "$$i"; \
|
||||
if ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS) --dump-class-hierarchy -c $$i.bchecktest.cc; then \
|
||||
rm -f $$i.bchecktest.cc; exit 1; \
|
||||
fi ; \
|
||||
echo "" >> $$i.bchecktest.cc.class; \
|
||||
perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
|
||||
rm -f a.out; \
|
||||
fi ; \
|
||||
done
|
||||
|
||||
|
||||
#>+ 3
|
||||
final:
|
||||
$(MAKE) all-am
|
||||
|
||||
#>+ 3
|
||||
final-install:
|
||||
$(MAKE) install-am
|
||||
|
||||
#>+ 3
|
||||
no-final:
|
||||
$(MAKE) all-am
|
||||
|
||||
#>+ 3
|
||||
no-final-install:
|
||||
$(MAKE) install-am
|
||||
|
||||
#>+ 3
|
||||
kde-rpo-clean:
|
||||
-rm -f *.rpo
|
||||
|
||||
#>+ 3
|
||||
nmcheck:
|
||||
nmcheck-am: nmcheck
|
@ -0,0 +1,15 @@
|
||||
The plugins are designed for being packaged and installed separately of akodelib.
|
||||
|
||||
Take especially note of the following:
|
||||
- Do not install mpeg_decoder if you have software patent concerns
|
||||
- Do not install src_resampler and mpeg_decoder if you want a pure LGPL
|
||||
library since they are both derived of GPL libraries.
|
||||
- If you wish to install plugins in a non-standard place, you can change the
|
||||
AKODE_SEARCHDIR definition in lib/pluginhandler.cpp.
|
||||
- You SHOULD not install sinks for backends you don't use. Thus jack_sink
|
||||
should only be installed when jackd is available, polyp_sink only when
|
||||
the polypaudio server is used and alsa_sink only when using a Linux kernel
|
||||
with ALSA drivers.
|
||||
When using direct aKode playback sinks will be autodetected by loading and
|
||||
probing plugins in this order: polyp, jack, alsa, oss
|
||||
|
@ -0,0 +1,55 @@
|
||||
#!/bin/sh
|
||||
|
||||
usage()
|
||||
{
|
||||
echo "usage: $0 [OPTIONS]"
|
||||
cat << EOH
|
||||
|
||||
options:
|
||||
[--libs]
|
||||
[--cflags]
|
||||
[--version]
|
||||
[--prefix]
|
||||
EOH
|
||||
exit 1;
|
||||
}
|
||||
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
flags=""
|
||||
|
||||
if test $# -eq 0 ; then
|
||||
usage
|
||||
fi
|
||||
|
||||
while test $# -gt 0
|
||||
do
|
||||
case $1 in
|
||||
--libs)
|
||||
flags="$flags -L$libdir -lakode"
|
||||
;;
|
||||
--cflags)
|
||||
flags="$flags -I$includedir"
|
||||
;;
|
||||
--version)
|
||||
echo 2.0.2
|
||||
;;
|
||||
--prefix)
|
||||
echo $prefix
|
||||
;;
|
||||
*)
|
||||
echo "$0: unknown option $1"
|
||||
echo
|
||||
usage
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
if test -n "$flags"
|
||||
then
|
||||
echo $flags
|
||||
fi
|
@ -0,0 +1,9 @@
|
||||
INCLUDES= -I$(top_srcdir)/akode/lib -I$(top_builddir)/akode/lib $(all_includes)
|
||||
|
||||
bin_PROGRAMS = akodeplay
|
||||
|
||||
akodeplay_SOURCES = akodeplay.cpp
|
||||
akodeplay_LDFLAGS = $(all_libraries)
|
||||
akodeplay_LDADD = ../lib/libakode.la
|
||||
|
||||
EXTRA_DIST =
|
@ -0,0 +1,633 @@
|
||||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# KDE tags expanded automatically by am_edit - $Revision: 483858 $
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = ../..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
target_triplet = @target@
|
||||
bin_PROGRAMS = akodeplay$(EXEEXT)
|
||||
subdir = akode/akodeplay
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
|
||||
CONFIG_HEADER = $(top_builddir)/config.h \
|
||||
$(top_builddir)/akode/lib/akode_export.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
am__installdirs = "$(DESTDIR)$(bindir)"
|
||||
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
|
||||
PROGRAMS = $(bin_PROGRAMS)
|
||||
am_akodeplay_OBJECTS = akodeplay.$(OBJEXT)
|
||||
#>- akodeplay_OBJECTS = $(am_akodeplay_OBJECTS)
|
||||
#>+ 1
|
||||
akodeplay_OBJECTS = akodeplay.$(OBJEXT)
|
||||
akodeplay_DEPENDENCIES = ../lib/libakode.la
|
||||
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -I$(top_builddir)/akode/lib
|
||||
depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
#>- CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||
#>- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||
#>+ 2
|
||||
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS)
|
||||
#>- LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
|
||||
#>- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||
#>- $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||
#>+ 3
|
||||
LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
|
||||
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||
$(AM_CXXFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS)
|
||||
CXXLD = $(CXX)
|
||||
#>- CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||||
#>- $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
#>+ 2
|
||||
CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||||
$(CXXFLAGS) $(KDE_CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
SOURCES = $(akodeplay_SOURCES)
|
||||
DIST_SOURCES = $(akodeplay_SOURCES)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
#>+ 1
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AKODE_LIBDL = @AKODE_LIBDL@
|
||||
ALSA_CFLAGS = @ALSA_CFLAGS@
|
||||
ALSA_LIBS = @ALSA_LIBS@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTODIRS = @AUTODIRS@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AVCODEC_CFLAGS = @AVCODEC_CFLAGS@
|
||||
AVCODEC_LDFLAGS = @AVCODEC_LDFLAGS@
|
||||
AVCODEC_LIBADD = @AVCODEC_LIBADD@
|
||||
AVFORMAT_CFLAGS = @AVFORMAT_CFLAGS@
|
||||
AVFORMAT_LDFLAGS = @AVFORMAT_LDFLAGS@
|
||||
AVFORMAT_LIBADD = @AVFORMAT_LIBADD@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CONF_FILES = @CONF_FILES@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
ECHO = @ECHO@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
ENABLE_PERMISSIVE_FLAG = @ENABLE_PERMISSIVE_FLAG@
|
||||
EXEEXT = @EXEEXT@
|
||||
F77 = @F77@
|
||||
FFLAGS = @FFLAGS@
|
||||
GREP = @GREP@
|
||||
HAVE_GCC_VISIBILITY = @HAVE_GCC_VISIBILITY@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
JACK_CFLAGS = @JACK_CFLAGS@
|
||||
JACK_LDFLAGS = @JACK_LDFLAGS@
|
||||
JACK_LIBADD = @JACK_LIBADD@
|
||||
KDE_CHECK_PLUGIN = @KDE_CHECK_PLUGIN@
|
||||
KDE_NO_UNDEFINED = @KDE_NO_UNDEFINED@
|
||||
KDE_PLUGIN = @KDE_PLUGIN@
|
||||
KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@
|
||||
KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@
|
||||
KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@
|
||||
KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@
|
||||
KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
|
||||
KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LDFLAGS_AS_NEEDED = @LDFLAGS_AS_NEEDED@
|
||||
LDFLAGS_NEW_DTAGS = @LDFLAGS_NEW_DTAGS@
|
||||
LIBFLAC = @LIBFLAC@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBOGGFLAC = @LIBOGGFLAC@
|
||||
LIBOSSAUDIO = @LIBOSSAUDIO@
|
||||
LIBPTHREAD = @LIBPTHREAD@
|
||||
LIBS = @LIBS@
|
||||
LIBSAMPLERATE = @LIBSAMPLERATE@
|
||||
LIBSEM = @LIBSEM@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MADLIBS = @MADLIBS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
NOOPT_CFLAGS = @NOOPT_CFLAGS@
|
||||
NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
POLYP_CFLAGS = @POLYP_CFLAGS@
|
||||
POLYP_LDFLAGS = @POLYP_LDFLAGS@
|
||||
POLYP_LIBADD = @POLYP_LIBADD@
|
||||
RANLIB = @RANLIB@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SPEEXLIBS = @SPEEXLIBS@
|
||||
STRIP = @STRIP@
|
||||
TOPSUBDIRS = @TOPSUBDIRS@
|
||||
USER_INCLUDES = @USER_INCLUDES@
|
||||
USER_LDFLAGS = @USER_LDFLAGS@
|
||||
USE_EXCEPTIONS = @USE_EXCEPTIONS@
|
||||
USE_RTTI = @USE_RTTI@
|
||||
VERSION = @VERSION@
|
||||
VORBISFILE_LIBS = @VORBISFILE_LIBS@
|
||||
VORBIS_LIBS = @VORBIS_LIBS@
|
||||
WOVERLOADED_VIRTUAL = @WOVERLOADED_VIRTUAL@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_F77 = @ac_ct_F77@
|
||||
akode_SUBDIR_included_FALSE = @akode_SUBDIR_included_FALSE@
|
||||
akode_SUBDIR_included_TRUE = @akode_SUBDIR_included_TRUE@
|
||||
all_includes = @all_includes@
|
||||
all_libraries = @all_libraries@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
|
||||
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
include_alsa_sink_FALSE = @include_alsa_sink_FALSE@
|
||||
include_alsa_sink_TRUE = @include_alsa_sink_TRUE@
|
||||
include_ffmpeg_decoder_FALSE = @include_ffmpeg_decoder_FALSE@
|
||||
include_ffmpeg_decoder_TRUE = @include_ffmpeg_decoder_TRUE@
|
||||
include_jack_sink_FALSE = @include_jack_sink_FALSE@
|
||||
include_jack_sink_TRUE = @include_jack_sink_TRUE@
|
||||
include_mpeg_decoder_FALSE = @include_mpeg_decoder_FALSE@
|
||||
include_mpeg_decoder_TRUE = @include_mpeg_decoder_TRUE@
|
||||
include_oss_sink_FALSE = @include_oss_sink_FALSE@
|
||||
include_oss_sink_TRUE = @include_oss_sink_TRUE@
|
||||
include_polyp_sink_FALSE = @include_polyp_sink_FALSE@
|
||||
include_polyp_sink_TRUE = @include_polyp_sink_TRUE@
|
||||
include_src_resampler_FALSE = @include_src_resampler_FALSE@
|
||||
include_src_resampler_TRUE = @include_src_resampler_TRUE@
|
||||
include_sun_sink_FALSE = @include_sun_sink_FALSE@
|
||||
include_sun_sink_TRUE = @include_sun_sink_TRUE@
|
||||
include_xiph_decoder_FALSE = @include_xiph_decoder_FALSE@
|
||||
include_xiph_decoder_TRUE = @include_xiph_decoder_TRUE@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target = @target@
|
||||
target_alias = @target_alias@
|
||||
target_cpu = @target_cpu@
|
||||
target_os = @target_os@
|
||||
target_vendor = @target_vendor@
|
||||
unsermake_enable_pch_FALSE = @unsermake_enable_pch_FALSE@
|
||||
unsermake_enable_pch_TRUE = @unsermake_enable_pch_TRUE@
|
||||
INCLUDES = -I$(top_srcdir)/akode/lib -I$(top_builddir)/akode/lib $(all_includes)
|
||||
akodeplay_SOURCES = akodeplay.cpp
|
||||
akodeplay_LDFLAGS = $(all_libraries)
|
||||
akodeplay_LDADD = ../lib/libakode.la
|
||||
EXTRA_DIST =
|
||||
#>- all: all-am
|
||||
#>+ 1
|
||||
all: docs-am all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .cpp .lo .o .obj
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
#>- @for dep in $?; do \
|
||||
#>- case '$(am__configure_deps)' in \
|
||||
#>- *$$dep*) \
|
||||
#>- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
#>- && exit 0; \
|
||||
#>- exit 1;; \
|
||||
#>- esac; \
|
||||
#>- done; \
|
||||
#>- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu akode/akodeplay/Makefile'; \
|
||||
#>- cd $(top_srcdir) && \
|
||||
#>- $(AUTOMAKE) --gnu akode/akodeplay/Makefile
|
||||
#>+ 12
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu akode/akodeplay/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu akode/akodeplay/Makefile
|
||||
cd $(top_srcdir) && perl admin/am_edit akode/akodeplay/Makefile.in
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
install-binPROGRAMS: $(bin_PROGRAMS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
|
||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
|
||||
if test -f $$p \
|
||||
|| test -f $$p1 \
|
||||
; then \
|
||||
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
|
||||
echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
|
||||
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-binPROGRAMS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||
f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
|
||||
echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(bindir)/$$f"; \
|
||||
done
|
||||
|
||||
clean-binPROGRAMS:
|
||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||
f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
|
||||
echo " rm -f $$p $$f"; \
|
||||
rm -f $$p $$f ; \
|
||||
done
|
||||
akodeplay$(EXEEXT): $(akodeplay_OBJECTS) $(akodeplay_DEPENDENCIES)
|
||||
@rm -f akodeplay$(EXEEXT)
|
||||
$(CXXLINK) $(akodeplay_LDFLAGS) $(akodeplay_OBJECTS) $(akodeplay_LDADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/akodeplay.Po@am__quote@
|
||||
|
||||
.cpp.o:
|
||||
@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
|
||||
|
||||
.cpp.obj:
|
||||
@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
|
||||
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
|
||||
.cpp.lo:
|
||||
@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool
|
||||
uninstall-info-am:
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(PROGRAMS)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(bindir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
#>- clean: clean-am
|
||||
#>+ 1
|
||||
clean: kde-rpo-clean clean-am
|
||||
|
||||
#>- clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
|
||||
#>+ 1
|
||||
clean-am: clean-bcheck clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-libtool distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-exec-am: install-binPROGRAMS
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-binPROGRAMS uninstall-info-am
|
||||
|
||||
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
|
||||
clean-generic clean-libtool ctags distclean distclean-compile \
|
||||
distclean-generic distclean-libtool distclean-tags distdir dvi \
|
||||
dvi-am html html-am info info-am install install-am \
|
||||
install-binPROGRAMS install-data install-data-am install-exec \
|
||||
install-exec-am install-info install-info-am install-man \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||
mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
|
||||
pdf pdf-am ps ps-am tags uninstall uninstall-am \
|
||||
uninstall-binPROGRAMS uninstall-info-am
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
|
||||
#>+ 2
|
||||
KDE_DIST=Makefile.in Makefile.am
|
||||
|
||||
#>+ 2
|
||||
docs-am:
|
||||
|
||||
#>+ 15
|
||||
force-reedit:
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu akode/akodeplay/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu akode/akodeplay/Makefile
|
||||
cd $(top_srcdir) && perl admin/am_edit akode/akodeplay/Makefile.in
|
||||
|
||||
|
||||
#>+ 21
|
||||
clean-bcheck:
|
||||
rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
|
||||
|
||||
bcheck: bcheck-am
|
||||
|
||||
bcheck-am:
|
||||
@for i in ; do \
|
||||
if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
|
||||
echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
|
||||
echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
|
||||
echo "$$i"; \
|
||||
if ! $(CXXCOMPILE) --dump-class-hierarchy -c $$i.bchecktest.cc; then \
|
||||
rm -f $$i.bchecktest.cc; exit 1; \
|
||||
fi ; \
|
||||
echo "" >> $$i.bchecktest.cc.class; \
|
||||
perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
|
||||
rm -f a.out; \
|
||||
fi ; \
|
||||
done
|
||||
|
||||
|
||||
#>+ 3
|
||||
final:
|
||||
$(MAKE) all-am
|
||||
|
||||
#>+ 3
|
||||
final-install:
|
||||
$(MAKE) install-am
|
||||
|
||||
#>+ 3
|
||||
no-final:
|
||||
$(MAKE) all-am
|
||||
|
||||
#>+ 3
|
||||
no-final-install:
|
||||
$(MAKE) install-am
|
||||
|
||||
#>+ 3
|
||||
kde-rpo-clean:
|
||||
-rm -f *.rpo
|
||||
|
||||
#>+ 3
|
||||
nmcheck:
|
||||
nmcheck-am: nmcheck
|
@ -0,0 +1,135 @@
|
||||
/* aKode-utils: akodeplay
|
||||
|
||||
Copyright (C) 2005 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "../lib/akodelib.h"
|
||||
#include "../lib/player.h"
|
||||
#include "../lib/sink.h"
|
||||
#include "../lib/decoder.h"
|
||||
|
||||
#ifdef HAVE_GNU_GETOPT
|
||||
#include <getopt.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
using namespace aKode;
|
||||
|
||||
void usage() {
|
||||
cout << "Usage: akodeplay [-s sink] [-r resampler] [-d decoder] filenames.." << endl;
|
||||
}
|
||||
|
||||
void list_sinks() {
|
||||
cout << "Available sinks:" << endl;
|
||||
list<string> sinks = SinkPluginHandler::listSinkPlugins();
|
||||
for(list<string>::const_iterator s = sinks.begin(); s != sinks.end(); s++)
|
||||
cout << "\t" << *s << endl;
|
||||
}
|
||||
|
||||
void list_decoders() {
|
||||
cout << "Available decoders:" << endl;
|
||||
list<string> plugins = DecoderPluginHandler::listDecoderPlugins();
|
||||
for(list<string>::const_iterator s = plugins.begin(); s != plugins.end(); s++)
|
||||
cout << "\t" << *s << endl;
|
||||
}
|
||||
|
||||
#ifdef HAVE_GNU_GETOPT
|
||||
static struct option longoptions[] = {
|
||||
{"resampler", 1, 0, 'r'},
|
||||
{"decoder", 1, 0, 'd'},
|
||||
{"sink", 1, 0, 's'},
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
#endif
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
const char* resampler_plugin = 0;
|
||||
const char* decoder_plugin = 0;
|
||||
const char* sink_plugin = 0;
|
||||
const char* filename = 0;
|
||||
|
||||
if (argc <= 1) {
|
||||
usage();
|
||||
exit(1);
|
||||
}
|
||||
|
||||
int opt;
|
||||
#ifdef HAVE_GNU_GETOPT
|
||||
while ((opt = getopt_long(argc, argv, "r:d:s:", longoptions, 0)) != -1)
|
||||
#else
|
||||
while ((opt = getopt(argc, argv, "r:d:s:")) != -1)
|
||||
#endif
|
||||
{
|
||||
switch (opt) {
|
||||
case 'r':
|
||||
resampler_plugin = ::optarg;
|
||||
continue;
|
||||
case 'd':
|
||||
decoder_plugin = ::optarg;
|
||||
continue;
|
||||
case 's':
|
||||
sink_plugin = ::optarg;
|
||||
continue;
|
||||
default:
|
||||
usage();
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
aKode::Player player;
|
||||
|
||||
if (!sink_plugin) sink_plugin = "auto";
|
||||
|
||||
if (decoder_plugin)
|
||||
player.setDecoderPlugin(decoder_plugin);
|
||||
|
||||
if (resampler_plugin)
|
||||
player.setResamplerPlugin(resampler_plugin);
|
||||
|
||||
if (!player.open(sink_plugin)) {
|
||||
cout << "Could not load sink-plugin: " << sink_plugin << endl;
|
||||
list_sinks();
|
||||
exit(1);
|
||||
}
|
||||
|
||||
while (::optind < argc) {
|
||||
filename = argv[::optind++];
|
||||
|
||||
if (!player.load(filename)) {
|
||||
cout << "Could not load file: " << filename << endl;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
player.play();
|
||||
player.wait();
|
||||
/*
|
||||
player.play();
|
||||
player.wait();
|
||||
player.play();
|
||||
player.wait();
|
||||
*/
|
||||
player.unload();
|
||||
}
|
||||
player.close();
|
||||
|
||||
return 0;
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
if test "x$have_libFLAC" = "xno"; then
|
||||
echo ">"
|
||||
echo "> You do not seem to have a recent enough libFLAC"
|
||||
echo "> installed. Without it aKode and aRts"
|
||||
echo "> will not be able to play FLAC files."
|
||||
echo "> You need atleast libFLAC 1.0.3 or newer."
|
||||
echo ">"
|
||||
fi
|
||||
|
||||
if test "x$have_libOggFLAC" = "xno"; then
|
||||
echo ">"
|
||||
echo "> You do not seem to have libOggFLAC installed."
|
||||
echo "> Without it aKode and aRts will not be"
|
||||
echo "> able to play Ogg-files with embedded FLAC streams"
|
||||
echo "> You need atleast libOggFLAC 1.1.1 or newer."
|
||||
echo ">"
|
||||
fi
|
||||
|
||||
if test "x$have_libSPEEX" = "xno"; then
|
||||
echo ">"
|
||||
echo "> You do not seem to have libspeex installed."
|
||||
echo "> Without it aKode and aRts will not be"
|
||||
echo "> able to play speex-files and -stream."
|
||||
echo ">"
|
||||
fi
|
||||
|
||||
if test "x$have_oggvorbis" = "xno"; then
|
||||
echo ">"
|
||||
echo "> You do not seem to have libvorbisfile installed."
|
||||
echo "> Without it aKode will not be able to play"
|
||||
echo "> Ogg-files with embedded Vorbis streams"
|
||||
echo "> You need atleast libvorbisfile 1.0 or newer."
|
||||
echo ">"
|
||||
fi
|
||||
|
||||
if test "x$have_libMAD" = "xno"; then
|
||||
echo ">"
|
||||
echo "> You do not seem to have MADlib installed."
|
||||
echo "> Without it aKode will not be able to play"
|
||||
echo "> MPEG-audio this includes the common MP3 format"
|
||||
echo ">"
|
||||
fi
|
||||
|
||||
if test "x$AKODE_LIBDL" = "x" ; then
|
||||
echo ">"
|
||||
echo "> You do not seem to have any dynamic-library manipulation"
|
||||
echo "> library installed. aKode will not be compiled."
|
||||
echo ">"
|
||||
fi
|
||||
|
||||
#if test "x$have_libltdl" = "xno"; then
|
||||
# echo ">"
|
||||
# echo "> You do not seem to have libltdl installed."
|
||||
# echo "> Without it aKode will not work on some platforms."
|
||||
# echo "> Recent Linux, BSDs and Solaris will still work"
|
||||
# echo ">"
|
||||
#fi
|
@ -0,0 +1,503 @@
|
||||
dnl don't remove the below
|
||||
dnl AC_OUTPUT(akode/akode-config)
|
||||
|
||||
AM_CONFIG_HEADER(akode/lib/akode_export.h)
|
||||
|
||||
AC_DEFUN([AC_CHECK_LIBFLAC],
|
||||
[
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_C
|
||||
have_libFLAC=no
|
||||
KDE_CHECK_HEADER(FLAC/seekable_stream_decoder.h,
|
||||
[
|
||||
KDE_CHECK_LIB(FLAC,FLAC__seekable_stream_decoder_process_single,
|
||||
have_libFLAC=yes)
|
||||
|
||||
])
|
||||
if test "x$have_libFLAC" = "xyes"; then
|
||||
LIBFLAC="-lFLAC"
|
||||
AC_DEFINE(HAVE_LIBFLAC, 1,
|
||||
[Define if you have libFLAC 1.1.1 or 1.1.2])
|
||||
fi
|
||||
AC_SUBST(LIBFLAC)
|
||||
AC_LANG_RESTORE
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_CHECK_LIBFLAC113],
|
||||
[
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_C
|
||||
have_libFLAC=no
|
||||
KDE_CHECK_HEADER(FLAC/metadata.h,
|
||||
[
|
||||
KDE_CHECK_LIB(FLAC,FLAC__stream_decoder_seek_absolute,
|
||||
have_libFLAC=yes,,[-lFLAC -logg])
|
||||
|
||||
])
|
||||
if test "x$have_libFLAC" = "xyes"; then
|
||||
LIBFLAC="-lFLAC -logg"
|
||||
AC_DEFINE(HAVE_LIBFLAC113, 1,
|
||||
[Define if you have libFLAC 1.1.3])
|
||||
fi
|
||||
AC_SUBST(LIBFLAC)
|
||||
AC_LANG_RESTORE
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_CHECK_LIBOGGFLAC],
|
||||
[
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_C
|
||||
have_libOggFLAC=no
|
||||
KDE_CHECK_HEADER(OggFLAC/seekable_stream_decoder.h,
|
||||
[
|
||||
KDE_CHECK_LIB(OggFLAC,OggFLAC__seekable_stream_decoder_process_single,
|
||||
have_libOggFLAC=yes,,[-lm -lOggFLAC -lFLAC])
|
||||
|
||||
])
|
||||
if test "x$have_libOggFLAC" = "xyes"; then
|
||||
LIBOGGFLAC="-lOggFLAC"
|
||||
AC_DEFINE(HAVE_LIBOGGFLAC, 1,
|
||||
[Define if you have libOggFLAC (required for loading OggFLAC files)])
|
||||
fi
|
||||
AC_SUBST(LIBOGGFLAC)
|
||||
AC_LANG_RESTORE
|
||||
])
|
||||
|
||||
AC_DEFUN([KDE_CHECK_OGGVORBIS],
|
||||
[
|
||||
have_oggvorbis=yes
|
||||
|
||||
KDE_CHECK_LIB(ogg, ogg_page_version,
|
||||
[:], [have_oggvorbis=no])
|
||||
|
||||
KDE_CHECK_HEADER(vorbis/vorbisfile.h,
|
||||
[:], [have_oggvorbis=no])
|
||||
|
||||
KDE_CHECK_LIB(vorbis, vorbis_info_init,
|
||||
[:], [have_oggvorbis=no], -logg)
|
||||
|
||||
KDE_CHECK_LIB(vorbisfile, ov_open,
|
||||
[:], [have_oggvorbis=no], -lvorbis -logg)
|
||||
|
||||
if test "x$have_oggvorbis" = xyes; then
|
||||
VORBIS_LIBS="-lvorbis -logg"
|
||||
VORBISFILE_LIBS="-lvorbisfile"
|
||||
|
||||
# for akode/plugins/xiph_decoder/
|
||||
AC_DEFINE_UNQUOTED(HAVE_OGG_VORBIS, 1, [Define if you have ogg/vorbis installed])
|
||||
|
||||
fi
|
||||
|
||||
AC_SUBST(VORBIS_LIBS)
|
||||
AC_SUBST(VORBISFILE_LIBS)
|
||||
])
|
||||
|
||||
AC_DEFUN([KDE_CHECK_SEM],
|
||||
[
|
||||
have_sem=no
|
||||
|
||||
AC_CHECK_HEADERS([semaphore.h],
|
||||
[have_sem=yes])
|
||||
|
||||
dnl Solaris requires -lrt
|
||||
AC_CHECK_LIB(rt, sem_init, [LIBSEM="-lrt"])
|
||||
AC_SUBST(LIBSEM)
|
||||
])
|
||||
|
||||
AC_DEFUN([KDE_CHECK_OSS],
|
||||
[
|
||||
have_oss=no
|
||||
|
||||
AC_CHECK_HEADERS([soundcard.h sys/soundcard.h],
|
||||
[have_oss=yes])
|
||||
|
||||
dnl OpenBSD requires an -lossaudio and soundcard.h to provide OSS audio I/O
|
||||
AC_CHECK_LIB(ossaudio, _oss_ioctl, [LIBOSSAUDIO="-lossaudio"])
|
||||
AC_SUBST(LIBOSSAUDIO)
|
||||
])
|
||||
|
||||
AC_DEFUN([KDE_CHECK_SUN],
|
||||
[
|
||||
have_sun=no
|
||||
|
||||
AC_CHECK_HEADERS([sys/audioio.h], [have_sun=yes])
|
||||
])
|
||||
|
||||
AC_DEFUN([KDE_CHECK_ALSA],
|
||||
[
|
||||
PKG_CHECK_MODULES([ALSA], [alsa >= 0.9], [have_alsa=yes], [have_alsa=no])
|
||||
|
||||
if test "x$have_alsa" = "xyes"; then
|
||||
AC_DEFINE(HAVE_LIBASOUND2, 1, [Define if you have libasound.so.2 (required for ALSA 0.9.x/1.x support)])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_ARG_WITH(flac,AC_HELP_STRING([--with-flac],[Enable FLAC support @<:@default=check@:>@]),[flac_test="$withval"],[flac_test="yes"])
|
||||
|
||||
if test "x$flac_test" = "xyes" ; then
|
||||
AC_CHECK_LIBFLAC113
|
||||
if test "x$have_libFLAC" = "xno"; then
|
||||
AC_CHECK_LIBFLAC
|
||||
AC_CHECK_LIBOGGFLAC
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(speex,AC_HELP_STRING([--with-speex],[Enable speex support @<:@default=check@:>@]),[speex_test="$withval"],[speex_test="yes"])
|
||||
|
||||
if test "x$speex_test" = "xyes" ; then
|
||||
AC_MSG_CHECKING(for speex headers)
|
||||
have_libspeex=no
|
||||
kde_save_akode_cflags="$CFLAGS"
|
||||
kde_save_akode_libs="$LIBS"
|
||||
LIBS="$all_libraries $USER_LDFLAGS"
|
||||
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
|
||||
AC_TRY_COMPILE([
|
||||
#include <speex.h>
|
||||
#include <speex_callbacks.h>
|
||||
#include <ogg/ogg.h>
|
||||
],[
|
||||
],[
|
||||
have_libspeex=yes
|
||||
])
|
||||
AC_MSG_RESULT($have_libspeex)
|
||||
if test x$have_libspeex = xyes; then
|
||||
KDE_CHECK_LIB(speex,speex_decoder_ctl,,
|
||||
have_libspeex=no,[-lspeex -logg])
|
||||
fi
|
||||
CFLAGS="$kde_save_akode_cflags"
|
||||
LIBS="$kde_save_akode_libs"
|
||||
AC_MSG_CHECKING(for speex11 headers)
|
||||
have_libspeex11=no
|
||||
kde_save_akode_cflags="$CFLAGS"
|
||||
kde_save_akode_libs="$LIBS"
|
||||
LIBS="$all_libraries $USER_LDFLAGS"
|
||||
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
|
||||
AC_TRY_COMPILE([
|
||||
#include <speex.h>
|
||||
#include <speex_callbacks.h>
|
||||
#include <speex_echo.h>
|
||||
#include <speex_preprocess.h>
|
||||
#include <ogg/ogg.h>
|
||||
],[
|
||||
],[
|
||||
have_libspeex11=yes
|
||||
])
|
||||
AC_MSG_RESULT($have_libspeex11)
|
||||
if test x$have_libspeex11 = xyes; then
|
||||
KDE_CHECK_LIB(speex,speex_decode_int,,
|
||||
broken_libspeex11=yes,[-lspeex -logg])
|
||||
fi
|
||||
|
||||
if test x$have_libspeex = xyes; then
|
||||
AC_DEFINE(HAVE_SPEEX,1,[Define if you have speex installed])
|
||||
SPEEXLIBS="-lspeex -logg"
|
||||
fi
|
||||
CFLAGS="$kde_save_akode_cflags"
|
||||
LIBS="$kde_save_akode_libs"
|
||||
AC_SUBST(SPEEXLIBS)
|
||||
|
||||
if test x$have_libspeex11 = xyes; then
|
||||
AC_DEFINE(HAVE_SPEEX11,1,[Define if you have libspeex 1.1.x installed])
|
||||
if test x$broken_libspeex11 = xyes; then
|
||||
AC_DEFINE(BROKEN_SPEEX11,1,[Define if you have one of the broken libspeex 1.1.x < 1.1.5])
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(libmad,AC_HELP_STRING([--with-libmad],[Enable libmad support @<:@default=check@:>@]),[libmad_test="$withval"],[libmad_test="yes"])
|
||||
|
||||
if test "x$libmad_test" = "xyes" ; then
|
||||
AC_MSG_CHECKING(for MADlib header)
|
||||
have_libMAD=no
|
||||
kde_save_akode_cflags="$CFLAGS"
|
||||
kde_save_akode_libs="$LIBS"
|
||||
LIBS="$all_libraries $USER_LDFLAGS"
|
||||
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
|
||||
AC_TRY_COMPILE([
|
||||
#include <mad.h>
|
||||
],[
|
||||
],[
|
||||
have_libMAD=yes
|
||||
])
|
||||
AC_MSG_RESULT($have_libMAD)
|
||||
if test x$have_libMAD = xyes; then
|
||||
KDE_CHECK_LIB(mad,mad_decoder_run,MAD_lib=yes,
|
||||
have_libMAD=no,[-lmad])
|
||||
fi
|
||||
if test x$have_libMAD = xyes; then
|
||||
AC_DEFINE(HAVE_MAD,1,[Define if you have MADlib installed])
|
||||
MADLIBS="-lmad"
|
||||
fi
|
||||
CFLAGS="$kde_save_akode_cflags"
|
||||
LIBS="$kde_save_akode_libs"
|
||||
AC_SUBST(MADLIBS)
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(libsamplerate,AC_HELP_STRING([--with-libsamplerate],[Enable libsamplerate support @<:@default=check@:>@]),[libsamplerate_test="$withval"],[libsamplerate_test="yes"])
|
||||
|
||||
if test "x$libsamplerate_test" = "xyes" ; then
|
||||
LIBSAMPLERATE=""
|
||||
KDE_CHECK_HEADERS(samplerate.h, [
|
||||
KDE_CHECK_LIB(samplerate, src_simple, [
|
||||
have_libsamplerate=yes
|
||||
LIBSAMPLERATE="-lsamplerate"
|
||||
AC_DEFINE(HAVE_LIBSAMPLERATE,1,[defined if you have libsamplerate library and header])
|
||||
])
|
||||
])
|
||||
AC_SUBST(LIBSAMPLERATE)
|
||||
fi
|
||||
|
||||
dnl Check for pkg-config
|
||||
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
||||
|
||||
AC_ARG_WITH(jack,AC_HELP_STRING([--with-jack],[Enable Jack Audio Connection Kit support @<:@default=check@:>@]),[jack_test="$withval"],[jack_test="yes"])
|
||||
|
||||
if test "x$jack_test" = "xyes" ; then
|
||||
AC_MSG_CHECKING(for Jack Audio Connection Kit)
|
||||
if $PKG_CONFIG --atleast-version 0.90 jack >/dev/null 2>&1 ; then
|
||||
JACK_CFLAGS="`$PKG_CONFIG --cflags jack`"
|
||||
JACK_LIBADD="`$PKG_CONFIG --libs-only-l jack`"
|
||||
JACK_LDFLAGS="`$PKG_CONFIG --libs-only-L jack`"
|
||||
have_jack=yes
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_LIBJACK, 1,
|
||||
[Define if you have libjack (required if you want Jack support)])
|
||||
else
|
||||
AC_MSG_RESULT(not installed)
|
||||
fi
|
||||
AC_SUBST(JACK_CFLAGS)
|
||||
AC_SUBST(JACK_LIBADD)
|
||||
AC_SUBST(JACK_LDFLAGS)
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(polypaudio,AC_HELP_STRING([--with-polypaudio],[Enable Polypaudio server support @<:@default=check@:>@]),[polypaudio_test="$withval"],[polypaudio_test="yes"])
|
||||
|
||||
if test "x$polypaudio_test" = "xyes" ; then
|
||||
AC_MSG_CHECKING(for Polypaudio 0.7 or later)
|
||||
if $PKG_CONFIG --atleast-version 0.7 polyplib-simple >/dev/null 2>&1 ; then
|
||||
POLYP_CFLAGS="`$PKG_CONFIG --cflags polyplib-simple`"
|
||||
POLYP_LIBADD="`$PKG_CONFIG --libs-only-l polyplib-simple`"
|
||||
POLYP_LDFLAGS="`$PKG_CONFIG --libs-only-L polyplib-simple`"
|
||||
have_polyp=yes
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_LIBPOLYP, 1,
|
||||
[Define if you have polyplib (required if you want Polypaudio server support)])
|
||||
else
|
||||
AC_MSG_RESULT(not installed)
|
||||
fi
|
||||
AC_SUBST(POLYP_CFLAGS)
|
||||
AC_SUBST(POLYP_LIBADD)
|
||||
AC_SUBST(POLYP_LDFLAGS)
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(ffmpeg,AC_HELP_STRING([--with-ffmpeg],[Enable experimental FFMPEG decoder support @<:@default=check@:>@]),[ffmpeg_test="$withval"],[ffmpeg_test="yes"])
|
||||
|
||||
if test "x$ffmpeg_test" = "xyes" ; then
|
||||
AC_MSG_CHECKING(for FFMPEG 0.5.0 or later)
|
||||
if $PKG_CONFIG --atleast-version 50 libavformat >/dev/null 2>&1 ; then
|
||||
if $PKG_CONFIG --atleast-version 50 libavcodec >/dev/null 2>&1 ; then
|
||||
AVFORMAT_CFLAGS="`$PKG_CONFIG --cflags libavformat`"
|
||||
AVCODEC_CFLAGS="`$PKG_CONFIG --cflags libavcodec`"
|
||||
AVFORMAT_LIBADD="`$PKG_CONFIG --libs-only-l libavformat`"
|
||||
AVCODEC_LIBADD="`$PKG_CONFIG --libs-only-l libavcodec`"
|
||||
AVFORMAT_LDFLAGS="`$PKG_CONFIG --libs-only-L libavformat`"
|
||||
AVCODEC_LDFLAGS="`$PKG_CONFIG --libs-only-L libavcodec`"
|
||||
have_ffmpeg=yes
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_FFMPEG, 1,
|
||||
[Define if you have libavcodec and libavformat from FFMPEG (required for WMA and RealAudio decoding)])
|
||||
else
|
||||
AC_MSG_RESULT(not installed)
|
||||
fi
|
||||
else
|
||||
AC_MSG_RESULT(not installed)
|
||||
fi
|
||||
AC_SUBST(AVCODEC_CFLAGS)
|
||||
AC_SUBST(AVCODEC_LIBADD)
|
||||
AC_SUBST(AVCODEC_LDFLAGS)
|
||||
AC_SUBST(AVFORMAT_CFLAGS)
|
||||
AC_SUBST(AVFORMAT_LIBADD)
|
||||
AC_SUBST(AVFORMAT_LDFLAGS)
|
||||
fi
|
||||
|
||||
AKODE_LIBDL=-ldl
|
||||
|
||||
AC_ARG_WITH(
|
||||
libltdl,
|
||||
AC_HELP_STRING([--without-libltdl],
|
||||
[Use libdl to load akode-plugins @<:@default=use libltdl@:>@]),
|
||||
[libltdl_test="$withval"],
|
||||
[libltdl_test="yes"])
|
||||
|
||||
have_libltdl=no
|
||||
if test x$libltdl_test = xyes; then
|
||||
KDE_CHECK_HEADERS(ltdl.h, [
|
||||
KDE_CHECK_LIB(ltdl, lt_dlopen, [
|
||||
have_libltdl=yes
|
||||
AKODE_LIBDL="-lltdl"
|
||||
AC_DEFINE(HAVE_LIBLTDL,1,[defined if you have libltdl library and header])
|
||||
])
|
||||
])
|
||||
fi
|
||||
|
||||
if test "yes" = "$have_libltdl" ; then
|
||||
# Do nothing, since we've already called CHECK_LIB
|
||||
:
|
||||
else
|
||||
KDE_CHECK_LIB(dl, dlopen,
|
||||
[],[
|
||||
AKODE_LIBDL=""
|
||||
DO_NOT_COMPILE="akode $DO_NOT_COMPILE"
|
||||
]
|
||||
)
|
||||
fi
|
||||
|
||||
AC_SUBST(AKODE_LIBDL)
|
||||
|
||||
KDE_CHECK_LIBPTHREAD
|
||||
KDE_CHECK_SEM
|
||||
|
||||
AC_CHECK_LIB(c, posix_madvise, have_posix_madvise=yes)
|
||||
AC_CHECK_LIB(c, posix_fadvise, have_posix_fadvise=yes)
|
||||
AC_CHECK_LIB(c, madvise, have_madvise=yes)
|
||||
AC_CHECK_LIB(c, fadvise, have_fadvise=yes)
|
||||
|
||||
if test x$have_madvise = xyes; then
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_MSG_CHECKING([if madvise needs prototype])
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <sys/mman.h>
|
||||
],[
|
||||
::madvise((char*)0,0, MADV_SEQUENTIAL);
|
||||
],[
|
||||
madvise_needs_prototype=no
|
||||
AC_MSG_RESULT(no)
|
||||
],[
|
||||
madvise_needs_prototype=yes
|
||||
AC_MSG_RESULT(yes)
|
||||
])
|
||||
AC_LANG_RESTORE
|
||||
AC_DEFINE(HAVE_MADVISE,1,[Define if your platform has madvise])
|
||||
if test x$madvise_needs_prototype = xyes; then
|
||||
AC_DEFINE(NEED_MADVISE_PROTOTYPE,1,[Define if madvise has no usefull prototype])
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
if test x$have_fadvise = xyes; then
|
||||
AC_DEFINE(HAVE_FADVISE,1,[Define if your platform has fadvise])
|
||||
fi
|
||||
|
||||
if test x$have_posix_madvise = xyes; then
|
||||
AC_DEFINE(HAVE_POSIX_MADVISE,1,[Define if your platform has posix_madvise])
|
||||
fi
|
||||
|
||||
if test x$have_posix_fadvise = xyes; then
|
||||
AC_DEFINE(HAVE_POSIX_FADVISE,1,[Define if your platform has posix_fadvise])
|
||||
fi
|
||||
|
||||
AC_CHECK_HEADERS(getopt.h, have_getopt_h=yes)
|
||||
if test x$have_getopt_h = xyes; then
|
||||
AC_CHECK_LIB(c, getopt_long, have_gnu_getopt=yes)
|
||||
if test x$have_gnu_getopt = xyes; then
|
||||
AC_DEFINE(HAVE_GNU_GETOPT,1,[Define if your platform has getopt_long from glibc])
|
||||
fi
|
||||
fi
|
||||
|
||||
#AC_CHECK_HEADERS(features.h, have_features_h=yes)
|
||||
#
|
||||
#if test x$have_features_h=xyes; then
|
||||
# AC_DEFINE(HAVE_FEATURES_H, 1, [Define if your platform has the features.h header])
|
||||
#fi
|
||||
|
||||
#AC_ARG_ENABLE(akodelib,
|
||||
# [ --enable-akodelib Compile and install akodelib and akode_artsplugin (default yes)], enable_akodelib="$enableval",enable_akodelib=no)
|
||||
|
||||
AM_CONDITIONAL(include_mpeg_decoder, test x$have_libMAD = xyes)
|
||||
|
||||
AC_ARG_WITH(oss,
|
||||
[AS_HELP_STRING(--with-oss,
|
||||
[enable support for OSS output @<:@default=check@:>@])],
|
||||
[], with_oss=check)
|
||||
|
||||
if test "x$with_oss" != xno; then
|
||||
KDE_CHECK_OSS
|
||||
|
||||
if test "x$with_oss" != xcheck && test "x$have_oss" != xyes; then
|
||||
AC_MSG_FAILURE([--with-oss was given, but test for oss failed])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(sun,
|
||||
[AS_HELP_STRING(--with-sun,
|
||||
[enable support for Sun Audio output @<:@default=check@:>@])],
|
||||
[], with_sun=check)
|
||||
|
||||
if test "x$with_sun" != xno; then
|
||||
KDE_CHECK_SUN
|
||||
|
||||
if test "x$with_sun" != xcheck && test "x$have_sun" != xyes; then
|
||||
AC_MSG_FAILURE([--with-sun was given, but test for Sun Audio failed])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(alsa,
|
||||
[AS_HELP_STRING(--with-alsa,
|
||||
[enable support for ALSA output @<:@default=check@:>@])],
|
||||
[], with_alsa=check)
|
||||
|
||||
have_alsa=no
|
||||
if test "x$with_alsa" != xno; then
|
||||
KDE_CHECK_ALSA
|
||||
|
||||
if test "x$with_alsa" != xcheck && test "x$have_alsa" != xyes; then
|
||||
AC_MSG_FAILURE([--with-alsa was given, but test for ALSA failed])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(vorbis,
|
||||
[AS_HELP_STRING(--with-vorbis,
|
||||
[enable support for Ogg Vorbis @<:@default=check@:>@])],
|
||||
[], with_vorbis=check)
|
||||
|
||||
have_oggvorbis=no
|
||||
if test "x$with_vorbis" != xno; then
|
||||
KDE_CHECK_OGGVORBIS
|
||||
|
||||
if test "x$with_vorbis" != xcheck && test "x$have_oggvorbis" != xyes; then
|
||||
AC_MSG_FAILURE([--with-vorbis was given, but test for Ogg Vorbis failed])
|
||||
fi
|
||||
fi
|
||||
|
||||
usefull_xiph_decoder=yes
|
||||
if test x$have_libFLAC$have_libOggFLAC$have_oggvorbis$have_libspeex = xnononono; then
|
||||
usefull_xiph_decoder=no
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(include_xiph_decoder, test x$usefull_xiph_decoder = xyes)
|
||||
AM_CONDITIONAL(include_src_resampler, test x$have_libsamplerate = xyes)
|
||||
AM_CONDITIONAL(include_alsa_sink, test x$have_alsa = xyes)
|
||||
AM_CONDITIONAL(include_oss_sink, test x$have_oss = xyes)
|
||||
AM_CONDITIONAL(include_sun_sink, test x$have_sun = xyes)
|
||||
AM_CONDITIONAL(include_jack_sink, test x$have_jack = xyes)
|
||||
AM_CONDITIONAL(include_polyp_sink, test x$have_polyp = xyes)
|
||||
AM_CONDITIONAL(include_ffmpeg_decoder, test x$have_ffmpeg = xyes)
|
||||
|
||||
AC_MSG_CHECKING(for compilable aKode)
|
||||
|
||||
COMPILE_AKODE=yes
|
||||
if test x$have_PTHREAD = xno; then
|
||||
COMPILE_AKODE=no
|
||||
fi
|
||||
|
||||
AC_MSG_RESULT($COMPILE_AKODE)
|
||||
|
||||
if test "x$COMPILE_AKODE" = "xno"; then
|
||||
DO_NOT_COMPILE="$DO_NOT_COMPILE akode"
|
||||
fi
|
||||
|
||||
#if test "x$COMPILE_AKODE$enable_akodelib" = "xyesno"; then
|
||||
#DO_NOT_COMPILE="$DO_NOT_COMPILE akode"
|
||||
#fi
|
@ -0,0 +1,25 @@
|
||||
INCLUDES = $(all_includes)
|
||||
|
||||
lib_LTLIBRARIES = libakode.la
|
||||
|
||||
libakode_la_SOURCES = bytebuffer.cpp audiobuffer.cpp pluginhandler.cpp \
|
||||
decoderpluginhandler.cpp resamplerpluginhandler.cpp \
|
||||
sinkpluginhandler.cpp encoderpluginhandler.cpp \
|
||||
fast_resampler.cpp crossfader.cpp volumefilter.cpp \
|
||||
localfile.cpp mmapfile.cpp \
|
||||
wav_decoder.cpp auto_sink.cpp void_sink.cpp \
|
||||
converter.cpp buffered_decoder.cpp \
|
||||
player.cpp magic.cpp
|
||||
|
||||
AM_CPPFLAGS = -DAKODE_SEARCHDIR=\"$(libdir)\"
|
||||
|
||||
libakode_la_LDFLAGS = -no-undefined -version-info 2:0:0 $(all_libraries)
|
||||
libakode_la_LIBADD = $(LIBPTHREAD) $(AKODE_LIBDL) $(LIBSEM)
|
||||
|
||||
libakode_includedir = $(includedir)/akode
|
||||
libakode_include_HEADERS = akode_export.h akodelib.h decoder.h sink.h encoder.h \
|
||||
audioconfiguration.h audioframe.h audiobuffer.h bytebuffer.h \
|
||||
file.h localfile.h mmapfile.h pluginhandler.h \
|
||||
crossfader.h volumefilter.h resampler.h fast_resampler.h \
|
||||
buffered_decoder.h wav_decoder.h auto_sink.h void_sink.h \
|
||||
player.h magic.h converter.h framedecoder.h
|
@ -0,0 +1,764 @@
|
||||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# KDE tags expanded automatically by am_edit - $Revision: 483858 $
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = ../..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
target_triplet = @target@
|
||||
subdir = akode/lib
|
||||
DIST_COMMON = $(libakode_include_HEADERS) $(srcdir)/Makefile.am \
|
||||
$(srcdir)/Makefile.in $(srcdir)/akode_export.h.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
|
||||
CONFIG_HEADER = $(top_builddir)/config.h akode_export.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||
am__installdirs = "$(DESTDIR)$(libdir)" \
|
||||
"$(DESTDIR)$(libakode_includedir)"
|
||||
libLTLIBRARIES_INSTALL = $(INSTALL)
|
||||
LTLIBRARIES = $(lib_LTLIBRARIES)
|
||||
am__DEPENDENCIES_1 =
|
||||
libakode_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
|
||||
$(am__DEPENDENCIES_1)
|
||||
am_libakode_la_OBJECTS = bytebuffer.lo audiobuffer.lo pluginhandler.lo \
|
||||
decoderpluginhandler.lo resamplerpluginhandler.lo \
|
||||
sinkpluginhandler.lo encoderpluginhandler.lo fast_resampler.lo \
|
||||
crossfader.lo volumefilter.lo localfile.lo mmapfile.lo \
|
||||
wav_decoder.lo auto_sink.lo void_sink.lo converter.lo \
|
||||
buffered_decoder.lo player.lo magic.lo
|
||||
#>- libakode_la_OBJECTS = $(am_libakode_la_OBJECTS)
|
||||
#>+ 9
|
||||
libakode_la_final_OBJECTS = libakode_la.all_cpp.lo
|
||||
libakode_la_nofinal_OBJECTS = bytebuffer.lo audiobuffer.lo pluginhandler.lo \
|
||||
decoderpluginhandler.lo resamplerpluginhandler.lo \
|
||||
sinkpluginhandler.lo encoderpluginhandler.lo fast_resampler.lo \
|
||||
crossfader.lo volumefilter.lo localfile.lo mmapfile.lo \
|
||||
wav_decoder.lo auto_sink.lo void_sink.lo converter.lo \
|
||||
buffered_decoder.lo player.lo magic.lo
|
||||
@KDE_USE_FINAL_FALSE@libakode_la_OBJECTS = $(libakode_la_nofinal_OBJECTS)
|
||||
@KDE_USE_FINAL_TRUE@libakode_la_OBJECTS = $(libakode_la_final_OBJECTS)
|
||||
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -I.
|
||||
depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
#>- CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||
#>- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||
#>+ 2
|
||||
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS)
|
||||
#>- LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
|
||||
#>- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||
#>- $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||
#>+ 3
|
||||
LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
|
||||
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||
$(AM_CXXFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS)
|
||||
CXXLD = $(CXX)
|
||||
#>- CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||||
#>- $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
#>+ 2
|
||||
CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||||
$(CXXFLAGS) $(KDE_CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
SOURCES = $(libakode_la_SOURCES)
|
||||
DIST_SOURCES = $(libakode_la_SOURCES)
|
||||
libakode_includeHEADERS_INSTALL = $(INSTALL_HEADER)
|
||||
HEADERS = $(libakode_include_HEADERS)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
#>+ 1
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AKODE_LIBDL = @AKODE_LIBDL@
|
||||
ALSA_CFLAGS = @ALSA_CFLAGS@
|
||||
ALSA_LIBS = @ALSA_LIBS@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTODIRS = @AUTODIRS@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AVCODEC_CFLAGS = @AVCODEC_CFLAGS@
|
||||
AVCODEC_LDFLAGS = @AVCODEC_LDFLAGS@
|
||||
AVCODEC_LIBADD = @AVCODEC_LIBADD@
|
||||
AVFORMAT_CFLAGS = @AVFORMAT_CFLAGS@
|
||||
AVFORMAT_LDFLAGS = @AVFORMAT_LDFLAGS@
|
||||
AVFORMAT_LIBADD = @AVFORMAT_LIBADD@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CONF_FILES = @CONF_FILES@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
ECHO = @ECHO@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
ENABLE_PERMISSIVE_FLAG = @ENABLE_PERMISSIVE_FLAG@
|
||||
EXEEXT = @EXEEXT@
|
||||
F77 = @F77@
|
||||
FFLAGS = @FFLAGS@
|
||||
GREP = @GREP@
|
||||
HAVE_GCC_VISIBILITY = @HAVE_GCC_VISIBILITY@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
JACK_CFLAGS = @JACK_CFLAGS@
|
||||
JACK_LDFLAGS = @JACK_LDFLAGS@
|
||||
JACK_LIBADD = @JACK_LIBADD@
|
||||
KDE_CHECK_PLUGIN = @KDE_CHECK_PLUGIN@
|
||||
KDE_NO_UNDEFINED = @KDE_NO_UNDEFINED@
|
||||
KDE_PLUGIN = @KDE_PLUGIN@
|
||||
KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@
|
||||
KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@
|
||||
KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@
|
||||
KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@
|
||||
KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
|
||||
KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LDFLAGS_AS_NEEDED = @LDFLAGS_AS_NEEDED@
|
||||
LDFLAGS_NEW_DTAGS = @LDFLAGS_NEW_DTAGS@
|
||||
LIBFLAC = @LIBFLAC@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBOGGFLAC = @LIBOGGFLAC@
|
||||
LIBOSSAUDIO = @LIBOSSAUDIO@
|
||||
LIBPTHREAD = @LIBPTHREAD@
|
||||
LIBS = @LIBS@
|
||||
LIBSAMPLERATE = @LIBSAMPLERATE@
|
||||
LIBSEM = @LIBSEM@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MADLIBS = @MADLIBS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
NOOPT_CFLAGS = @NOOPT_CFLAGS@
|
||||
NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
POLYP_CFLAGS = @POLYP_CFLAGS@
|
||||
POLYP_LDFLAGS = @POLYP_LDFLAGS@
|
||||
POLYP_LIBADD = @POLYP_LIBADD@
|
||||
RANLIB = @RANLIB@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SPEEXLIBS = @SPEEXLIBS@
|
||||
STRIP = @STRIP@
|
||||
TOPSUBDIRS = @TOPSUBDIRS@
|
||||
USER_INCLUDES = @USER_INCLUDES@
|
||||
USER_LDFLAGS = @USER_LDFLAGS@
|
||||
USE_EXCEPTIONS = @USE_EXCEPTIONS@
|
||||
USE_RTTI = @USE_RTTI@
|
||||
VERSION = @VERSION@
|
||||
VORBISFILE_LIBS = @VORBISFILE_LIBS@
|
||||
VORBIS_LIBS = @VORBIS_LIBS@
|
||||
WOVERLOADED_VIRTUAL = @WOVERLOADED_VIRTUAL@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_F77 = @ac_ct_F77@
|
||||
akode_SUBDIR_included_FALSE = @akode_SUBDIR_included_FALSE@
|
||||
akode_SUBDIR_included_TRUE = @akode_SUBDIR_included_TRUE@
|
||||
all_includes = @all_includes@
|
||||
all_libraries = @all_libraries@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
|
||||
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
include_alsa_sink_FALSE = @include_alsa_sink_FALSE@
|
||||
include_alsa_sink_TRUE = @include_alsa_sink_TRUE@
|
||||
include_ffmpeg_decoder_FALSE = @include_ffmpeg_decoder_FALSE@
|
||||
include_ffmpeg_decoder_TRUE = @include_ffmpeg_decoder_TRUE@
|
||||
include_jack_sink_FALSE = @include_jack_sink_FALSE@
|
||||
include_jack_sink_TRUE = @include_jack_sink_TRUE@
|
||||
include_mpeg_decoder_FALSE = @include_mpeg_decoder_FALSE@
|
||||
include_mpeg_decoder_TRUE = @include_mpeg_decoder_TRUE@
|
||||
include_oss_sink_FALSE = @include_oss_sink_FALSE@
|
||||
include_oss_sink_TRUE = @include_oss_sink_TRUE@
|
||||
include_polyp_sink_FALSE = @include_polyp_sink_FALSE@
|
||||
include_polyp_sink_TRUE = @include_polyp_sink_TRUE@
|
||||
include_src_resampler_FALSE = @include_src_resampler_FALSE@
|
||||
include_src_resampler_TRUE = @include_src_resampler_TRUE@
|
||||
include_sun_sink_FALSE = @include_sun_sink_FALSE@
|
||||
include_sun_sink_TRUE = @include_sun_sink_TRUE@
|
||||
include_xiph_decoder_FALSE = @include_xiph_decoder_FALSE@
|
||||
include_xiph_decoder_TRUE = @include_xiph_decoder_TRUE@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target = @target@
|
||||
target_alias = @target_alias@
|
||||
target_cpu = @target_cpu@
|
||||
target_os = @target_os@
|
||||
target_vendor = @target_vendor@
|
||||
unsermake_enable_pch_FALSE = @unsermake_enable_pch_FALSE@
|
||||
unsermake_enable_pch_TRUE = @unsermake_enable_pch_TRUE@
|
||||
INCLUDES = $(all_includes)
|
||||
lib_LTLIBRARIES = libakode.la
|
||||
libakode_la_SOURCES = bytebuffer.cpp audiobuffer.cpp pluginhandler.cpp \
|
||||
decoderpluginhandler.cpp resamplerpluginhandler.cpp \
|
||||
sinkpluginhandler.cpp encoderpluginhandler.cpp \
|
||||
fast_resampler.cpp crossfader.cpp volumefilter.cpp \
|
||||
localfile.cpp mmapfile.cpp \
|
||||
wav_decoder.cpp auto_sink.cpp void_sink.cpp \
|
||||
converter.cpp buffered_decoder.cpp \
|
||||
player.cpp magic.cpp
|
||||
|
||||
AM_CPPFLAGS = -DAKODE_SEARCHDIR=\"$(libdir)\"
|
||||
#>- libakode_la_LDFLAGS = -no-undefined -version-info 2:0:0 $(all_libraries)
|
||||
#>+ 1
|
||||
libakode_la_LDFLAGS = -no-undefined $(KDE_NO_UNDEFINED) -version-info 2:0:0 $(all_libraries)
|
||||
libakode_la_LIBADD = $(LIBPTHREAD) $(AKODE_LIBDL) $(LIBSEM)
|
||||
libakode_includedir = $(includedir)/akode
|
||||
libakode_include_HEADERS = akode_export.h akodelib.h decoder.h sink.h encoder.h \
|
||||
audioconfiguration.h audioframe.h audiobuffer.h bytebuffer.h \
|
||||
file.h localfile.h mmapfile.h pluginhandler.h \
|
||||
crossfader.h volumefilter.h resampler.h fast_resampler.h \
|
||||
buffered_decoder.h wav_decoder.h auto_sink.h void_sink.h \
|
||||
player.h magic.h converter.h framedecoder.h
|
||||
|
||||
#>- all: akode_export.h
|
||||
#>+ 1
|
||||
all: docs-am akode_export.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .cpp .lo .o .obj
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
#>- @for dep in $?; do \
|
||||
#>- case '$(am__configure_deps)' in \
|
||||
#>- *$$dep*) \
|
||||
#>- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
#>- && exit 0; \
|
||||
#>- exit 1;; \
|
||||
#>- esac; \
|
||||
#>- done; \
|
||||
#>- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu akode/lib/Makefile'; \
|
||||
#>- cd $(top_srcdir) && \
|
||||
#>- $(AUTOMAKE) --gnu akode/lib/Makefile
|
||||
#>+ 12
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu akode/lib/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu akode/lib/Makefile
|
||||
cd $(top_srcdir) && perl admin/am_edit akode/lib/Makefile.in
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
akode_export.h: stamp-h2
|
||||
@if test ! -f $@; then \
|
||||
rm -f stamp-h2; \
|
||||
$(MAKE) stamp-h2; \
|
||||
else :; fi
|
||||
|
||||
stamp-h2: $(srcdir)/akode_export.h.in $(top_builddir)/config.status
|
||||
@rm -f stamp-h2
|
||||
cd $(top_builddir) && $(SHELL) ./config.status akode/lib/akode_export.h
|
||||
$(srcdir)/akode_export.h.in: $(am__configure_deps)
|
||||
cd $(top_srcdir) && $(AUTOHEADER)
|
||||
rm -f stamp-h2
|
||||
touch $@
|
||||
|
||||
distclean-hdr:
|
||||
-rm -f akode_export.h stamp-h2
|
||||
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
|
||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
|
||||
$(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-libLTLIBRARIES:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
p=$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
|
||||
$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
|
||||
done
|
||||
|
||||
clean-libLTLIBRARIES:
|
||||
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
|
||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
|
||||
test "$$dir" != "$$p" || dir=.; \
|
||||
echo "rm -f \"$${dir}/so_locations\""; \
|
||||
rm -f "$${dir}/so_locations"; \
|
||||
done
|
||||
#>- libakode.la: $(libakode_la_OBJECTS) $(libakode_la_DEPENDENCIES)
|
||||
#>+ 2
|
||||
@KDE_USE_CLOSURE_TRUE@libakode.la: libakode.la.closure $(libakode_la_OBJECTS) $(libakode_la_DEPENDENCIES)
|
||||
@KDE_USE_CLOSURE_FALSE@libakode.la: $(libakode_la_OBJECTS) $(libakode_la_DEPENDENCIES)
|
||||
$(CXXLINK) -rpath $(libdir) $(libakode_la_LDFLAGS) $(libakode_la_OBJECTS) $(libakode_la_LIBADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiobuffer.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/auto_sink.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buffered_decoder.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bytebuffer.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/converter.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crossfader.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/decoderpluginhandler.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoderpluginhandler.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fast_resampler.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/localfile.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/magic.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mmapfile.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/player.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pluginhandler.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resamplerpluginhandler.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sinkpluginhandler.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/void_sink.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/volumefilter.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wav_decoder.Plo@am__quote@
|
||||
|
||||
.cpp.o:
|
||||
@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
|
||||
|
||||
.cpp.obj:
|
||||
@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
|
||||
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
|
||||
.cpp.lo:
|
||||
@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool
|
||||
uninstall-info-am:
|
||||
install-libakode_includeHEADERS: $(libakode_include_HEADERS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(libakode_includedir)" || $(mkdir_p) "$(DESTDIR)$(libakode_includedir)"
|
||||
@list='$(libakode_include_HEADERS)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(libakode_includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(libakode_includedir)/$$f'"; \
|
||||
$(libakode_includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(libakode_includedir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-libakode_includeHEADERS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(libakode_include_HEADERS)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(libakode_includedir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(libakode_includedir)/$$f"; \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) akode_export.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) akode_export.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: $(HEADERS) $(SOURCES) akode_export.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) akode_export.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(LTLIBRARIES) $(HEADERS) akode_export.h
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libakode_includedir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
#>- clean: clean-am
|
||||
#>+ 1
|
||||
clean: kde-rpo-clean clean-am
|
||||
|
||||
#>- clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
|
||||
#>- mostlyclean-am
|
||||
#>+ 2
|
||||
clean-am: clean-closures clean-bcheck clean-final clean-generic clean-libLTLIBRARIES clean-libtool \
|
||||
mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-hdr distclean-libtool distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-libakode_includeHEADERS
|
||||
|
||||
install-exec-am: install-libLTLIBRARIES
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \
|
||||
uninstall-libakode_includeHEADERS
|
||||
|
||||
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
|
||||
clean-libLTLIBRARIES clean-libtool ctags distclean \
|
||||
distclean-compile distclean-generic distclean-hdr \
|
||||
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
install-data-am install-exec install-exec-am install-info \
|
||||
install-info-am install-libLTLIBRARIES \
|
||||
install-libakode_includeHEADERS install-man install-strip \
|
||||
installcheck installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
tags uninstall uninstall-am uninstall-info-am \
|
||||
uninstall-libLTLIBRARIES uninstall-libakode_includeHEADERS
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
|
||||
#>+ 8
|
||||
libakode.la.closure: $(libakode_la_OBJECTS) $(libakode_la_DEPENDENCIES)
|
||||
@echo "int main() {return 0;}" > libakode_la_closure.cpp
|
||||
@$(LTCXXCOMPILE) -c libakode_la_closure.cpp
|
||||
$(CXXLINK) libakode_la_closure.lo $(libakode_la_LDFLAGS) $(libakode_la_OBJECTS) $(libakode_la_LIBADD) $(LIBS)
|
||||
@rm -f libakode_la_closure.* libakode.la.closure
|
||||
@echo "timestamp" > libakode.la.closure
|
||||
|
||||
|
||||
#>+ 2
|
||||
KDE_DIST=thread.h akode_export.h.in Makefile.in arithmetic.h Makefile.am
|
||||
|
||||
#>+ 3
|
||||
clean-closures:
|
||||
-rm -f libakode.la.closure
|
||||
|
||||
#>+ 2
|
||||
docs-am:
|
||||
|
||||
#>+ 15
|
||||
force-reedit:
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu akode/lib/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu akode/lib/Makefile
|
||||
cd $(top_srcdir) && perl admin/am_edit akode/lib/Makefile.in
|
||||
|
||||
|
||||
#>+ 21
|
||||
clean-bcheck:
|
||||
rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
|
||||
|
||||
bcheck: bcheck-am
|
||||
|
||||
bcheck-am:
|
||||
@for i in $(libakode_include_HEADERS); do \
|
||||
if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
|
||||
echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
|
||||
echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
|
||||
echo "$$i"; \
|
||||
if ! $(CXXCOMPILE) --dump-class-hierarchy -c $$i.bchecktest.cc; then \
|
||||
rm -f $$i.bchecktest.cc; exit 1; \
|
||||
fi ; \
|
||||
echo "" >> $$i.bchecktest.cc.class; \
|
||||
perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
|
||||
rm -f a.out; \
|
||||
fi ; \
|
||||
done
|
||||
|
||||
|
||||
#>+ 11
|
||||
libakode_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/bytebuffer.cpp $(srcdir)/audiobuffer.cpp $(srcdir)/pluginhandler.cpp $(srcdir)/decoderpluginhandler.cpp $(srcdir)/resamplerpluginhandler.cpp $(srcdir)/sinkpluginhandler.cpp $(srcdir)/encoderpluginhandler.cpp $(srcdir)/fast_resampler.cpp $(srcdir)/crossfader.cpp $(srcdir)/volumefilter.cpp $(srcdir)/localfile.cpp $(srcdir)/mmapfile.cpp $(srcdir)/wav_decoder.cpp $(srcdir)/auto_sink.cpp $(srcdir)/void_sink.cpp $(srcdir)/converter.cpp $(srcdir)/buffered_decoder.cpp $(srcdir)/player.cpp $(srcdir)/magic.cpp
|
||||
@echo 'creating libakode_la.all_cpp.cpp ...'; \
|
||||
rm -f libakode_la.all_cpp.files libakode_la.all_cpp.final; \
|
||||
echo "#define KDE_USE_FINAL 1" >> libakode_la.all_cpp.final; \
|
||||
for file in bytebuffer.cpp audiobuffer.cpp pluginhandler.cpp decoderpluginhandler.cpp resamplerpluginhandler.cpp sinkpluginhandler.cpp encoderpluginhandler.cpp fast_resampler.cpp crossfader.cpp volumefilter.cpp localfile.cpp mmapfile.cpp wav_decoder.cpp auto_sink.cpp void_sink.cpp converter.cpp buffered_decoder.cpp player.cpp magic.cpp ; do \
|
||||
echo "#include \"$$file\"" >> libakode_la.all_cpp.files; \
|
||||
test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> libakode_la.all_cpp.final; \
|
||||
done; \
|
||||
cat libakode_la.all_cpp.final libakode_la.all_cpp.files > libakode_la.all_cpp.cpp; \
|
||||
rm -f libakode_la.all_cpp.final libakode_la.all_cpp.files
|
||||
|
||||
#>+ 3
|
||||
clean-final:
|
||||
-rm -f libakode_la.all_cpp.cpp
|
||||
|
||||
#>+ 3
|
||||
final:
|
||||
$(MAKE) libakode_la_OBJECTS="$(libakode_la_final_OBJECTS)" all-am
|
||||
|
||||
#>+ 3
|
||||
final-install:
|
||||
$(MAKE) libakode_la_OBJECTS="$(libakode_la_final_OBJECTS)" install-am
|
||||
|
||||
#>+ 3
|
||||
no-final:
|
||||
$(MAKE) libakode_la_OBJECTS="$(libakode_la_nofinal_OBJECTS)" all-am
|
||||
|
||||
#>+ 3
|
||||
no-final-install:
|
||||
$(MAKE) libakode_la_OBJECTS="$(libakode_la_nofinal_OBJECTS)" install-am
|
||||
|
||||
#>+ 3
|
||||
kde-rpo-clean:
|
||||
-rm -f *.rpo
|
||||
|
||||
#>+ 3
|
||||
nmcheck:
|
||||
nmcheck-am: nmcheck
|
@ -0,0 +1,53 @@
|
||||
/* This file is part of the KDE libraries
|
||||
Copyright (c) 2002-2003 KDE Team
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef AKODE_EXPORT_H
|
||||
#define AKODE_EXPORT_H
|
||||
|
||||
#undef __KDE_HAVE_GCC_VISIBILITY
|
||||
|
||||
/**
|
||||
* The ARTS_NO_EXPORT macro marks the symbol of the given variable
|
||||
* to be hidden. A hidden symbol is stripped during the linking step,
|
||||
* so it can't be used from outside the resulting library, which is similar
|
||||
* to static. However, static limits the visibility to the current
|
||||
* compilation unit. hidden symbols can still be used in multiple compilation
|
||||
* units.
|
||||
*
|
||||
* \code
|
||||
* int AKODE_NO_EXPORT foo;
|
||||
* int AKODE_EXPORT bar;
|
||||
* \end
|
||||
*/
|
||||
|
||||
#if defined(__KDE_HAVE_GCC_VISIBILITY)
|
||||
/* Visibility is available for GCC newer than 3.4.
|
||||
* See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9283
|
||||
*/
|
||||
#define AKODE_NO_EXPORT __attribute__ ((visibility("hidden")))
|
||||
#define AKODE_EXPORT __attribute__ ((visibility("default")))
|
||||
#elif defined(_WIN32)
|
||||
#define AKODE_NO_EXPORT
|
||||
#define AKODE_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define AKODE_NO_EXPORT
|
||||
#define AKODE_EXPORT
|
||||
#endif
|
||||
|
||||
#endif /* AKODE_EXPORTS */
|
@ -0,0 +1,46 @@
|
||||
/* aKode: Root header
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef _AKODE_AKODELIB_H
|
||||
#define _AKODE_AKODELIB_H
|
||||
|
||||
#define AKODELIB_MAJOR_VERSION 2
|
||||
#define AKODELIB_MINOR_VERSION 0
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STDINT_H
|
||||
#include <stdint.h>
|
||||
#elif defined(HAVE_INTTYPES_H)
|
||||
#include <inttypes.h>
|
||||
#else
|
||||
typedef signed char int8_t;
|
||||
typedef unsigned char int8_t;
|
||||
typedef signed short int16_t;
|
||||
typedef unsigned short int16_t;
|
||||
typedef signed int int32_t;
|
||||
typedef unsigned int uint32_t;
|
||||
typedef signed long long int64_t;
|
||||
typedef unsigned long long uint64_t;
|
||||
#endif
|
||||
|
||||
#endif
|
@ -0,0 +1,60 @@
|
||||
/* aKode Arithmetics
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#ifndef _AKODE_ARITHMETIC_H
|
||||
#define _AKODE_ARITHMETIC_H
|
||||
|
||||
// Parametirize the difference in aritmetics between floating point and integer.
|
||||
template<typename S>
|
||||
struct Arithm_FP {
|
||||
static inline S div(S value, S divisor) {
|
||||
return value/divisor;
|
||||
}
|
||||
static inline S rem(S, S) {
|
||||
return 0.0;
|
||||
}
|
||||
static inline S muldiv(S value, S multiplier, S divisor) {
|
||||
return (value*multiplier)/divisor;
|
||||
}
|
||||
static inline S max(int) {
|
||||
return 1.0;
|
||||
}
|
||||
};
|
||||
|
||||
template<typename S>
|
||||
struct Arithm_Int {
|
||||
static inline S div(S value, S divisor) {
|
||||
return value / divisor;
|
||||
}
|
||||
static inline S rem(S value, S divisor) {
|
||||
return value % divisor;
|
||||
}
|
||||
// A multiplication and division that avoids overflow
|
||||
static inline S muldiv(S value, S multiplier, S divisor) {
|
||||
S out = Arithm_Int<S>::div(value, divisor)*multiplier;
|
||||
S rem = Arithm_Int<S>::rem(value, divisor)*multiplier;
|
||||
out += div(rem, divisor);
|
||||
return out;
|
||||
}
|
||||
static inline S max(int bits) {
|
||||
return (((S)1)<<(bits-1))-1;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
@ -0,0 +1,148 @@
|
||||
/* aKode AudioBuffer
|
||||
|
||||
Copyright (C) 2004-2005 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "audiobuffer.h"
|
||||
#include "audioframe.h"
|
||||
|
||||
namespace aKode {
|
||||
|
||||
AudioBuffer::AudioBuffer(unsigned int len) : length(len), readPos(0), writePos(0),
|
||||
flushed(false), released(false), paused(false), m_eof(false)
|
||||
{
|
||||
buffer = new AudioFrame[len];
|
||||
}
|
||||
|
||||
AudioBuffer::~AudioBuffer() {
|
||||
delete[] buffer;
|
||||
}
|
||||
|
||||
bool AudioBuffer::put(AudioFrame* buf, bool blocking) {
|
||||
mutex.lock();
|
||||
if (released) goto fail;
|
||||
flushed = false;
|
||||
if ((writePos+1) % length == readPos) {
|
||||
if (blocking) {
|
||||
not_full.wait(&mutex);
|
||||
if (flushed || released) goto fail;
|
||||
}
|
||||
else
|
||||
goto fail;
|
||||
}
|
||||
|
||||
swapFrames(&buffer[writePos], buf);
|
||||
writePos = (writePos+1) % length;
|
||||
|
||||
not_empty.signal();
|
||||
mutex.unlock();
|
||||
return true;
|
||||
fail:
|
||||
mutex.unlock();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool AudioBuffer::get(AudioFrame* buf, bool blocking) {
|
||||
mutex.lock();
|
||||
if (released) goto fail;
|
||||
if (readPos == writePos || paused) {
|
||||
if (blocking && !m_eof) {
|
||||
not_empty.wait(&mutex);
|
||||
if (released) goto fail;
|
||||
if (empty()) goto fail;
|
||||
}
|
||||
else
|
||||
goto fail;
|
||||
}
|
||||
|
||||
swapFrames(buf, &buffer[readPos]);
|
||||
readPos = (readPos+1) % length;
|
||||
|
||||
not_full.signal();
|
||||
mutex.unlock();
|
||||
return true;
|
||||
fail:
|
||||
mutex.unlock();
|
||||
return false;
|
||||
}
|
||||
|
||||
long AudioBuffer::position() {
|
||||
long out = -1;
|
||||
mutex.lock();
|
||||
if (!empty() && !released)
|
||||
out = buffer[readPos].pos;
|
||||
mutex.unlock();
|
||||
return out;
|
||||
}
|
||||
|
||||
bool AudioBuffer::empty() {
|
||||
return (readPos == writePos);
|
||||
}
|
||||
|
||||
bool AudioBuffer::full() {
|
||||
return (readPos == (writePos+1) % length);
|
||||
}
|
||||
|
||||
void AudioBuffer::setEOF() {
|
||||
mutex.lock();
|
||||
m_eof = true;
|
||||
not_empty.signal();
|
||||
mutex.unlock();
|
||||
}
|
||||
|
||||
bool AudioBuffer::eof() {
|
||||
return m_eof && empty();
|
||||
}
|
||||
|
||||
void AudioBuffer::reset() {
|
||||
// We assume all processes have been released at this point
|
||||
readPos = writePos = 0;
|
||||
flushed = released = paused = m_eof = false;
|
||||
}
|
||||
|
||||
void AudioBuffer::flush() {
|
||||
mutex.lock();
|
||||
// Don't free the frames, most likely this is just a seek
|
||||
// and the same buffer-sizes will be needed afterwards.
|
||||
readPos = writePos = 0;
|
||||
flushed = true;
|
||||
not_full.signal();
|
||||
mutex.unlock();
|
||||
}
|
||||
|
||||
void AudioBuffer::release() {
|
||||
mutex.lock();
|
||||
released = true;
|
||||
not_full.signal();
|
||||
not_empty.signal();
|
||||
mutex.unlock();
|
||||
}
|
||||
|
||||
void AudioBuffer::pause() {
|
||||
paused = true;
|
||||
}
|
||||
|
||||
void AudioBuffer::resume() {
|
||||
mutex.lock();
|
||||
paused = false;
|
||||
if (!empty())
|
||||
not_empty.signal();
|
||||
mutex.unlock();
|
||||
}
|
||||
|
||||
} // namespace
|
@ -0,0 +1,116 @@
|
||||
/* aKode AudioBuffer
|
||||
|
||||
Copyright (C) 2004-2005 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef _AKODE_AUDIOBUFFER_H
|
||||
#define _AKODE_AUDIOBUFFER_H
|
||||
|
||||
#include "audioframe.h"
|
||||
#include "akode_export.h"
|
||||
#include "thread.h"
|
||||
|
||||
namespace aKode {
|
||||
|
||||
//! A reentrant circular buffer of AudioFrames
|
||||
|
||||
/*!
|
||||
* A buffer of AudioFrame to synchronize audio between two threads, one putting and one getting.
|
||||
*/
|
||||
class AKODE_EXPORT AudioBuffer {
|
||||
const unsigned int length;
|
||||
AudioFrame* buffer;
|
||||
volatile unsigned int readPos;
|
||||
volatile unsigned int writePos;
|
||||
Mutex mutex;
|
||||
Condition not_empty;
|
||||
Condition not_full;
|
||||
volatile bool flushed, released, paused, m_eof;
|
||||
public:
|
||||
/*!
|
||||
* Constructs a buffer with \a len AudioFrames.
|
||||
*/
|
||||
AudioBuffer(unsigned int len);
|
||||
~AudioBuffer();
|
||||
|
||||
/*!
|
||||
* Puts the AudioFrame \a buf into the buffer. If blocking is set to true,
|
||||
* put will block until the buffer is not full.
|
||||
* Returns true if succesfull.
|
||||
*
|
||||
* \note That put will fail even if blocking is set, if flush or release is called.
|
||||
*/
|
||||
bool put(AudioFrame* buf, bool blocking = false);
|
||||
/*!
|
||||
* Gets one AudioFrame from the buffer. If blocking is set to true,
|
||||
* get will block until the buffer is not empty.
|
||||
* Returns true if succesfull.
|
||||
*
|
||||
* \note That get will fail even if blocking is set if release is called.
|
||||
*/
|
||||
bool get(AudioFrame* buf, bool blocking = false);
|
||||
|
||||
/*!
|
||||
* Returns the position of the next audioFrame in the buffer
|
||||
*/
|
||||
long position();
|
||||
|
||||
/*!
|
||||
* Returns true if the buffer is empty.
|
||||
*/
|
||||
bool empty();
|
||||
/*!
|
||||
* Returns true if the buffer is full.
|
||||
*/
|
||||
bool full();
|
||||
|
||||
/*!
|
||||
* Sets EOF for the incomming stream. Releases any blocking get-calls.
|
||||
*/
|
||||
void setEOF();
|
||||
/*!
|
||||
* Returns true if the sender has set the EOF flag.
|
||||
*/
|
||||
bool eof();
|
||||
|
||||
/*!
|
||||
* Resets the buffer to be as good as new.
|
||||
*/
|
||||
void reset();
|
||||
/*!
|
||||
* Flushes the buffer and releases any blocking put-calls.
|
||||
*/
|
||||
void flush();
|
||||
/*!
|
||||
* Releases all blocking threads and prepares the buffer for deletion.
|
||||
* Use reset to make the buffer usable again.
|
||||
*/
|
||||
void release();
|
||||
/*!
|
||||
* Blocks the buffer for reading.
|
||||
*/
|
||||
void pause();
|
||||
/*!
|
||||
* Un-blocks the buffer for reading.
|
||||
*/
|
||||
void resume();
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
@ -0,0 +1,102 @@
|
||||
/* aKode AudioConfiguration
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef _AKODE_AUDIOCONFIGURATION_H
|
||||
#define _AKODE_AUDIOCONFIGURATION_H
|
||||
|
||||
#include "akodelib.h"
|
||||
|
||||
namespace aKode {
|
||||
|
||||
enum ChannelConfiguration {
|
||||
MultiChannel = 0, // any number of independent channels
|
||||
MonoStereo = 1, // 1-2 channels
|
||||
Surround = 2 // 1-7 channels
|
||||
// Two extra flags will make it here sometime
|
||||
// One for Dolby Pro (make 3 front channels out of 2)
|
||||
// and Dolby Digital ES (make an extra back channel from the two surround)
|
||||
// and one for Dolby Surround (make 4 channels surround out of stereo).
|
||||
};
|
||||
|
||||
struct SurroundConfiguration {
|
||||
SurroundConfiguration() : front_channels(0)
|
||||
, rear_channels(0)
|
||||
, side_channels(0)
|
||||
, LFE_channel(0)
|
||||
, reserved(0) {};
|
||||
SurroundConfiguration(uint8_t val) { *(uint8_t*)(this) = val; };
|
||||
uint8_t front_channels : 3; // 1-5
|
||||
uint8_t rear_channels : 2; // 0-3
|
||||
uint8_t side_channels : 1; // 0,2
|
||||
uint8_t LFE_channel : 1;
|
||||
uint8_t reserved : 1;
|
||||
operator uint8_t() const {
|
||||
return *(uint8_t*)(this);
|
||||
}
|
||||
};
|
||||
// Channel ordering:
|
||||
// front(, rear)(, side)(, LFE)
|
||||
// (left, right(,)) (center)(, left-of-center, right-of-center)
|
||||
//
|
||||
// front channels:
|
||||
// 1 -> center
|
||||
// 2 -> left, right
|
||||
// 3 -> left, right, center
|
||||
// 4 -> left, right, left-of-center, right-of-center
|
||||
// 5 -> left, right, center, left-of-center, right-of-center
|
||||
//
|
||||
// rear channels:
|
||||
// 1 -> center
|
||||
// 2 -> left, right
|
||||
// 3 -> left, right, center
|
||||
|
||||
// 8 bytes of configuration
|
||||
struct AudioConfiguration {
|
||||
public:
|
||||
AudioConfiguration() : channels(0),
|
||||
channel_config(0),
|
||||
surround_config(0),
|
||||
sample_width(0),
|
||||
sample_rate(0) {};
|
||||
// 0-255 channels (0 means no audio)
|
||||
uint8_t channels;
|
||||
// enum ChannelConfiguration
|
||||
uint8_t channel_config;
|
||||
// struct SurroundConfiguration
|
||||
uint8_t surround_config;
|
||||
// 8, 16, 24 and 32 for signed integer samples
|
||||
// -32 for 32bit float
|
||||
int8_t sample_width;
|
||||
// Sample-rate in Hz
|
||||
uint32_t sample_rate;
|
||||
|
||||
bool operator==(const AudioConfiguration& b) const
|
||||
{
|
||||
// abusing that we are only 8 bytes long
|
||||
const uint32_t *you = (const uint32_t*)(&b);
|
||||
const uint32_t *me = (const uint32_t*)(this);
|
||||
|
||||
return (you[0] == me[0]) && (you[1] == me[1]);
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
@ -0,0 +1,148 @@
|
||||
/* aKode AudioFrame
|
||||
|
||||
Copyright (C) 2004,2006 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef _AKODE_AUDIOFRAME_H
|
||||
#define _AKODE_AUDIOFRAME_H
|
||||
|
||||
#include "akodelib.h"
|
||||
#include "audioconfiguration.h"
|
||||
#include <assert.h>
|
||||
|
||||
namespace aKode {
|
||||
|
||||
#define AKODE_POS_UNKNOWN -1
|
||||
#define AKODE_POS_EOF -2
|
||||
#define AKODE_POS_ERROR -3
|
||||
|
||||
//! The internal audio format
|
||||
|
||||
/*!
|
||||
* AudioFrames are used through-out akodelib as the mean of audiotransport.
|
||||
* It derives from AudioConfiguration because it caries its own interpretation
|
||||
* around with it.
|
||||
*/
|
||||
struct AudioFrame : public AudioConfiguration {
|
||||
public:
|
||||
AudioFrame() : length(0), max(0), data(0) {};
|
||||
~AudioFrame() { freeSpace(); }
|
||||
/*!
|
||||
* Reserves space in the frame for atleast \a iLength samples of the
|
||||
* configuration \a config.
|
||||
*/
|
||||
void reserveSpace(const AudioConfiguration *config, long iLength) {
|
||||
reserveSpace(config->channels, iLength, config->sample_width);
|
||||
sample_rate = config->sample_rate;
|
||||
channel_config = config->channel_config;
|
||||
surround_config = config->surround_config;
|
||||
}
|
||||
void reserveSpace(uint8_t iChannels, long iLength, int8_t iWidth) {
|
||||
// Sanity
|
||||
assert(iChannels > 0);
|
||||
assert(iWidth != 0 && iWidth >= -64 && iWidth <= 32);
|
||||
|
||||
// No reallocation needed
|
||||
if ( data != 0 && channels == iChannels &&
|
||||
max >= iLength && sample_width == iWidth)
|
||||
{
|
||||
length = iLength;
|
||||
return;
|
||||
}
|
||||
|
||||
// Reallocate
|
||||
freeSpace();
|
||||
channels = iChannels;
|
||||
length = max = iLength;
|
||||
sample_width = iWidth;
|
||||
if (length == 0) {
|
||||
data = 0;
|
||||
return;
|
||||
}
|
||||
data = new int8_t*[channels+1];
|
||||
int bytes = 0;
|
||||
if (sample_width < 0) {
|
||||
if (sample_width == -32)
|
||||
bytes = 4;
|
||||
else
|
||||
if (sample_width == -64)
|
||||
bytes = 8;
|
||||
else
|
||||
assert(false);
|
||||
}
|
||||
else {
|
||||
bytes = (sample_width+7) / 8;
|
||||
if (bytes == 3) bytes = 4; // 24bit uses 4 bytes
|
||||
}
|
||||
|
||||
for(int i=0; i<iChannels; i++)
|
||||
data[i] = new int8_t[length*bytes];
|
||||
data[iChannels] = 0;
|
||||
}
|
||||
/*!
|
||||
* Frees the space allocated for the buffer.
|
||||
*/
|
||||
void freeSpace()
|
||||
{
|
||||
if (!data) return;
|
||||
int8_t** tmp = data;
|
||||
while(*tmp) {
|
||||
delete[] *tmp;
|
||||
tmp++;
|
||||
}
|
||||
delete[] data;
|
||||
pos = 0;
|
||||
data = 0;
|
||||
channels = 0;
|
||||
length = 0;
|
||||
max = 0;
|
||||
}
|
||||
/*!
|
||||
* The current position in stream (measured in milliseconds)
|
||||
* -1 if unknown
|
||||
*/
|
||||
long pos;
|
||||
/*!
|
||||
* The length of the frame in samples.
|
||||
*/
|
||||
long length;
|
||||
/*!
|
||||
* The maximum number of samples currently reserved in the frame.
|
||||
*/
|
||||
long max;
|
||||
/*!
|
||||
* The buffer is accessed according sample-width
|
||||
* 1-8bit: int8_t, 9-16bit: int16_t, 17-32bit: int32_t
|
||||
* -32bit: float, -64bit: double
|
||||
*/
|
||||
int8_t** data;
|
||||
};
|
||||
|
||||
// evil function to swap the contents of two frames
|
||||
inline void swapFrames(AudioFrame* toFrame, AudioFrame* fromFrame) {
|
||||
AudioFrame tmpFrame;
|
||||
|
||||
tmpFrame = *toFrame;
|
||||
*toFrame = *fromFrame;
|
||||
*fromFrame = tmpFrame;
|
||||
tmpFrame.data = 0;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
@ -0,0 +1,111 @@
|
||||
/* aKode: Auto-Sink
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "audioframe.h"
|
||||
#include "auto_sink.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace aKode {
|
||||
|
||||
extern "C" { AutoSinkPlugin auto_sink; }
|
||||
|
||||
struct AutoSink::private_data
|
||||
{
|
||||
private_data() : sink(0) {};
|
||||
SinkPluginHandler plugin_handler;
|
||||
Sink* sink;
|
||||
|
||||
bool tryOpen(const string plugin) {
|
||||
if (plugin_handler.load(plugin)) {
|
||||
sink = plugin_handler.openSink();
|
||||
if (sink) {
|
||||
if (sink->open())
|
||||
return true;
|
||||
delete sink;
|
||||
sink = 0;
|
||||
}
|
||||
plugin_handler.unload();
|
||||
} else
|
||||
std::cout << "auto_sink: Could not load " << plugin << std::endl;
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
AutoSink::AutoSink()
|
||||
{
|
||||
m_data = new private_data;
|
||||
}
|
||||
|
||||
AutoSink::~AutoSink()
|
||||
{
|
||||
close();
|
||||
delete m_data->sink;
|
||||
delete m_data;
|
||||
}
|
||||
|
||||
bool AutoSink::open()
|
||||
{
|
||||
// Try Polypaudio
|
||||
if (getenv("POLYP_SERVER"))
|
||||
if (m_data->tryOpen("polyp")) return true;
|
||||
// Try Jack
|
||||
if (m_data->tryOpen("jack")) return true;
|
||||
// Try ALSA
|
||||
if (m_data->tryOpen("alsa")) return true;
|
||||
// Try OSS
|
||||
if (m_data->tryOpen("oss")) return true;
|
||||
// Try Sun Audio
|
||||
if (m_data->tryOpen("sun")) return true;
|
||||
// Fail
|
||||
return false;
|
||||
}
|
||||
|
||||
void AutoSink::close()
|
||||
{
|
||||
if (m_data->sink)
|
||||
m_data->sink->close();
|
||||
}
|
||||
|
||||
int AutoSink::setAudioConfiguration(const AudioConfiguration* config)
|
||||
{
|
||||
if (!m_data->sink)
|
||||
return -1;
|
||||
else
|
||||
return m_data->sink->setAudioConfiguration(config);
|
||||
}
|
||||
|
||||
const AudioConfiguration* AutoSink::audioConfiguration() const
|
||||
{
|
||||
if (!m_data->sink)
|
||||
return 0;
|
||||
else
|
||||
return m_data->sink->audioConfiguration();
|
||||
}
|
||||
|
||||
bool AutoSink::writeFrame(AudioFrame* frame)
|
||||
{
|
||||
if (!m_data->sink)
|
||||
return false;
|
||||
else
|
||||
return m_data->sink->writeFrame(frame);
|
||||
}
|
||||
|
||||
} // namespace
|
@ -0,0 +1,58 @@
|
||||
/* aKode: Auto-Sink
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef _AKODE_AUTO_SINK_H
|
||||
#define _AKODE_AUTO_SINK_H
|
||||
|
||||
#include "sink.h"
|
||||
|
||||
namespace aKode {
|
||||
|
||||
class AudioConfiguration;
|
||||
class AudioFrame;
|
||||
|
||||
class AutoSink : public Sink {
|
||||
public:
|
||||
AutoSink();
|
||||
~AutoSink();
|
||||
bool open();
|
||||
void close();
|
||||
int setAudioConfiguration(const AudioConfiguration *config);
|
||||
const AudioConfiguration* audioConfiguration() const;
|
||||
// Writes blocking
|
||||
bool writeFrame(AudioFrame *frame);
|
||||
|
||||
struct private_data;
|
||||
private:
|
||||
private_data *m_data;
|
||||
};
|
||||
|
||||
class AutoSinkPlugin : public SinkPlugin {
|
||||
public:
|
||||
virtual AutoSink* openSink() {
|
||||
return new AutoSink();
|
||||
}
|
||||
};
|
||||
|
||||
extern "C" AutoSinkPlugin auto_sink;
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
@ -0,0 +1,298 @@
|
||||
/* aKode: Buffered Decoder
|
||||
|
||||
Copyright (C) 2004-2005 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include <pthread.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "audioframe.h"
|
||||
#include "audiobuffer.h"
|
||||
#include "decoder.h"
|
||||
#include "crossfader.h"
|
||||
#include "buffered_decoder.h"
|
||||
|
||||
namespace aKode {
|
||||
|
||||
// States are used to ensure we always have a welldefined state
|
||||
enum BufferedDecoderStatus { Closed, Open, Playing, Paused, XFadingSeek };
|
||||
|
||||
struct BufferedDecoder::private_data
|
||||
{
|
||||
private_data() : buffer(0)
|
||||
, decoder(0)
|
||||
, xfader(0)
|
||||
, fading_time(50)
|
||||
, buffer_size(16)
|
||||
, blocking(false)
|
||||
, running(false)
|
||||
, state(Closed)
|
||||
, halt(false)
|
||||
, seek_pos(-1) {};
|
||||
AudioBuffer *buffer;
|
||||
Decoder *decoder;
|
||||
CrossFader *xfader;
|
||||
unsigned int fading_time, buffer_size;
|
||||
bool blocking;
|
||||
bool running;
|
||||
BufferedDecoderStatus state;
|
||||
|
||||
// Thread controls
|
||||
volatile bool halt;
|
||||
volatile long seek_pos;
|
||||
pthread_t thread;
|
||||
};
|
||||
|
||||
// The decoder-thread. It is controlled through the two variables
|
||||
// halt and seek_pos in d
|
||||
static void* run_decoder(void* arg) {
|
||||
BufferedDecoder::private_data *d = (BufferedDecoder::private_data*)arg;
|
||||
|
||||
AudioFrame frame;
|
||||
bool no_error;
|
||||
|
||||
while(true) {
|
||||
if (d->halt) break;
|
||||
if (d->seek_pos>=0) {
|
||||
d->decoder->seek(d->seek_pos);
|
||||
d->seek_pos = -1;
|
||||
}
|
||||
|
||||
no_error = d->decoder->readFrame(&frame);
|
||||
if (no_error)
|
||||
d->buffer->put(&frame, true);
|
||||
else {
|
||||
if (d->decoder->error() || d->decoder->eof()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
d->buffer->setEOF();
|
||||
|
||||
return (void*)0;
|
||||
}
|
||||
|
||||
BufferedDecoder::BufferedDecoder(){
|
||||
d = new private_data;
|
||||
}
|
||||
|
||||
BufferedDecoder::~BufferedDecoder() {
|
||||
if (d->state != Closed) closeDecoder();
|
||||
delete d;
|
||||
}
|
||||
|
||||
void BufferedDecoder::openDecoder(Decoder *decoder) {
|
||||
if (d->state != Closed) closeDecoder();
|
||||
|
||||
d->decoder = decoder;
|
||||
d->buffer = new AudioBuffer(d->buffer_size);
|
||||
d->state = Open;
|
||||
}
|
||||
|
||||
void BufferedDecoder::closeDecoder() {
|
||||
if (d->state == Closed) return;
|
||||
if (d->state != Open) stop();
|
||||
|
||||
delete d->buffer;
|
||||
d->buffer = 0;
|
||||
d->decoder = 0;
|
||||
d->state = Closed;
|
||||
}
|
||||
|
||||
void BufferedDecoder::start()
|
||||
{
|
||||
if (d->state != Open) return;
|
||||
|
||||
d->halt = false;
|
||||
d->seek_pos = -1;
|
||||
|
||||
d->buffer->reset();
|
||||
|
||||
if (pthread_create(&d->thread, 0, run_decoder, d) == 0) {
|
||||
d->running = true;
|
||||
}
|
||||
|
||||
d->state = Playing;
|
||||
}
|
||||
|
||||
void BufferedDecoder::stop() {
|
||||
if (d->state == Closed || d->state == Open) return;
|
||||
|
||||
if (d->state != Playing) {
|
||||
// Stop fading
|
||||
delete d->xfader;
|
||||
d->xfader = 0;
|
||||
}
|
||||
|
||||
d->buffer->release();
|
||||
|
||||
if (d->running) {
|
||||
d->halt = true;
|
||||
pthread_join(d->thread, 0);
|
||||
d->running = false;
|
||||
}
|
||||
|
||||
d->state = Open;
|
||||
}
|
||||
|
||||
bool BufferedDecoder::readFrame(AudioFrame* frame)
|
||||
{
|
||||
if (d->state == Closed || eof()) return false;
|
||||
if (d->state == Open) start();
|
||||
|
||||
// Potentially blocking..
|
||||
if (d->buffer->get(frame, d->blocking)) {
|
||||
if (d->state == XFadingSeek) {
|
||||
if(!d->xfader->doFrame(frame)) {
|
||||
delete d->xfader;
|
||||
d->xfader = 0;
|
||||
d->state = Playing;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
long BufferedDecoder::length() {
|
||||
if (d->decoder)
|
||||
return d->decoder->length();
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
|
||||
long BufferedDecoder::position() {
|
||||
long pos = -1;
|
||||
pos = d->seek_pos;
|
||||
if (pos > 0) return pos;
|
||||
if (d->buffer) {
|
||||
pos = d->buffer->position();
|
||||
if (pos > 0) return pos;
|
||||
}
|
||||
if (d->decoder) {
|
||||
pos = d->decoder->position();
|
||||
}
|
||||
return pos;
|
||||
}
|
||||
|
||||
bool BufferedDecoder::eof() {
|
||||
return d->buffer && d->buffer->eof();
|
||||
}
|
||||
|
||||
bool BufferedDecoder::error() {
|
||||
return d->decoder && d->decoder->error();
|
||||
}
|
||||
|
||||
bool BufferedDecoder::seekable() {
|
||||
if (d->decoder)
|
||||
return d->decoder->seekable();
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
bool BufferedDecoder::seek(long pos) {
|
||||
if (d->state == Closed) return false;
|
||||
if (!d->decoder->seekable()) return false;
|
||||
if (d->state == Open) {
|
||||
return d->decoder->seek(pos);
|
||||
}
|
||||
|
||||
if (d->fading_time > 0 && !d->buffer->empty()) {
|
||||
d->xfader = new CrossFader(d->fading_time*2);
|
||||
fillFader();
|
||||
d->state = XFadingSeek;
|
||||
}
|
||||
|
||||
d->seek_pos = pos;
|
||||
d->buffer->flush();
|
||||
|
||||
// we have to assume the seek will go well at this point
|
||||
return true;
|
||||
}
|
||||
|
||||
void BufferedDecoder::pause() {
|
||||
if (d->state == Closed || d->state == Open || d->state == Paused) return;
|
||||
/*
|
||||
if (d->state == Playing && !d->buffer->empty()) {
|
||||
d->xfader = new CrossFader(d->fading_time);
|
||||
fillFader();
|
||||
d->state = FadingOut;
|
||||
} */
|
||||
|
||||
d->buffer->pause();
|
||||
|
||||
d->state = Paused;
|
||||
}
|
||||
|
||||
void BufferedDecoder::resume() {
|
||||
if (d->state != Paused);
|
||||
/*
|
||||
if (d->state == Playing || d->state == Paused || d->state == FadingOut) {
|
||||
d->xfader = new CrossFader(d->fading_time);
|
||||
d->state = FadingIn;
|
||||
} */
|
||||
|
||||
d->buffer->resume();
|
||||
|
||||
d->state = Playing;
|
||||
}
|
||||
|
||||
|
||||
void BufferedDecoder::setBufferSize(int size) {
|
||||
d->buffer_size = size;
|
||||
if (d->state == Open) {
|
||||
delete d->buffer;
|
||||
d->buffer = new AudioBuffer(d->buffer_size);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void BufferedDecoder::setFadingTime(int time) {
|
||||
d->fading_time = time;
|
||||
}
|
||||
|
||||
void BufferedDecoder::setBlockingRead(bool block) {
|
||||
d->blocking = block;
|
||||
}
|
||||
|
||||
AudioBuffer * BufferedDecoder::buffer() const {
|
||||
return d->buffer;
|
||||
}
|
||||
|
||||
const AudioConfiguration* BufferedDecoder::audioConfiguration() {
|
||||
// ### Might the buffer contain a different configuration?
|
||||
if (d->decoder)
|
||||
return d->decoder->audioConfiguration();
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
void BufferedDecoder::fillFader() {
|
||||
if (!d->xfader) return;
|
||||
|
||||
AudioFrame frame;
|
||||
while (true) // fill the crossfader with what might be in buffer
|
||||
{
|
||||
if (!d->buffer->get(&frame, false)) break;
|
||||
if (!d->xfader->writeFrame(&frame)) break;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace
|
@ -0,0 +1,78 @@
|
||||
/* aKode: Buffered Decoder
|
||||
|
||||
Copyright (C) 2005 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef _AKODE_BUFFERED_DECODER_H
|
||||
#define _AKODE_BUFFERED_DECODER_H
|
||||
|
||||
#include "decoder.h"
|
||||
#include "akode_export.h"
|
||||
|
||||
namespace aKode {
|
||||
|
||||
class AudioBuffer;
|
||||
class AudioConfiguration;
|
||||
|
||||
class AKODE_EXPORT BufferedDecoder : public Decoder {
|
||||
public:
|
||||
BufferedDecoder();
|
||||
virtual ~BufferedDecoder();
|
||||
|
||||
void openDecoder(Decoder*);
|
||||
void closeDecoder();
|
||||
|
||||
void start();
|
||||
void stop();
|
||||
|
||||
void pause();
|
||||
void resume();
|
||||
|
||||
virtual bool readFrame(AudioFrame*);
|
||||
virtual bool seek(long pos);
|
||||
|
||||
virtual long length();
|
||||
virtual long position();
|
||||
virtual bool seekable();
|
||||
|
||||
virtual bool eof();
|
||||
virtual bool error();
|
||||
|
||||
void setBlockingRead(bool block);
|
||||
|
||||
void setBufferSize(int size);
|
||||
void setFadingTime(int time);
|
||||
|
||||
// void setFadeInSeek(bool fade);
|
||||
// void setFadeToStop(bool fade);
|
||||
|
||||
AudioBuffer* buffer() const;
|
||||
|
||||
virtual const AudioConfiguration* audioConfiguration();
|
||||
|
||||
struct private_data;
|
||||
private:
|
||||
private_data *d;
|
||||
|
||||
protected:
|
||||
void fillFader();
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
@ -0,0 +1,168 @@
|
||||
/* aKode: ByteBuffer
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "bytebuffer.h"
|
||||
|
||||
namespace aKode {
|
||||
|
||||
ByteBuffer::ByteBuffer(unsigned int len)
|
||||
: length(len)
|
||||
, readPos(0)
|
||||
, writePos(0)
|
||||
, flushed(false)
|
||||
, released(false)
|
||||
, closed(false)
|
||||
{
|
||||
pthread_cond_init(¬_empty, 0);
|
||||
pthread_cond_init(¬_full, 0);
|
||||
pthread_mutex_init(&mutex, 0);
|
||||
buffer = new char[length];
|
||||
}
|
||||
|
||||
ByteBuffer::~ByteBuffer() {
|
||||
delete[] buffer;
|
||||
}
|
||||
|
||||
int ByteBuffer::write(char* buf, unsigned int len, bool blocking)
|
||||
{
|
||||
pthread_mutex_lock(&mutex);
|
||||
if (released) len = 0;
|
||||
|
||||
flushed = closed = false;
|
||||
while (space() < len) {
|
||||
if (blocking) {
|
||||
pthread_cond_wait(¬_full, &mutex);
|
||||
if (flushed || released) len = 0;
|
||||
}
|
||||
else
|
||||
len = space();
|
||||
}
|
||||
|
||||
unsigned int base = len, rem = 0;
|
||||
if (writePos+len > length) {
|
||||
base = length-writePos;
|
||||
rem = len-base;
|
||||
}
|
||||
|
||||
memcpy(buffer+writePos, buf, base);
|
||||
memcpy(buffer, buf+base, rem);
|
||||
|
||||
writePos = (writePos+len) % length;
|
||||
|
||||
pthread_cond_signal(¬_empty);
|
||||
pthread_mutex_unlock(&mutex);
|
||||
return len;
|
||||
}
|
||||
|
||||
int ByteBuffer::read(char* buf, unsigned int len, bool blocking)
|
||||
{
|
||||
pthread_mutex_lock(&mutex);
|
||||
if (released) len = 0;
|
||||
if (closed) blocking = false;
|
||||
|
||||
while (content() < len) {
|
||||
if (blocking) {
|
||||
pthread_cond_wait(¬_empty, &mutex);
|
||||
if (released)
|
||||
len = 0;
|
||||
else if (closed)
|
||||
len = content();
|
||||
}
|
||||
else
|
||||
len = content();
|
||||
}
|
||||
|
||||
unsigned int base = len, rem = 0;
|
||||
if (readPos+len > length) {
|
||||
base = length-readPos;
|
||||
rem = len-base;
|
||||
}
|
||||
|
||||
memcpy(buf, buffer+readPos, base);
|
||||
memcpy(buf+base, buffer, rem);
|
||||
|
||||
readPos = (readPos+len) % length;
|
||||
|
||||
pthread_cond_signal(¬_full);
|
||||
pthread_mutex_unlock(&mutex);
|
||||
return len;
|
||||
}
|
||||
|
||||
void ByteBuffer::close() {
|
||||
pthread_mutex_lock(&mutex);
|
||||
closed = true;
|
||||
pthread_cond_signal(¬_empty);
|
||||
pthread_mutex_unlock(&mutex);
|
||||
}
|
||||
|
||||
|
||||
bool ByteBuffer::eof() {
|
||||
return empty() && closed;
|
||||
}
|
||||
|
||||
bool ByteBuffer::empty() {
|
||||
return (readPos == writePos);
|
||||
}
|
||||
|
||||
bool ByteBuffer::full() {
|
||||
return (readPos == (writePos+1) % length);
|
||||
}
|
||||
|
||||
unsigned int ByteBuffer::content() {
|
||||
unsigned int cn;
|
||||
if (readPos <= writePos)
|
||||
cn=writePos-readPos;
|
||||
else
|
||||
cn=writePos+length-readPos;
|
||||
return cn;
|
||||
}
|
||||
|
||||
unsigned int ByteBuffer::space() {
|
||||
unsigned int sp = length - content() - 1;
|
||||
return sp;
|
||||
}
|
||||
|
||||
void ByteBuffer::reset() {
|
||||
// We assume all processes have been released at this point
|
||||
readPos = writePos = 0;
|
||||
flushed = released = closed = false;
|
||||
}
|
||||
|
||||
void ByteBuffer::flush() {
|
||||
pthread_mutex_lock(&mutex);
|
||||
readPos = writePos = 0;
|
||||
flushed = true;
|
||||
pthread_cond_signal(¬_full);
|
||||
pthread_mutex_unlock(&mutex);
|
||||
}
|
||||
|
||||
void ByteBuffer::release() {
|
||||
pthread_mutex_lock(&mutex);
|
||||
released = true;
|
||||
pthread_cond_signal(¬_empty);
|
||||
pthread_cond_signal(¬_full);
|
||||
pthread_mutex_unlock(&mutex);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
@ -0,0 +1,111 @@
|
||||
/* aKode: ByteBuffer
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef _AKODE_BYTEBUFFER_H
|
||||
#define _AKODE_BYTEBUFFER_H
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
#include "akode_export.h"
|
||||
|
||||
namespace aKode {
|
||||
|
||||
//! A reentrant circular buffer of bytes
|
||||
|
||||
/*!
|
||||
* A buffer of bytes to synchronize I/O between two threads, one reading and one writing.
|
||||
*/
|
||||
class AKODE_EXPORT ByteBuffer {
|
||||
const unsigned int length;
|
||||
char* buffer;
|
||||
volatile unsigned int readPos;
|
||||
volatile unsigned int writePos;
|
||||
pthread_cond_t not_empty;
|
||||
pthread_cond_t not_full;
|
||||
pthread_mutex_t mutex;
|
||||
volatile bool flushed, released, closed;
|
||||
public:
|
||||
/*!
|
||||
* Constructs a buffer with \a len bytes.
|
||||
*/
|
||||
ByteBuffer(unsigned int len);
|
||||
~ByteBuffer();
|
||||
|
||||
/*!
|
||||
* Write \a len bytes from \a buf into the buffer. If blocking is set to true,
|
||||
* write will block until all bytes have been writen or release() or flush()
|
||||
* is called.
|
||||
* Returns the number of bytes writen.
|
||||
*/
|
||||
int write(char* buf, unsigned int len, bool blocking = false);
|
||||
/*!
|
||||
* Read \a len bytes from the buffer into \a buf. If blocking is set to true,
|
||||
* read will block until \a len bytes have been read or release()
|
||||
* is called.
|
||||
* Returns the number of bytes read.
|
||||
*/
|
||||
int read(char* buf, unsigned int len, bool blocking = false);
|
||||
|
||||
/*!
|
||||
* Called by the writing thread to denote EOF
|
||||
*/
|
||||
void close();
|
||||
|
||||
/*!
|
||||
* Returns true if the stream is empty and closed
|
||||
*/
|
||||
bool eof();
|
||||
|
||||
/*!
|
||||
* Returns true if the buffer is empty
|
||||
*/
|
||||
bool empty();
|
||||
/*!
|
||||
* Returns true if the buffer is full
|
||||
*/
|
||||
bool full();
|
||||
|
||||
/*!
|
||||
* Returns the number of bytes that can be read without blocking
|
||||
*/
|
||||
unsigned int content();
|
||||
/*!
|
||||
* Returns the number of bytes that can be writen without blocking
|
||||
*/
|
||||
unsigned int space();
|
||||
|
||||
/*!
|
||||
* Flushes the buffer and releases any blocking write-calls.
|
||||
*/
|
||||
void flush() ;
|
||||
/*!
|
||||
* Releases all blocking threads and prepares the buffer for deletion.
|
||||
* Use reset to make the buffer usable again.
|
||||
*/
|
||||
void release();
|
||||
/*!
|
||||
* Resets the buffer to be as good as new. Assumes all threads are released.
|
||||
*/
|
||||
void reset();
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
@ -0,0 +1,148 @@
|
||||
/* aKode: Converter
|
||||
|
||||
Copyright (C) 2005,2006 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "arithmetic.h"
|
||||
#include "audioframe.h"
|
||||
#include "converter.h"
|
||||
|
||||
namespace aKode {
|
||||
|
||||
Converter::Converter(int sample_width) : m_sample_width(sample_width) {}
|
||||
|
||||
template<typename T, typename S, template<typename T> class ArithmT, template<typename S> class ArithmS>
|
||||
static bool __doFrameFP(AudioFrame* in, AudioFrame* out, int sample_width)
|
||||
{
|
||||
AudioConfiguration config = *in;
|
||||
config.sample_width = sample_width;
|
||||
|
||||
if (out)
|
||||
out->reserveSpace(&config, in->length);
|
||||
else
|
||||
out = in;
|
||||
|
||||
// ### Use doubles if double sized or 32bit samples are used.
|
||||
float scale = 1.0;
|
||||
scale = ArithmS<S>::max(sample_width)/(float)ArithmT<T>::max(in->sample_width);
|
||||
|
||||
int channels = in->channels;
|
||||
int length = in->length;
|
||||
|
||||
T** indata = (T**)in->data;
|
||||
S** outdata = (S**)out->data;
|
||||
for(int i=0; i<channels; i++)
|
||||
for(int j=0; j<length; j++)
|
||||
outdata[i][j] = (S)(scale*indata[i][j]);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
template<typename T, typename S>
|
||||
static bool __doFrame(AudioFrame* in, AudioFrame* out, int sample_width)
|
||||
{
|
||||
AudioConfiguration config = *in;
|
||||
config.sample_width = sample_width;
|
||||
|
||||
if (out)
|
||||
out->reserveSpace(&config, in->length);
|
||||
else
|
||||
out = in;
|
||||
|
||||
int width_T = sizeof(T)*8;
|
||||
int shift = width_T - sample_width;
|
||||
|
||||
int channels = in->channels;
|
||||
uint32_t length = in->length;
|
||||
|
||||
T** indata = (T**)in->data;
|
||||
S** outdata = (S**)out->data;
|
||||
for(int i=0; i<channels; i++)
|
||||
for(uint32_t j=0; j<length; j++)
|
||||
outdata[i][j] = (S)(indata[i][j] >> shift);
|
||||
|
||||
out->sample_width = sample_width;
|
||||
return true;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
static inline bool _doFrameFP(AudioFrame* in, AudioFrame* out, int sample_width)
|
||||
{
|
||||
if (in->sample_width == -64) {
|
||||
return __doFrameFP<double, T, Arithm_FP, Arithm_FP>(in, out, sample_width);
|
||||
} else
|
||||
if (in->sample_width == -32) {
|
||||
return __doFrameFP<float, T, Arithm_FP, Arithm_FP>(in, out, sample_width);
|
||||
} else
|
||||
if (in->sample_width <= 8) {
|
||||
return __doFrameFP<int8_t, T, Arithm_Int, Arithm_FP>(in, out, sample_width);
|
||||
} else
|
||||
if (in->sample_width <= 16) {
|
||||
return __doFrameFP<int16_t, T, Arithm_Int, Arithm_FP>(in, out, sample_width);
|
||||
} else
|
||||
return __doFrameFP<int32_t, T, Arithm_Int, Arithm_FP>(in, out, sample_width);
|
||||
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
static inline bool _doFrame(AudioFrame* in, AudioFrame* out, int sample_width)
|
||||
{
|
||||
if (in->sample_width == -64) {
|
||||
return __doFrameFP<double, T, Arithm_FP, Arithm_Int>(in, out, sample_width);
|
||||
} else
|
||||
if (in->sample_width == -32) {
|
||||
return __doFrameFP<float, T, Arithm_FP, Arithm_Int>(in, out, sample_width);
|
||||
} else
|
||||
if (in->sample_width <= 8) {
|
||||
return __doFrame<int8_t, T>(in, out, sample_width);
|
||||
} else
|
||||
if (in->sample_width <= 16) {
|
||||
return __doFrame<int16_t, T>(in, out, sample_width);
|
||||
} else
|
||||
return __doFrame<int32_t, T>(in, out, sample_width);
|
||||
}
|
||||
|
||||
bool Converter::doFrame(AudioFrame* in, AudioFrame* out)
|
||||
{
|
||||
if (m_sample_width == 0) return false;
|
||||
if (!out && in->sample_width == m_sample_width) return true;
|
||||
|
||||
if (m_sample_width < 0) {
|
||||
if (m_sample_width == -64)
|
||||
return _doFrameFP<double>(in, out, m_sample_width);
|
||||
else
|
||||
return _doFrameFP<float>(in, out, m_sample_width);
|
||||
} else
|
||||
if (m_sample_width <= 8) {
|
||||
return _doFrame<int8_t>(in, out, m_sample_width);
|
||||
} else
|
||||
if (m_sample_width <= 16) {
|
||||
return _doFrame<int16_t>(in, out, m_sample_width);
|
||||
} else
|
||||
return _doFrame<int32_t>(in, out, m_sample_width);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void Converter::setSampleWidth(int sample_width)
|
||||
{
|
||||
m_sample_width = sample_width;
|
||||
}
|
||||
|
||||
|
||||
} // namespace
|
@ -0,0 +1,39 @@
|
||||
/* aKode: Converter
|
||||
|
||||
Copyright (C) 2005 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#ifndef _AKODE_CONVERTER_H
|
||||
#define _AKODE_CONVERTER_H
|
||||
|
||||
#include "akode_export.h"
|
||||
|
||||
namespace aKode {
|
||||
|
||||
class AudioFrame;
|
||||
|
||||
class AKODE_EXPORT Converter {
|
||||
int m_sample_width;
|
||||
public:
|
||||
Converter(int sample_width = 0);
|
||||
bool doFrame(AudioFrame* in, AudioFrame* out=0);
|
||||
void setSampleWidth(int sample_width);
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
@ -0,0 +1,195 @@
|
||||
/* aKode Cross-fader
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "audioframe.h"
|
||||
#include "arithmetic.h"
|
||||
#include "crossfader.h"
|
||||
|
||||
namespace aKode {
|
||||
|
||||
CrossFader::CrossFader(unsigned int time) : time(time),pos(0) {}
|
||||
|
||||
// T is the input/output type, S is the fast arithmetics type, Div is a division method
|
||||
template<typename T, typename S, template<typename S> class Arithm>
|
||||
static bool _doFrame(AudioFrame* in, int& pos, AudioFrame* frame)
|
||||
{
|
||||
T** indata1 = (T**)in->data;
|
||||
T** indata2 = (T**)frame->data;
|
||||
//T** outdata = (T**)in->data;
|
||||
|
||||
long length;
|
||||
long max = frame->length;
|
||||
if (pos >= max) return false;
|
||||
if (in->channels != frame->channels) return false;
|
||||
if (in->sample_width != frame->sample_width) return false;
|
||||
|
||||
if (in->length > max-pos)
|
||||
length = in->length = max-pos;
|
||||
else
|
||||
length = in->length;
|
||||
|
||||
S orgw; // weight of original
|
||||
S neww; // weight of new
|
||||
for(int j=0; j<length && pos<max; j++,pos++) {
|
||||
neww = pos;
|
||||
orgw = max-pos;
|
||||
|
||||
for(int i=0; i<in->channels; i++) {
|
||||
S signal = 0;
|
||||
S remainder = 0;
|
||||
signal += Arithm<S>::div(indata1[i][j],max)*neww;
|
||||
remainder += Arithm<S>::rem(indata1[i][j],max)*neww;
|
||||
signal += Arithm<S>::div(indata2[i][pos],max)*orgw;
|
||||
remainder += Arithm<S>::rem(indata2[i][pos],max)*orgw;
|
||||
|
||||
indata1[i][j] = (T)(signal+Arithm<S>::div(remainder,max));
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// T is the input/output type, S is the fast arithmetics type, Arithm defines devisions
|
||||
template<typename T, typename S, template<typename S> class Arithm>
|
||||
static bool _readFrame(AudioFrame* in, int& pos, AudioFrame* frame)
|
||||
{
|
||||
T** indata = (T**)frame->data;
|
||||
T** outdata = (T**)in->data;
|
||||
|
||||
S length;
|
||||
S max = frame->length;
|
||||
if (max-pos <= 1024)
|
||||
length = max-pos;
|
||||
else
|
||||
length = 1024;
|
||||
|
||||
if (pos >= max) return false;
|
||||
in->reserveSpace(frame, (long)length);
|
||||
|
||||
S weight;
|
||||
for(int j=0; j<length && pos<max; j++,pos++) {
|
||||
weight = (max-pos);
|
||||
|
||||
for(int i=0; i<in->channels; i++) {
|
||||
S signal = Arithm<S>::div(indata[i][pos],max)*weight;
|
||||
S remainder = Arithm<S>::rem(indata[i][pos],max)*weight;
|
||||
|
||||
outdata[i][j] = (T)(signal+Arithm<S>::div(remainder,max));
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
static void _writeFrame(AudioFrame* in, AudioFrame* source)
|
||||
{
|
||||
T** indata = (T**)in->data;
|
||||
T** outdata = (T**)source->data;
|
||||
|
||||
int tpos = source->length;
|
||||
for (int i=0; i<in->channels; i++) {
|
||||
tpos = source->length;
|
||||
for(int j = 0; j<in->length && tpos < source->max; j++,tpos++)
|
||||
{
|
||||
outdata[i][tpos] = indata[i][j];
|
||||
}
|
||||
}
|
||||
source->length = tpos;
|
||||
}
|
||||
|
||||
// This codes abuses the internal working of AudioFrame, and will need an
|
||||
// update if AudioFrame is changed.
|
||||
bool CrossFader::writeFrame(AudioFrame* in)
|
||||
{
|
||||
if (source.max==0) {
|
||||
long length = (in->sample_rate*time)/1000;
|
||||
source.reserveSpace(in, length);
|
||||
source.length = 0;
|
||||
}
|
||||
if (source.length >= source.max) return false;
|
||||
if (in->sample_width < -32) {
|
||||
_writeFrame<double>(in, &source);
|
||||
} else
|
||||
if (in->sample_width < 0) {
|
||||
_writeFrame<float>(in, &source);
|
||||
} else
|
||||
if (in->sample_width <= 8) {
|
||||
_writeFrame<int8_t>(in, &source);
|
||||
} else
|
||||
if (in->sample_width <= 16) {
|
||||
_writeFrame<int16_t>(in, &source);
|
||||
} else
|
||||
_writeFrame<int32_t>(in, &source);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CrossFader::doFrame(AudioFrame* in)
|
||||
{
|
||||
if (in->sample_width < -32) {
|
||||
return _doFrame<double, double, Arithm_FP>(in, pos, &source);
|
||||
} else
|
||||
if (in->sample_width < 0) {
|
||||
return _doFrame<float, float, Arithm_FP>(in, pos, &source);
|
||||
} else
|
||||
if (in->sample_width <= 8) {
|
||||
return _doFrame<int8_t, int32_t, Arithm_Int>(in, pos, &source);
|
||||
} else
|
||||
if (in->sample_width <= 16) {
|
||||
return _doFrame<int16_t, int32_t, Arithm_Int>(in, pos, &source);
|
||||
} else
|
||||
if (in->sample_width <= 24) {
|
||||
return _doFrame<int32_t, int32_t, Arithm_Int>(in, pos, &source);
|
||||
} else
|
||||
return _doFrame<int32_t, int64_t, Arithm_Int>(in, pos, &source);
|
||||
}
|
||||
|
||||
bool CrossFader::readFrame(AudioFrame* in)
|
||||
{
|
||||
if (in->sample_width < -32) {
|
||||
return _readFrame<double, double, Arithm_FP>(in, pos, &source);
|
||||
} else
|
||||
if (in->sample_width < 0) {
|
||||
return _readFrame<float, float, Arithm_FP>(in, pos, &source);
|
||||
} else
|
||||
if (in->sample_width <= 8) {
|
||||
return _readFrame<int8_t, int32_t, Arithm_Int>(in, pos, &source);
|
||||
} else
|
||||
if (in->sample_width <= 16) {
|
||||
return _readFrame<int16_t, int32_t, Arithm_Int>(in, pos, &source);
|
||||
} else
|
||||
if (in->sample_width <= 24) {
|
||||
return _readFrame<int32_t, int32_t, Arithm_Int>(in, pos, &source);
|
||||
} else
|
||||
return _readFrame<int32_t, int64_t, Arithm_Int>(in, pos, &source);
|
||||
}
|
||||
|
||||
void CrossFader::setLength(unsigned int new_time) {
|
||||
time = new_time;
|
||||
}
|
||||
|
||||
bool CrossFader::full() {
|
||||
return source.max <= source.length;
|
||||
}
|
||||
|
||||
bool CrossFader::done() {
|
||||
return source.max > 0 && pos >= source.length;
|
||||
}
|
||||
|
||||
|
||||
} // namespace
|
@ -0,0 +1,44 @@
|
||||
/* aKode: Cross-fader
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#ifndef _AKODE_CROSSFADER_H
|
||||
#define _AKODE_CROSSFADER_H
|
||||
|
||||
namespace aKode {
|
||||
|
||||
class AudioFrame;
|
||||
|
||||
class CrossFader {
|
||||
int time;
|
||||
int pos;
|
||||
AudioFrame source;
|
||||
public:
|
||||
// Set number of milliseconds the crosslap should last
|
||||
CrossFader(unsigned int time = 100);
|
||||
bool writeFrame(AudioFrame* frame);
|
||||
bool doFrame(AudioFrame* frame);
|
||||
bool readFrame(AudioFrame* frame);
|
||||
void setLength(unsigned int time);
|
||||
bool full();
|
||||
bool done();
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
@ -0,0 +1,135 @@
|
||||
/* aKode: Decoder abstract-type
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef _AKODE_DECODER_H
|
||||
#define _AKODE_DECODER_H
|
||||
|
||||
#include "pluginhandler.h"
|
||||
#include "akode_export.h"
|
||||
|
||||
namespace aKode {
|
||||
|
||||
class AudioConfiguration;
|
||||
class File;
|
||||
class AudioFrame;
|
||||
|
||||
//! A generic interface for all decoders
|
||||
|
||||
/*!
|
||||
* The Decoder works by decoding one audio-frame at a time. It is up to
|
||||
* the decoder itself to decide how large a frame is.
|
||||
*/
|
||||
class AKODE_EXPORT Decoder {
|
||||
public:
|
||||
virtual ~Decoder() {};
|
||||
/*!
|
||||
* Reads one frame from the decoder.
|
||||
* It is advisable to reuse the the same frame for every readFrame()-call,
|
||||
* as the frame size is likely to be constant in the same file,
|
||||
* which saves re-allocations.
|
||||
*
|
||||
* If readFrame returns false, it can be one of three things:
|
||||
* 1. End-of-File (check eof()).
|
||||
* 2. Fatal error (check error()).
|
||||
* 3. Recoverable error (call readFrame again)
|
||||
*/
|
||||
virtual bool readFrame(AudioFrame*) = 0;
|
||||
/*!
|
||||
* Returns the length of the file/stream in milliseconds.
|
||||
* Returns -1 if the length is unknown.
|
||||
*/
|
||||
virtual long length() = 0;
|
||||
/*!
|
||||
* Returns the current position in file/stream in milliseconds.
|
||||
* Returns -1 if the position is unknown.
|
||||
*/
|
||||
virtual long position() = 0;
|
||||
/*!
|
||||
* Attempts a seek to \a pos milliseconds into the file/stream.
|
||||
* Returns true if succesfull.
|
||||
*/
|
||||
virtual bool seek(long pos) = 0;
|
||||
/*!
|
||||
* Returns true if the decoder is seekable
|
||||
*/
|
||||
virtual bool seekable() = 0;
|
||||
/*!
|
||||
* Returns true if the decoder has reached the end-of-file/stream
|
||||
*/
|
||||
virtual bool eof() = 0;
|
||||
/*!
|
||||
* Returns true if the decoder has encountered a non-recoverable error
|
||||
*/
|
||||
virtual bool error() = 0;
|
||||
/*!
|
||||
* Returns the configuration of the decoded stream.
|
||||
* Returns 0 if unknown.
|
||||
*/
|
||||
virtual const AudioConfiguration* audioConfiguration() = 0;
|
||||
};
|
||||
|
||||
/*!
|
||||
* Parent class for decoder plugins
|
||||
*/
|
||||
class DecoderPlugin {
|
||||
public:
|
||||
/*!
|
||||
* Asks the plugin to open a Decoder, returns 0 if the
|
||||
* plugin could not.
|
||||
*/
|
||||
virtual Decoder* openDecoder(File *) { return 0; };
|
||||
/*!
|
||||
* Old version version of openDecoder.
|
||||
* \deprecated
|
||||
*/
|
||||
Decoder* openFrameDecoder(File *src) { return openDecoder(src); };
|
||||
};
|
||||
|
||||
/*!
|
||||
* Handler for decoder-plugins.
|
||||
*/
|
||||
class AKODE_EXPORT DecoderPluginHandler : public PluginHandler, public DecoderPlugin {
|
||||
public:
|
||||
static list<string> listDecoderPlugins();
|
||||
|
||||
DecoderPluginHandler() : decoder_plugin(0) {};
|
||||
DecoderPluginHandler(const string name);
|
||||
/*!
|
||||
* Open a Decoder for the File \a src. Returns 0 if unsuccesfull
|
||||
*/
|
||||
Decoder* openDecoder(File *src);
|
||||
/*!
|
||||
* Old version version of openDecoder.
|
||||
* \deprecated
|
||||
*/
|
||||
Decoder* openFrameDecoder(File *src) { return openDecoder(src); };
|
||||
/*!
|
||||
* Loads a decoder-plugin named \a name (xiph, mpc, mpeg..)
|
||||
*/
|
||||
virtual bool load(const string name);
|
||||
virtual void unload();
|
||||
bool isLoaded() { return decoder_plugin != 0; };
|
||||
protected:
|
||||
DecoderPlugin* decoder_plugin;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
@ -0,0 +1,71 @@
|
||||
/* aKode: DecoderPluginHandler
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "akodelib.h"
|
||||
#include "decoder.h"
|
||||
#include "wav_decoder.h"
|
||||
|
||||
namespace aKode {
|
||||
|
||||
list<string> DecoderPluginHandler::listDecoderPlugins() {
|
||||
const list<string> plugin_list = PluginHandler::listPlugins();
|
||||
list<string> decoder_list;
|
||||
for (list<string>::const_iterator i = plugin_list.begin(); i != plugin_list.end(); i++)
|
||||
if (i->length() > 8 && i->substr(i->length()-8,8) == "_decoder")
|
||||
decoder_list.push_back(i->substr(0,i->length()-8));
|
||||
return decoder_list;
|
||||
}
|
||||
|
||||
DecoderPluginHandler::DecoderPluginHandler(const string lib) : decoder_plugin(0)
|
||||
{
|
||||
if (lib.size() > 0)
|
||||
load(lib);
|
||||
}
|
||||
|
||||
bool DecoderPluginHandler::load(const string name)
|
||||
{
|
||||
if (library_loaded) return false;
|
||||
|
||||
bool res = PluginHandler::load(name+"_decoder");
|
||||
if (res)
|
||||
decoder_plugin = (DecoderPlugin*)loadPlugin(name+"_decoder");
|
||||
else
|
||||
if (name == "wav") {
|
||||
decoder_plugin = &wav_decoder;
|
||||
res = true;
|
||||
} else
|
||||
return false;
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
void DecoderPluginHandler::unload() {
|
||||
decoder_plugin = 0;
|
||||
PluginHandler::unload();
|
||||
}
|
||||
|
||||
Decoder* DecoderPluginHandler::openDecoder(File *src) {
|
||||
if (decoder_plugin)
|
||||
return decoder_plugin->openDecoder(src);
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
} //namespace
|
@ -0,0 +1,82 @@
|
||||
/* aKode: Encoder abstract-type
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef _AKODE_ENCODER_H
|
||||
#define _AKODE_ENCODER_H
|
||||
|
||||
#include "pluginhandler.h"
|
||||
#include "sink.h"
|
||||
|
||||
namespace aKode {
|
||||
|
||||
class File;
|
||||
|
||||
//! A generic interface for all encoders
|
||||
|
||||
/*!
|
||||
* Encoders are specialized sinks that can write to files. Be aware that encoders in aKode 1.0
|
||||
* cannot handle tags. So the files should be tagged with TagLib after encoding.
|
||||
*/
|
||||
class Encoder : public Sink {
|
||||
public:
|
||||
/*!
|
||||
* Returns the current position in file/stream in milliseconds.
|
||||
* Notice that this position is not the necessarely the same as the
|
||||
* the one in the incoming stream.
|
||||
* Returns -1 if the position is unknown.
|
||||
*/
|
||||
virtual long position() = 0;
|
||||
/*!
|
||||
* Returns true if the encoder has encountered a non-recoverable error
|
||||
*/
|
||||
virtual bool error() = 0;
|
||||
};
|
||||
|
||||
/*!
|
||||
* Parent class for encoder plugins
|
||||
*/
|
||||
class EncoderPlugin {
|
||||
public:
|
||||
/*!
|
||||
* Asks the plugin to open a Encoder that writes to the file \a dst
|
||||
*/
|
||||
virtual Encoder* openEncoder(File *dst) = 0;
|
||||
};
|
||||
|
||||
/*!
|
||||
* Handler for encoder-plugins.
|
||||
*/
|
||||
class EncoderPluginHandler : public PluginHandler, public EncoderPlugin {
|
||||
public:
|
||||
EncoderPluginHandler() : encoder_plugin(0) {};
|
||||
EncoderPluginHandler(const string name);
|
||||
Encoder* openEncoder(File *dst);
|
||||
/*!
|
||||
* Loads a encoder-plugin by the \a name (flac, vorbis, lame..)
|
||||
*/
|
||||
virtual bool load(const string name);
|
||||
bool isLoaded() { return encoder_plugin != 0; };
|
||||
protected:
|
||||
EncoderPlugin* encoder_plugin;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
@ -0,0 +1,50 @@
|
||||
/* aKode: EncopderPluginHandler
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "akodelib.h"
|
||||
#include "encoder.h"
|
||||
|
||||
namespace aKode {
|
||||
|
||||
EncoderPluginHandler::EncoderPluginHandler(const string lib) : encoder_plugin(0)
|
||||
{
|
||||
if (lib.size() > 0)
|
||||
load(lib);
|
||||
}
|
||||
|
||||
|
||||
bool EncoderPluginHandler::load(const string name)
|
||||
{
|
||||
bool res = PluginHandler::load(name+"_encoder");
|
||||
if (res)
|
||||
encoder_plugin = (EncoderPlugin*)loadPlugin(name+"_encoder");
|
||||
|
||||
return res && encoder_plugin;
|
||||
}
|
||||
|
||||
Encoder* EncoderPluginHandler::openEncoder(File *dest)
|
||||
{
|
||||
if (encoder_plugin)
|
||||
return encoder_plugin->openEncoder(dest);
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
} //namespace
|
@ -0,0 +1,156 @@
|
||||
/* aKode Resampler (fast)
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "audioframe.h"
|
||||
#include "arithmetic.h"
|
||||
#include "fast_resampler.h"
|
||||
|
||||
#define FR_FIDELITY (1<<10)
|
||||
|
||||
namespace aKode {
|
||||
|
||||
FastResampler* FastResamplerPlugin::openResampler() {
|
||||
return new FastResampler();
|
||||
}
|
||||
|
||||
extern "C" { FastResamplerPlugin fast_resampler; }
|
||||
|
||||
FastResampler::FastResampler() : speed(1.0), sample_rate(44100) {}
|
||||
|
||||
// A fast resampling by linear interpolation
|
||||
// I assume you know binary arithmetics and convertions if you're reading this
|
||||
// T is the input/output type, Arithm defines the used arithmetic
|
||||
template<typename T, typename S, template<typename S> class Arithm>
|
||||
static bool _doBuffer(AudioFrame* in, AudioFrame* out, float speed, unsigned sample_rate)
|
||||
{
|
||||
unsigned long vt_pos_start = 0; // virtual positions of new sample
|
||||
unsigned long vt_pos_end;;
|
||||
unsigned long real_pos_start, real_pos_end;
|
||||
long start_fraction, end_fraction;
|
||||
|
||||
unsigned long vt_end = in->length * 1024 -1;
|
||||
|
||||
int int_speed;
|
||||
unsigned long out_length;
|
||||
{
|
||||
float resample_speed = in->sample_rate/(float)sample_rate;
|
||||
resample_speed *= speed;
|
||||
int_speed = (unsigned int)(resample_speed*1024.0+0.5);
|
||||
|
||||
out_length = (in->length/int_speed)*1024;
|
||||
unsigned long out_rem = (in->length%int_speed)*1024 + (int_speed-1);
|
||||
out_length += out_rem/int_speed;
|
||||
|
||||
out->reserveSpace(in, out_length);
|
||||
out->sample_rate = sample_rate;
|
||||
}
|
||||
vt_pos_end = int_speed;
|
||||
|
||||
unsigned char channels = in->channels; // take copy to reduce alias-induced reads
|
||||
unsigned long out_pos = 0;
|
||||
|
||||
T** indata = (T**)in->data; // templating ;)
|
||||
T** outdata = (T**)out->data;
|
||||
|
||||
S sspeed = (S)int_speed;
|
||||
S smax = Arithm<S>::max(in->sample_width);
|
||||
|
||||
while(out_pos < out_length && vt_pos_start < vt_end) {
|
||||
real_pos_start = vt_pos_start / 1024; start_fraction = vt_pos_start % 1024;
|
||||
real_pos_end = vt_pos_end / 1024; end_fraction = vt_pos_end % 1024;
|
||||
|
||||
if (real_pos_start == real_pos_end) {
|
||||
for(int i=0; i<channels; i++) {
|
||||
outdata[i][out_pos] = indata[i][real_pos_start];
|
||||
}
|
||||
} else {
|
||||
for(int i=0; i<channels; i++) {
|
||||
S signal = 0;
|
||||
S remainder = 0;
|
||||
S temp;
|
||||
|
||||
// add fraction from starting sample
|
||||
temp = (S)indata[i][real_pos_start];
|
||||
signal += Arithm<S>::div(temp,sspeed) * (1024L-start_fraction);
|
||||
remainder += Arithm<S>::rem(temp,sspeed) * (1024L-start_fraction);
|
||||
|
||||
// add fraction from end sample
|
||||
temp= (S)indata[i][real_pos_end];
|
||||
signal += Arithm<S>::div(temp,sspeed) * (end_fraction);
|
||||
remainder += Arithm<S>::rem(temp,sspeed) * (end_fraction);
|
||||
|
||||
// add all intermediate samples
|
||||
for(unsigned long j = real_pos_start+1; j<real_pos_end; j++) {
|
||||
temp= (S)indata[i][j];
|
||||
signal += Arithm<S>::div(temp,sspeed) * 1024L;
|
||||
remainder += Arithm<S>::rem(temp,sspeed) * 1024L;
|
||||
}
|
||||
|
||||
// add accummulated remainder
|
||||
signal += Arithm<S>::div(remainder,sspeed);
|
||||
|
||||
// clip to maximum, just to be safe
|
||||
if (signal > smax) signal = smax;
|
||||
else
|
||||
if (signal < -smax) signal = -smax;
|
||||
|
||||
outdata[i][out_pos] = (T)signal;
|
||||
}
|
||||
}
|
||||
out_pos++;
|
||||
vt_pos_start = vt_pos_end;
|
||||
vt_pos_end += int_speed;
|
||||
if (vt_pos_end > vt_end) vt_pos_end = vt_end;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool FastResampler::doFrame(AudioFrame* in, AudioFrame* out)
|
||||
{
|
||||
if (speed == 1.0 && in->sample_rate == sample_rate) {
|
||||
swapFrames(out, in);
|
||||
return true;
|
||||
}
|
||||
if (in->sample_width < 0) {
|
||||
return _doBuffer<float, float, Arithm_FP>(in, out, speed, sample_rate);
|
||||
} else
|
||||
if (in->sample_width <= 8) {
|
||||
return _doBuffer<int8_t, int32_t, Arithm_Int>(in, out, speed, sample_rate);
|
||||
} else
|
||||
if (in->sample_width <= 16) {
|
||||
return _doBuffer<int16_t, int32_t, Arithm_Int>(in, out, speed, sample_rate);
|
||||
} else
|
||||
if (in->sample_width <= 24) {
|
||||
return _doBuffer<int32_t, int32_t, Arithm_Int>(in, out, speed, sample_rate);
|
||||
} else
|
||||
return _doBuffer<int32_t, int64_t, Arithm_Int>(in, out, speed, sample_rate);
|
||||
}
|
||||
|
||||
void FastResampler::setSpeed(float _speed)
|
||||
{
|
||||
speed = _speed;
|
||||
}
|
||||
|
||||
void FastResampler::setSampleRate(unsigned int rate)
|
||||
{
|
||||
sample_rate = rate;
|
||||
}
|
||||
|
||||
} // namespace
|
@ -0,0 +1,60 @@
|
||||
/* aKode: Resampler (fast)
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#ifndef _AKODE_FAST_RESAMPLER_H
|
||||
#define _AKODE_FAST_RESAMPLER_H
|
||||
|
||||
#include "resampler.h"
|
||||
|
||||
namespace aKode {
|
||||
|
||||
class AudioFrame;
|
||||
|
||||
//! Fast low quality resampler using linear interpolation
|
||||
|
||||
/*!
|
||||
* This is the default resampler, which excels over the SRCResampler
|
||||
* in being LGPL, fast and integer only, but the result is more
|
||||
* noisy.
|
||||
*
|
||||
* The quality of resampling most relevant to low signal samples.
|
||||
* For samples of 44100Hz/16bit or more, it is mostly irrelevant.
|
||||
*/
|
||||
|
||||
class FastResampler : public Resampler {
|
||||
public:
|
||||
FastResampler();
|
||||
bool doFrame(AudioFrame* in, AudioFrame* out);
|
||||
void setSampleRate(unsigned int rate);
|
||||
void setSpeed(float speed);
|
||||
|
||||
float speed;
|
||||
unsigned int sample_rate;
|
||||
};
|
||||
|
||||
class FastResamplerPlugin : public ResamplerPlugin {
|
||||
public:
|
||||
virtual FastResampler* openResampler();
|
||||
};
|
||||
|
||||
extern "C" FastResamplerPlugin fast_resampler;
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
@ -0,0 +1,121 @@
|
||||
/* aKode: File abstract-type
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef _AKODE_FILE_H
|
||||
#define _AKODE_FILE_H
|
||||
|
||||
extern "C" {
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
}
|
||||
|
||||
namespace aKode {
|
||||
|
||||
//! The generic interface to aKode's virtualised files
|
||||
|
||||
/*!
|
||||
* An interface with the all the needed file/stream-operations
|
||||
* the library needs.
|
||||
*/
|
||||
class File {
|
||||
public:
|
||||
/*!
|
||||
* Creates a File with the given \a filename.
|
||||
*/
|
||||
File(const char* filename) : filename(filename) {};
|
||||
virtual ~File() {};
|
||||
/*!
|
||||
* Opens the file as read-only.
|
||||
* Returns whether the operation was succesfull.
|
||||
*/
|
||||
virtual bool openRO() { return false; };
|
||||
/*!
|
||||
* Opens the file as read and write.
|
||||
* Returns whether the operation was succesfull.
|
||||
*/
|
||||
virtual bool openRW() { return false; };
|
||||
/*!
|
||||
* Open the file as write-only.
|
||||
* Returns whether the operation was succesfull.
|
||||
*/
|
||||
virtual bool openWO() { return false; };
|
||||
/*!
|
||||
* Closes the file.
|
||||
*/
|
||||
virtual void close() = 0;
|
||||
/*!
|
||||
* Reads \a num bytes from the file and places the data in \a ptr.
|
||||
* Returns number of read characters. Returns 0 if end-of-file.
|
||||
* Returns negative at errors.
|
||||
*/
|
||||
virtual long read(char* ptr, long num) = 0;
|
||||
/*!
|
||||
* Writes \a num bytes from \a ptr to the file.
|
||||
* Returns number of writen characters.
|
||||
* Returns negative at errors.
|
||||
*/
|
||||
virtual long write(const char* ptr, long num) = 0;
|
||||
/*!
|
||||
* Seeks to the position.
|
||||
* Behaves semantically as lseek.
|
||||
*/
|
||||
virtual bool seek(long to, int whence = SEEK_SET) = 0;
|
||||
/*!
|
||||
* Returns current position in file, or negative if unknown.
|
||||
*/
|
||||
virtual long position() const = 0;
|
||||
/*!
|
||||
* Returns length of file, or negative if unknown.
|
||||
*/
|
||||
virtual long length() const = 0;
|
||||
/*!
|
||||
* Returns true if the file is seekable
|
||||
*/
|
||||
virtual bool seekable() const = 0;
|
||||
/*!
|
||||
* Returns true if the file is readable
|
||||
*/
|
||||
virtual bool readable() const = 0;
|
||||
/*!
|
||||
* Returns true if the file is writeable
|
||||
*/
|
||||
virtual bool writeable() const = 0;
|
||||
/*!
|
||||
* Returns whether the file has reached end-of-file.
|
||||
*/
|
||||
virtual bool eof() const = 0;
|
||||
/*!
|
||||
* Returns true if the file has entered a non-recoverable error-state
|
||||
*/
|
||||
virtual bool error() const = 0;
|
||||
/*!
|
||||
* Advises the OS (if possible), that the file will be read
|
||||
* sequentially from the current position and forward.
|
||||
*/
|
||||
virtual void fadvise() = 0;
|
||||
/*!
|
||||
* The name of the file.
|
||||
*/
|
||||
const char *filename;
|
||||
};
|
||||
|
||||
} //namespace
|
||||
|
||||
#endif
|
@ -0,0 +1,14 @@
|
||||
#ifndef _AKODE_FRAMEDECODER_H
|
||||
#define _AKODE_FRAMEDECODER_H
|
||||
|
||||
#include "decoder.h"
|
||||
|
||||
namespace aKode {
|
||||
/*
|
||||
class FrameDecoder : public Decoder
|
||||
{
|
||||
};*/
|
||||
typedef Decoder FrameDecoder;
|
||||
}
|
||||
|
||||
#endif
|
@ -0,0 +1,157 @@
|
||||
/* aKode: LocalFile
|
||||
|
||||
Copyright (C) 2004 Allan Sandfeld Jensen <kde@carewolf.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "akodelib.h"
|
||||
|
||||
extern "C" {
|
||||
#ifdef HAVE_FEATURES_H
|
||||
// Needed for older glibc versions.
|
||||