2010-05-23 21:11:51 +00:00
|
|
|
#
|
2010-02-20 04:43:27 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=upx
|
2010-12-17 04:23:50 +00:00
|
|
|
PKG_VERSION:=3.07
|
2010-02-20 04:43:27 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.bz2
|
2010-12-17 04:23:50 +00:00
|
|
|
PKG_SOURCE_URL:=http://upx.sourceforge.net/download \
|
|
|
|
http://upx.sourceforge.net/download/00-OLD-VERSIONS
|
|
|
|
PKG_MD5SUM:=8186ab103288242f7e8ecad1acd4af03
|
2010-02-20 04:43:27 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/upx
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2010-03-09 21:23:39 +00:00
|
|
|
DEPENDS:=+libucl +libstdcpp +zlib
|
2010-02-20 04:43:27 +00:00
|
|
|
TITLE:=The Ultimate Packer for eXecutables
|
|
|
|
URL:=http://upx.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/upx/description
|
|
|
|
UPX is a free, portable, extendable, high-performance executable packer for
|
|
|
|
several different executable formats. It achieves an excellent compression ratio
|
|
|
|
and offers very fast decompression. Your executables suffer no memory overhead
|
|
|
|
or other drawbacks for most of the formats supported, because of in-place
|
|
|
|
decompression.
|
|
|
|
endef
|
|
|
|
|
2010-03-09 21:23:39 +00:00
|
|
|
MAKE_PATH := src
|
2010-02-20 04:43:27 +00:00
|
|
|
MAKE_VARS += \
|
|
|
|
exeext=""
|
|
|
|
|
2010-03-24 17:19:26 +00:00
|
|
|
TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
|
|
|
|
|
2010-03-09 21:23:39 +00:00
|
|
|
TARGET_CPPFLAGS += \
|
|
|
|
-DUCL_NO_ASM \
|
2010-02-20 04:43:27 +00:00
|
|
|
|
|
|
|
define Package/upx/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/upx $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,upx))
|