summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurat Demirten <mdemirten@yh.com.tr>2012-06-03 06:32:24 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2012-12-13 22:25:53 (GMT)
commit39348d803bda0c0f33805b06d302669293e4d38a (patch)
treeb31acbc64709e140597e169a75ed88e8c3c98830
parentce8a7d50557d8f4a8dd3ae8a2259cc8996a38c57 (diff)
downloadbuildroot-39348d803bda0c0f33805b06d302669293e4d38a.tar.gz
buildroot-39348d803bda0c0f33805b06d302669293e4d38a.tar.bz2
jpeg-turbo: new package
[Peter: Various cleanups/fixes/simplifications] Signed-off-by: Murat Demirten <mdemirten@yh.com.tr> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/Config.in1
-rw-r--r--package/jpeg-turbo/Config.in9
-rw-r--r--package/jpeg-turbo/jpeg-turbo.mk27
3 files changed, 37 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index cad1221..7358d93 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -391,6 +391,7 @@ source "package/gtk2-engines/Config.in"
source "package/gtk2-themes/Config.in"
source "package/imlib2/Config.in"
source "package/jpeg/Config.in"
+source "package/jpeg-turbo/Config.in"
source "package/libart/Config.in"
source "package/libdmtx/Config.in"
source "package/libdrm/Config.in"
diff --git a/package/jpeg-turbo/Config.in b/package/jpeg-turbo/Config.in
new file mode 100644
index 0000000..19765b0
--- /dev/null
+++ b/package/jpeg-turbo/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_JPEG_TURBO
+ bool "jpeg-turbo"
+ help
+ Libjpeg-turbo is a derivative of libjpeg that uses SIMD
+ instructions (MMX, SSE2, NEON) to accelerate baseline JPEG
+ compression and decompression on x86, x86-64, and ARM
+ systems.
+
+ http://www.libjpeg-turbo.org
diff --git a/package/jpeg-turbo/jpeg-turbo.mk b/package/jpeg-turbo/jpeg-turbo.mk
new file mode 100644
index 0000000..19a0292
--- /dev/null
+++ b/package/jpeg-turbo/jpeg-turbo.mk
@@ -0,0 +1,27 @@
+#############################################################
+#
+# jpeg-turbo
+#
+#############################################################
+
+JPEG_TURBO_VERSION = 1.2.1
+JPEG_TURBO_SOURCE = libjpeg-turbo-$(JPEG_TURBO_VERSION).tar.gz
+JPEG_TURBO_SITE = http://downloads.sourceforge.net/project/libjpeg-turbo/$(JPEG_TURBO_VERSION)
+JPEG_TURBO_INSTALL_STAGING = YES
+JPEG_TURBO_CONF_OPT = --with-jpeg8
+
+ifeq ($(BR2_X86_CPU_HAS_MMX)$(BR2_ARM_CPU_HAS_NEON),y)
+JPEG_TURBO_CONF_OPT += --with-simd
+# x86 simd support needs nasm
+JPEG_TURBO_DEPENDENCIES += $(if $(BR2_X86_CPU_HAS_MMX),host-nasm)
+else
+JPEG_TURBO_CONF_OPT += --without-simd
+endif
+
+define JPEG_TURBO_REMOVE_USELESS_TOOLS
+ rm -f $(addprefix $(TARGET_DIR)/usr/bin/,cjpeg djpeg jpegtrans rdjpgcom tjbench wrjpgcom)
+endef
+
+JPEG_TURBO_POST_INSTALL_TARGET_HOOKS += JPEG_TURBO_REMOVE_USELESS_TOOLS
+
+$(eval $(autotools-package))