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
|
2023-04-02 22:04:04 +00:00
|
|
|
PKG_VERSION:=4.0.43
|
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)
|
2023-04-02 22:04:04 +00:00
|
|
|
PKG_HASH:=541e179665dc4e272b9602f2074243591a157da89cc47064da8c5829dbd2b339
|
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))
|