summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/mjpegtools/Config.in5
-rw-r--r--package/mjpegtools/mjpegtools.mk6
2 files changed, 11 insertions, 0 deletions
diff --git a/package/mjpegtools/Config.in b/package/mjpegtools/Config.in
index c486361a87..968f9e7d65 100644
--- a/package/mjpegtools/Config.in
+++ b/package/mjpegtools/Config.in
@@ -12,6 +12,11 @@ config BR2_PACKAGE_MJPEGTOOLS
http://mjpeg.sourceforge.net
+config BR2_PACKAGE_MJPEGTOOLS_SIMD_SUPPORT
+ bool
+ default y if BR2_X86_CPU_HAS_MMX
+ default y if BR2_POWERPC_CPU_HAS_ALTIVEC
+
comment "mjpegtools needs a toolchain w/ C++, threads"
depends on BR2_USE_MMU
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/mjpegtools/mjpegtools.mk b/package/mjpegtools/mjpegtools.mk
index c7392fa2b3..14713c868e 100644
--- a/package/mjpegtools/mjpegtools.mk
+++ b/package/mjpegtools/mjpegtools.mk
@@ -10,6 +10,12 @@ MJPEGTOOLS_DEPENDENCIES = host-pkgconf jpeg
MJPEGTOOLS_LICENSE = GPL-2.0+
MJPEGTOOLS_LICENSE_FILES = COPYING
+ifeq ($(BR2_PACKAGE_MJPEGTOOLS_SIMD_SUPPORT),y)
+MJPEGTOOLS_CONF_OPTS += --enable-simd-accel
+else
+MJPEGTOOLS_CONF_OPTS += --disable-simd-accel
+endif
+
ifeq ($(BR2_PACKAGE_LIBPNG),y)
MJPEGTOOLS_CONF_OPTS += --with-libpng
MJPEGTOOLS_DEPENDENCIES += libpng
OpenPOWER on IntegriCloud