summaryrefslogtreecommitdiffstats
path: root/package/libsamplerate
diff options
context:
space:
mode:
Diffstat (limited to 'package/libsamplerate')
-rw-r--r--package/libsamplerate/Config.in9
-rw-r--r--package/libsamplerate/libsamplerate.mk17
2 files changed, 26 insertions, 0 deletions
diff --git a/package/libsamplerate/Config.in b/package/libsamplerate/Config.in
new file mode 100644
index 000000000..b394fdb0a
--- /dev/null
+++ b/package/libsamplerate/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_LIBSAMPLERATE
+ bool "libsamplerate"
+ help
+ Secret Rabbit Code (aka libsamplerate) is a Sample Rate
+ Converter for audio. One example of where such a thing would
+ be useful is converting audio from the CD sample rate of
+ 44.1kHz to the 48kHz sample rate used by DAT players.
+
+ http://www.mega-nerd.com/SRC/
diff --git a/package/libsamplerate/libsamplerate.mk b/package/libsamplerate/libsamplerate.mk
new file mode 100644
index 000000000..d03a5d992
--- /dev/null
+++ b/package/libsamplerate/libsamplerate.mk
@@ -0,0 +1,17 @@
+################################################################################
+#
+# libsamplerate
+#
+################################################################################
+
+LIBSAMPLERATE_VERSION = 0.1.8
+LIBSAMPLERATE_SITE = http://www.mega-nerd.com/SRC
+LIBSAMPLERATE_INSTALL_STAGING = YES
+LIBSAMPLERATE_DEPENDENCIES = host-pkg-config
+LIBSAMPLERATE_CONF_OPT = --disable-fftw --program-transform-name=''
+
+ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
+LIBSAMPLERATE_DEPENDENCIES += libsndfile
+endif
+
+$(eval $(call AUTOTARGETS))