2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.bz2
15 PKG_SOURCE_URL:=http://upx.sourceforge.net/download/
16 PKG_MD5SUM:=68d662b1f831335460f9bfdbf632c6ce
18 include $(INCLUDE_DIR)/package.mk
23 DEPENDS:=+libucl +libstdcpp +zlib
24 TITLE:=The Ultimate Packer for eXecutables
25 URL:=http://upx.sourceforge.net/
28 define Package/upx/description
29 UPX is a free, portable, extendable, high-performance executable packer for
30 several different executable formats. It achieves an excellent compression ratio
31 and offers very fast decompression. Your executables suffer no memory overhead
32 or other drawbacks for most of the formats supported, because of in-place
40 TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
45 define Package/upx/install
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/upx $(1)/usr/bin/
50 $(eval $(call BuildPackage,upx))