From cdc4bd819ffa39ed462ebb3cfdb45364e9f2a69c Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Mon, 18 Feb 2013 09:59:34 +0000 Subject: [PATCH] libjpeg-turbo: add package for test utils, move appropriate targets there Trying to figure out where jpeggut came from, found a) that it was a typo and b) that it was renamed in r643 from jpegut to tjunittest. In the same revision, jpegtest became tjbench, and later in r733, jcstest was added to test jpeg color space extentions. Since these tools will only be desirable for testing, added a new package libjpeg-turbo-tests to provide these utilities. The utilities needed libturbojpeg, so added what had been a commented out library to the new package. The libturbojpeg are currently commented out in InstallDev as well. If external packages begin to rely on libturbojpeg functions for some reason, the library should be added back. Signed-off-by: Russell Senior Signed-off-by: Florian Fainelli SVN-Revision: 35655 --- libs/libjpeg-turbo/Makefile | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/libs/libjpeg-turbo/Makefile b/libs/libjpeg-turbo/Makefile index 9ae15a6d7..546bf9bce 100644 --- a/libs/libjpeg-turbo/Makefile +++ b/libs/libjpeg-turbo/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libjpeg-turbo PKG_VERSION:=1.2.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/libjpeg-turbo @@ -43,6 +43,14 @@ define Package/jpeg-tools TITLE+= manipulation tools endef +define Package/libjpeg-turbo-tests + $(call Package/libjpeg-turbo/Default) + SECTION:=utils + CATEGORY:=Utilities + DEPENDS:=+libjpeg-turbo + TITLE+= testing utilities +endef + TARGET_CFLAGS += $(FPIC) CONFIGURE_ARGS += \ @@ -69,17 +77,25 @@ 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/jpegtran $(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 + +define Package/libjpeg-turbo-tests/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/tjbench $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/tjunittest $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/jcstest $(1)/usr/bin + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_BUILD_DIR)/.libs/libturbojpeg.{a,so*} $(1)/usr/lib/ endef $(eval $(call HostBuild)) $(eval $(call BuildPackage,libjpeg-turbo)) $(eval $(call BuildPackage,jpeg-tools)) +$(eval $(call BuildPackage,libjpeg-turbo-tests)) -- 2.30.2