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
|
2022-04-15 00:15:26 +00:00
|
|
|
PKG_VERSION:=4.0.39
|
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)
|
2022-04-15 00:15:26 +00:00
|
|
|
PKG_HASH:=397f1e2b7b7a2a270eb7970fa363e445f956926ec51e8170c3869da85b0987bd
|
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
|
|
|
|
|
2018-12-22 21:20:13 +00:00
|
|
|
HOST_CONFIGURE_ARGS += --without-x
|
|
|
|
|
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))
|