libsamplerate: new package
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Tue, 18 Jan 2011 16:54:35 +0000 (13:54 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 20 Jan 2011 12:21:53 +0000 (13:21 +0100)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/multimedia/Config.in
package/multimedia/libsamplerate/Config.in [new file with mode: 0644]
package/multimedia/libsamplerate/libsamplerate.mk [new file with mode: 0644]

index 6d2cbc703ff3fc33978fc72b047a4342fcf6f43d..22c2d0365c3d30d2d1e4536eb91c32322a4c7ae7 100644 (file)
@@ -20,6 +20,7 @@ source "package/multimedia/libmms/Config.in"
 source "package/multimedia/libmpd/Config.in"
 source "package/multimedia/libmpeg2/Config.in"
 source "package/multimedia/libogg/Config.in"
+source "package/multimedia/libsamplerate/Config.in"
 source "package/multimedia/libsndfile/Config.in"
 source "package/multimedia/libtheora/Config.in"
 source "package/multimedia/libvorbis/Config.in"
diff --git a/package/multimedia/libsamplerate/Config.in b/package/multimedia/libsamplerate/Config.in
new file mode 100644 (file)
index 0000000..b394fdb
--- /dev/null
@@ -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/multimedia/libsamplerate/libsamplerate.mk b/package/multimedia/libsamplerate/libsamplerate.mk
new file mode 100644 (file)
index 0000000..94b07a4
--- /dev/null
@@ -0,0 +1,17 @@
+################################################################################
+#
+# libsamplerate
+#
+################################################################################
+
+LIBSAMPLERATE_VERSION = 0.1.7
+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,package/multimedia,libsamplerate))