Add crop features, and build jpeg tools, closes #665

git-svn-id: svn://svn.openwrt.org/openwrt/packages@4629 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2006-08-22 12:26:42 +00:00
parent c1873da2ce
commit 062fa289b5
2 changed files with 1913 additions and 2 deletions

View File

@ -31,17 +31,26 @@ define Package/libjpeg
URL:=http://www.ijg.org/
endef
define Package/jpeg-tools
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=libjpeg
TITLE:=JPEG manipulation tools
DESCRIPTION:=JPEG manipulation tools
URL:=http://www.ijg.org/
endef
define Build/Configure
$(call Build/Configure/Default,--disable-shared --enable-static)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)/usr/{include,lib}
mkdir -p $(PKG_INSTALL_DIR)/usr/{include,lib,bin,man/man1}
$(MAKE) -C $(PKG_BUILD_DIR) \
prefix="$(PKG_INSTALL_DIR)/usr" \
exec_prefix="$(PKG_INSTALL_DIR)/usr" \
all install-headers install-lib
all install-headers install-lib install
endef
define Build/InstallDev
@ -59,4 +68,10 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libjpeg.{a,so*}
endef
define Package/jpeg-tools/install
install -m0755 -d $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/*jpeg* $(1)/usr/bin/
endef
$(eval $(call BuildPackage,libjpeg))
$(eval $(call BuildPackage,jpeg-tools))

File diff suppressed because it is too large Load Diff