Patchwork [v2] jpeg-turbo: new package

login
register
mail settings
Submitter Murat Demirten
Date June 3, 2012, 4:32 p.m.
Message ID <1338741144-14029-1-git-send-email-mdemirten@yh.com.tr>
Download mbox | patch
Permalink /patch/162565/
State Accepted
Headers show

Comments

Murat Demirten - June 3, 2012, 4:32 p.m.
INSTALL_STAGING = YES added into this version.


Signed-off-by: Murat Demirten <mdemirten@yh.com.tr>
---
 package/Config.in                |    1 +
 package/jpeg-turbo/Config.in     |   26 ++++++++++++++++++++++++++
 package/jpeg-turbo/jpeg-turbo.mk |   23 +++++++++++++++++++++++
 3 files changed, 50 insertions(+), 0 deletions(-)
 create mode 100644 package/jpeg-turbo/Config.in
 create mode 100644 package/jpeg-turbo/jpeg-turbo.mk
Peter Korsgaard - Dec. 13, 2012, 11:06 p.m.
>>>>> "Murat" == Murat Demirten <mdemirten@yh.com.tr> writes:

 Murat> INSTALL_STAGING = YES added into this version.
 Murat> Signed-off-by: Murat Demirten <mdemirten@yh.com.tr>

Sorry for the slow response. Committed with some fixups/simplifications
- Thanks.

Patch

diff --git a/package/Config.in b/package/Config.in
index ca8fc96..5a23f66 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -336,6 +336,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..a398079
--- /dev/null
+++ b/package/jpeg-turbo/Config.in
@@ -0,0 +1,26 @@ 
+config BR2_PACKAGE_JPEG_TURBO
+	bool "jpeg-turbo"
+	help
+	  It 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://libjpeg-turbo.virtualgl.org
+
+choice
+	prompt "libjpeg api version"
+	default BR2_PACKAGE_JPEG_TURBO_APIVERSION_80
+	depends on BR2_PACKAGE_JPEG_TURBO
+	help
+	  Selects libjpeg compatible api version.
+
+config BR2_PACKAGE_JPEG_TURBO_APIVERSION_62
+	bool "62"
+
+config BR2_PACKAGE_JPEG_TURBO_APIVERSION_70
+	bool "70"
+
+config BR2_PACKAGE_JPEG_TURBO_APIVERSION_80
+	bool "80"
+
+endchoice
diff --git a/package/jpeg-turbo/jpeg-turbo.mk b/package/jpeg-turbo/jpeg-turbo.mk
new file mode 100644
index 0000000..1aae41c
--- /dev/null
+++ b/package/jpeg-turbo/jpeg-turbo.mk
@@ -0,0 +1,23 @@ 
+#############################################################
+#
+# jpeg-turbo 
+#
+#############################################################
+JPEG_TURBO_VERSION = 1.2.0
+JPEG_TURBO_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libjpeg-turbo
+JPEG_TURBO_SOURCE = libjpeg-turbo-$(JPEG_TURBO_VERSION).tar.gz
+JPEG_TURBO_INSTALL_STAGING = YES
+
+ifeq ($(BR2_PACKAGE_JPEG_TURBO_APIVERSION_80),y)
+	JPEG_TURBO_CONF_ENV += JPEG_LIB_VERSION=80
+endif
+
+ifeq ($(BR2_PACKAGE_JPEG_TURBO_APIVERSION_70),y)
+	JPEG_TURBO_CONF_ENV += JPEG_LIB_VERSION=70
+endif
+
+ifeq ($(BR2_PACKAGE_JPEG_TURBO_APIVERSION_62),y)
+	JPEG_TURBO_CONF_ENV += JPEG_LIB_VERSION=62
+endif
+
+$(eval $(call AUTOTARGETS))