package: add opus-tools
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 11 Sep 2012 21:06:50 +0000 (23:06 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 11 Sep 2012 21:06:50 +0000 (23:06 +0200)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/multimedia/Config.in
package/opus-tools/Config.in [new file with mode: 0644]
package/opus-tools/opus-tools.mk [new file with mode: 0644]

index afe4a23b0c0929aa2596466703374b062825f3ba..273d9bc1bcb2091c7af84096830b4b45cad8f910 100644 (file)
@@ -19,6 +19,7 @@ source "package/multimedia/mpd/Config.in"
 source "package/multimedia/mpg123/Config.in"
 source "package/multimedia/mplayer/Config.in"
 source "package/multimedia/musepack/Config.in"
+source "package/opus-tools/Config.in"
 source "package/multimedia/pulseaudio/Config.in"
 source "package/multimedia/tidsp-binaries/Config.in"
 source "package/multimedia/vorbis-tools/Config.in"
diff --git a/package/opus-tools/Config.in b/package/opus-tools/Config.in
new file mode 100644 (file)
index 0000000..2552d19
--- /dev/null
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_OPUS_TOOLS
+       bool "opus-tools"
+       select BR2_PACKAGE_OPUS
+       select BR2_PACKAGE_LIBOGG
+       help
+         Opus codec command line tools. This package provides the
+         reference implementations of encoder and decoder utilities
+         for libopus.
+
+         http://opus-codec.org
diff --git a/package/opus-tools/opus-tools.mk b/package/opus-tools/opus-tools.mk
new file mode 100644 (file)
index 0000000..233ad9a
--- /dev/null
@@ -0,0 +1,22 @@
+#############################################################
+#
+# opus-tools
+#
+#############################################################
+
+OPUS_TOOLS_VERSION = 0.1.5
+OPUS_TOOLS_SITE = http://downloads.xiph.org/releases/opus
+OPUS_TOOLS_CONF_OPT = --disable-oggtest --disable-opustest
+OPUS_TOOLS_DEPENDENCIES = opus libogg host-pkg-config
+
+ifeq ($(BR2_PACKAGE_LIBPCAP),y)
+OPUS_TOOLS_DEPENDENCIES += libpcap
+endif
+
+ifeq ($(BR2_X86_CPU_HAS_SSE),y)
+OPUS_TOOLS_CONF_OPT += --enable-sse
+else
+OPUS_TOOLS_CONF_OPT += --disable-sse
+endif
+
+$(eval $(autotools-package))