ccid: moved to github
[packages.git] / utils / upx / Makefile
1 #
2 # Copyright (C) 2006-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=upx
11 PKG_VERSION:=3.08
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.bz2
15 PKG_SOURCE_URL:=http://upx.sourceforge.net/download \
16         http://upx.sourceforge.net/download/00-OLD-VERSIONS
17 PKG_MD5SUM:=54c76fa52cad578ff23ef98aee91e3f5
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/upx
22   SECTION:=utils
23   CATEGORY:=Utilities
24   DEPENDS:=+libucl +libstdcpp +zlib
25   TITLE:=The Ultimate Packer for eXecutables
26   URL:=http://upx.sourceforge.net/
27 endef
28
29 define Package/upx/description
30 UPX is a free, portable, extendable, high-performance executable packer for
31 several different executable formats. It achieves an excellent compression ratio
32 and offers very fast decompression. Your executables suffer no memory overhead
33 or other drawbacks for most of the formats supported, because of in-place
34 decompression.
35 endef
36
37 MAKE_PATH := src
38 MAKE_VARS += \
39         exeext=""
40
41 TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
42
43 TARGET_CPPFLAGS += \
44         -DUCL_NO_ASM \
45
46 define Package/upx/install
47         $(INSTALL_DIR) $(1)/usr/bin
48         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/upx $(1)/usr/bin/
49 endef
50
51 $(eval $(call BuildPackage,upx))