projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add crop features, and build jpeg tools, closes #665
[openwrt/svn-archive/archive.git]
/
libs
/
libjpeg
/
Makefile
diff --git
a/libs/libjpeg/Makefile
b/libs/libjpeg/Makefile
index e136e4220ef15f8bf1478f48497d58c43e49299d..aa978f6ea446cf549e6121d21d42cfe4c7b4526b 100644
(file)
--- a/
libs/libjpeg/Makefile
+++ b/
libs/libjpeg/Makefile
@@
-31,17
+31,26
@@
define Package/libjpeg
URL:=http://www.ijg.org/
endef
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)
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" \
$(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
endef
define Build/InstallDev
@@
-59,4
+68,10
@@
define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libjpeg.{a,so*}
endef
$(STAGING_DIR)/usr/lib/libjpeg.{a,so*}
endef
-$(eval $(call Build/DefaultTargets))
+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))