2 # Copyright (C) 2012-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=https://github.com/dosfstools/dosfstools/releases/download/v$(PKG_VERSION)/ \
14 http://fossies.org/linux/misc
15 PKG_MD5SUM:=2e31e7bdf92998e41ed17de505a4a552
17 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)
19 include $(INCLUDE_DIR)/host-build.mk
21 ifeq ($(HOST_OS),Darwin)
26 $(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" LDFLAGS="$(HOST_LDFLAGS)" LDLIBS="$(LDLIBS)"
30 $(INSTALL_BIN) $(HOST_BUILD_DIR)/mkfs.fat $(STAGING_DIR_HOST)/bin/
31 $(LN) mkfs.fat $(STAGING_DIR_HOST)/bin/mkdosfs
35 rm -f $(STAGING_DIR_HOST)/bin/mk{dosfs,fs.fat}
38 $(eval $(call HostBuild))