2006-07-21 12:53:04 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=jpeg
|
|
|
|
PKG_VERSION:=6b
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)src.v$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.ijg.org/files/ \
|
|
|
|
ftp://ftp.uu.net/graphics/jpeg/
|
|
|
|
PKG_MD5SUM:=dbd5f3b47ed13132f04c685d608a7547
|
|
|
|
|
2010-09-07 10:04:42 +00:00
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2006-11-03 00:55:46 +00:00
|
|
|
|
2009-05-02 17:33:27 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2006-07-21 12:53:04 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2006-11-03 00:55:46 +00:00
|
|
|
define Package/jpeg/Default
|
|
|
|
TITLE:=The Independent JPEG Group's JPEG
|
|
|
|
URL:=http://www.ijg.org/
|
|
|
|
endef
|
|
|
|
|
2006-08-17 00:02:01 +00:00
|
|
|
define Package/libjpeg
|
2006-11-03 00:55:46 +00:00
|
|
|
$(call Package/jpeg/Default)
|
2006-08-17 00:02:01 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2006-11-03 00:55:46 +00:00
|
|
|
TITLE+= runtime library
|
2006-08-17 00:02:01 +00:00
|
|
|
endef
|
|
|
|
|
2006-08-22 12:26:42 +00:00
|
|
|
define Package/jpeg-tools
|
2006-11-03 00:55:46 +00:00
|
|
|
$(call Package/jpeg/Default)
|
2006-08-22 12:26:42 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2006-11-03 00:55:46 +00:00
|
|
|
DEPENDS:=+libjpeg
|
|
|
|
TITLE+= manipulation tools
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-09-05 13:02:14 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
|
2009-05-02 17:33:27 +00:00
|
|
|
HOST_CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
|
2006-07-21 12:53:04 +00:00
|
|
|
define Build/Compile
|
2010-02-18 13:10:21 +00:00
|
|
|
$(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/{include,lib,bin,man/man1}
|
2010-09-07 10:04:42 +00:00
|
|
|
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
|
2006-07-21 12:53:04 +00:00
|
|
|
prefix="$(PKG_INSTALL_DIR)/usr" \
|
|
|
|
exec_prefix="$(PKG_INSTALL_DIR)/usr" \
|
2011-02-09 20:36:27 +00:00
|
|
|
all
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
prefix="$(PKG_INSTALL_DIR)/usr" \
|
|
|
|
exec_prefix="$(PKG_INSTALL_DIR)/usr" \
|
|
|
|
install install-headers install-lib
|
2006-07-21 12:53:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/jpeglib.h $(1)/usr/include/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/jpegint.h $(1)/usr/include/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/j{config,error,morecfg}.h $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjpeg.{a,so*} $(1)/usr/lib/
|
2006-07-21 12:53:04 +00:00
|
|
|
endef
|
|
|
|
|
2006-11-03 00:55:46 +00:00
|
|
|
define Package/libjpeg/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-11-03 00:55:46 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjpeg.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-08-22 12:26:42 +00:00
|
|
|
define Package/jpeg-tools/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/*jpeg* $(1)/usr/bin/
|
2006-08-22 12:26:42 +00:00
|
|
|
endef
|
|
|
|
|
2009-05-02 17:33:27 +00:00
|
|
|
$(eval $(call HostBuild))
|
2006-08-18 21:21:06 +00:00
|
|
|
$(eval $(call BuildPackage,libjpeg))
|
2006-08-22 12:26:42 +00:00
|
|
|
$(eval $(call BuildPackage,jpeg-tools))
|