tools/mtools: Update to 4.0.19
[openwrt/staging/wigyori.git] / tools / mtools / Makefile
1 #
2 # Copyright (C) 2012-2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=mtools
10 PKG_VERSION:=4.0.19
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
14 PKG_HASH:=1bc197199ea1c2c317f597879486eeb817f3199b526d94cc6841624768d910df
15
16 HOST_BUILD_PARALLEL:=1
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 HOST_CONFIGURE_VARS += \
21 ac_cv_header_iconv_h=no
22
23 define Host/Compile
24 $(MAKE) -C $(HOST_BUILD_DIR) mcopy mmd
25 endef
26
27 define Host/Install
28 $(INSTALL_BIN) $(HOST_BUILD_DIR)/mcopy $(STAGING_DIR_HOST)/bin/
29 $(INSTALL_BIN) $(HOST_BUILD_DIR)/mmd $(STAGING_DIR_HOST)/bin/
30 endef
31
32 define Host/Clean
33 rm -f $(STAGING_DIR_HOST)/bin/mcopy
34 rm -f $(STAGING_DIR_HOST)/bin/mmd
35 endef
36
37 $(eval $(call HostBuild))