these patches add upx and libucl packages.
[openwrt/svn-archive/archive.git] / utils / upx / Makefile
1 #
2 # Copyright (C) 2006-2010 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.04
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 PKG_MD5SUM:=68d662b1f831335460f9bfdbf632c6ce
17
18 TAR_OPTIONS+=--transform='s,$(PKG_NAME)-$(PKG_VERSION)-src,$(PKG_NAME)-$(PKG_VERSION),'
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/upx
23 SECTION:=utils
24 CATEGORY:=Utilities
25 DEPENDS:=+libucl
26 TITLE:=The Ultimate Packer for eXecutables
27 URL:=http://upx.sourceforge.net/
28 endef
29
30 define Package/upx/description
31 UPX is a free, portable, extendable, high-performance executable packer for
32 several different executable formats. It achieves an excellent compression ratio
33 and offers very fast decompression. Your executables suffer no memory overhead
34 or other drawbacks for most of the formats supported, because of in-place
35 decompression.
36 endef
37
38 MAKE_VARS += \
39 UPX_UCLDIR="$(STAGING_DIR)/usr/include/ucl" \
40 exeext=""
41
42 define Build/Compile
43 $(call Build/Compile/Default, \
44 all \
45 )
46 endef
47
48 define Package/upx/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/upx $(1)/usr/bin/
51 endef
52
53 $(eval $(call BuildPackage,upx))