2015-03-15 05:18:40 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2012-2015 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:=dosfstools
|
2015-03-15 05:18:40 +00:00
|
|
|
PKG_VERSION:=3.0.27
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2015-03-22 10:58:04 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/dosfstools/dosfstools/releases/download/v$(PKG_VERSION)/ \
|
|
|
|
http://fossies.org/linux/misc
|
|
|
|
PKG_MD5SUM:=2e31e7bdf92998e41ed17de505a4a552
|
2015-01-11 22:15:11 +00:00
|
|
|
|
2015-03-15 05:18:40 +00:00
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)
|
2012-07-24 20:39:00 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2015-03-15 05:18:40 +00:00
|
|
|
ifeq ($(HOST_OS),Darwin)
|
|
|
|
LDLIBS += -liconv
|
|
|
|
endif
|
|
|
|
|
2012-07-24 20:39:00 +00:00
|
|
|
define Host/Compile
|
2015-03-15 05:18:40 +00:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" LDFLAGS="$(HOST_LDFLAGS)" LDLIBS="$(LDLIBS)"
|
2012-07-24 20:39:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
2015-01-11 22:15:11 +00:00
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/mkfs.fat $(STAGING_DIR_HOST)/bin/
|
|
|
|
$(LN) mkfs.fat $(STAGING_DIR_HOST)/bin/mkdosfs
|
2012-07-24 20:39:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Clean
|
2015-01-11 22:15:11 +00:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/mk{dosfs,fs.fat}
|
2012-07-24 20:39:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|