source: trunk/tools/upx/Makefile @ 28428

Last change on this file since 28428 was 28428, checked in by kaloz, 5 years ago

[tools]: add upx, but make it build only for ppc now

File size: 770 bytes
Line 
1#
2# Copyright (C) 2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=upx
10PKG_VERSION:=3.07
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.bz2
13PKG_SOURCE_URL:=@SF/upx
14PKG_MD5SUM:=8186ab103288242f7e8ecad1acd4af03
15PKG_CAT:=bzcat
16
17HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)-src
18
19include $(INCLUDE_DIR)/host-build.mk
20
21define Host/Compile
22        rm -f $(HOST_BUILD_DIR)/src/.depend
23        $(MAKE) UPX_LZMADIR="$(BUILD_DIR_HOST)/lzma-4.65" -C $(HOST_BUILD_DIR)/src
24endef
25
26define Host/Install
27        $(CP) $(HOST_BUILD_DIR)/src/upx.out $(STAGING_DIR_HOST)/bin/upx
28endef
29
30define Host/Clean
31        rm -f $(STAGING_DIR_HOST)/bin/upx
32endef
33
34$(eval $(call HostBuild))
Note: See TracBrowser for help on using the repository browser.