From 9d06d89cfd267b7e9a0cbf9187848c5d3a384c52 Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 8 Dec 2012 17:06:01 +0000 Subject: [PATCH] libjpeg-turbo: add package Libjpeg-turbo is a fork of jpeg-6b, which includes MMX, SSE and NEON acceleration and other performance enhancements. It is meant to be ABI/API compatible with the Independent JPEG Group's (IJG) jpeg implementation. Since its initial release, it also emulates jpeg 7 or 8, and has been adopted as the system jpeg library of Fedora, and an option in Gentoo. The SIMD acceleration provides a 2-4x speedup. On non-SIMD machines the enhancements provides up to a 25% improvement. Signed-off-by: Ian Leonard Signed-off-by: Florian Fainelli git-svn-id: svn://svn.openwrt.org/openwrt/packages@34580 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- libs/libjpeg-turbo/Makefile | 82 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 libs/libjpeg-turbo/Makefile diff --git a/libs/libjpeg-turbo/Makefile b/libs/libjpeg-turbo/Makefile new file mode 100644 index 000000000..cbe7b00d9 --- /dev/null +++ b/libs/libjpeg-turbo/Makefile @@ -0,0 +1,82 @@ +# +# Copyright (C) 20011 OpenWrt.org +# +# This is free software, licensed under the wxWindows Library Licence, Version 3.1. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libjpeg-turbo +PKG_VERSION:=1.1.1 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@SF/libjpeg-turbo +PKG_MD5SUM:=03b9c1406c7bfdc204313c2917ce6962 + +PKG_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/host-build.mk +include $(INCLUDE_DIR)/package.mk + +define Package/libjpeg-turbo/Default + TITLE:=Fork of libjpeg with performance improvements + URL:=http://libjpeg-turbo.virtualgl.org/ +endef + +define Package/libjpeg-turbo + $(call Package/libjpeg-turbo/Default) + SECTION:=libs + CATEGORY:=Libraries + TITLE+= runtime library +endef + +define Package/jpeg-tools + $(call Package/libjpeg-turbo/Default) + SECTION:=utils + CATEGORY:=Utilities + DEPENDS:=+libjpeg-turbo + TITLE+= manipulation tools +endef + +TARGET_CFLAGS += $(FPIC) + +CONFIGURE_ARGS += \ + --enable-shared \ + --enable-static \ + --with-jpeg8 \ + --without-simd \ + +# +# libjpegturbo.{a,so} provides the TurboJPEG/OSS interface. +# No known use in OpenWRT at this time. 14/11/11 +# + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_BUILD_DIR)/jpeglib.h $(1)/usr/include/ + $(CP) $(PKG_BUILD_DIR)/jpegint.h $(1)/usr/include/ + $(CP) $(PKG_BUILD_DIR)/j{config,error,morecfg}.h $(1)/usr/include/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_BUILD_DIR)/.libs/libjpeg.{a,so*} $(1)/usr/lib/ +# $(CP) $(PKG_BUILD_DIR)/.libs/libturbojpeg.{a,so*} $(1)/usr/lib/ +endef + +define Package/libjpeg-turbo/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_BUILD_DIR)/.libs/libjpeg.{a,so*} $(1)/usr/lib/ +# $(CP) $(PKG_BUILD_DIR)/.libs/libturbojpeg.{a,so*} $(1)/usr/lib/ +endef + +define Package/jpeg-tools/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/{c,d}jpeg $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/jpeg{tran,gut} $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/{rd,wr}jpgcom $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/jpgtest $(1)/usr/bin/ +endef + +$(eval $(call HostBuild)) +$(eval $(call BuildPackage,libjpeg-turbo)) +$(eval $(call BuildPackage,jpeg-tools)) -- 2.11.0