2012-07-24 20:39:00 +00:00
|
|
|
#
|
2013-08-16 00:19:20 +00:00
|
|
|
# Copyright (C) 2012-2013 OpenWrt.org
|
2012-07-24 20:39:00 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mtools
|
2018-10-06 10:47:46 +00:00
|
|
|
PKG_VERSION:=4.0.19
|
2012-07-24 20:39:00 +00:00
|
|
|
|
2018-10-06 10:47:46 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2012-07-24 20:39:00 +00:00
|
|
|
PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
|
2018-10-06 10:47:46 +00:00
|
|
|
PKG_HASH:=1bc197199ea1c2c317f597879486eeb817f3199b526d94cc6841624768d910df
|
2012-07-24 20:39:00 +00:00
|
|
|
|
2013-08-16 00:19:20 +00:00
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
|
2012-07-24 20:39:00 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2013-05-02 12:39:31 +00:00
|
|
|
HOST_CONFIGURE_VARS += \
|
|
|
|
ac_cv_header_iconv_h=no
|
|
|
|
|
2012-07-24 20:39:00 +00:00
|
|
|
define Host/Compile
|
2015-10-11 16:23:11 +00:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) mcopy mmd
|
2012-07-24 20:39:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/mcopy $(STAGING_DIR_HOST)/bin/
|
2015-10-11 16:23:11 +00:00
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/mmd $(STAGING_DIR_HOST)/bin/
|
2012-07-24 20:39:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Clean
|
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/mcopy
|
2015-10-11 16:23:11 +00:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/mmd
|
2012-07-24 20:39:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|