2005-04-02 19:43:51 +03:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
PKG_NAME := lzma
|
|
|
|
PKG_VERSION := 432
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
PKG_SOURCE := $(PKG_NAME)$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_MD5SUM := 155c1ebce5bc6710ae7ecc926226d9d7
|
|
|
|
PKG_SOURCE_URL := @SF/sevenzip
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
PKG_BUILD_DIR=$(TOOL_BUILD_DIR)/lzma-$(PKG_VERSION)/lzma
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
LIB_DIR=$(PKG_BUILD_DIR)/C/7zip/Compress/LZMA_Lib
|
|
|
|
ALONE_DIR=$(PKG_BUILD_DIR)/C/7zip/Compress/LZMA_Alone
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
define Build/Prepare
|
|
|
|
bzcat $(DL_DIR)/$(PKG_SOURCE) | tar -C $(PKG_BUILD_DIR)/ $(TAR_OPTIONS) -
|
|
|
|
$(PATCH) $(PKG_BUILD_DIR) ./patches
|
|
|
|
endef
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(LIB_DIR)
|
|
|
|
$(MAKE) -f makefile.gcc -C $(ALONE_DIR)
|
|
|
|
endef
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
define Build/Install
|
|
|
|
mkdir -p $(STAGING_DIR)/host/lib
|
|
|
|
$(CP) $(LIB_DIR)/liblzma.a $(STAGING_DIR)/host/lib/
|
|
|
|
$(CP) $(ALONE_DIR)/lzma $(STAGING_DIR)/bin/
|
|
|
|
endef
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
define Build/Clean
|
|
|
|
rm -f $(PKG_BUILD_DIR)/liblzma.a $(PKG_BUILD_DIR)/lzma
|
|
|
|
endef
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
$(eval $(call HostBuild))
|