busybox: fix build on FreeBSD 10.1
[openwrt/staging/wigyori.git] / tools / dosfstools / Makefile
1 #
2 # Copyright (C) 2012-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=dosfstools
10 PKG_VERSION:=3.0.26
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=http://daniel-baumann.ch/files/software/dosfstools/
14 PKG_MD5SUM:=45012f5f56f2aae3afcd62120b9e5a08
15
16 include $(INCLUDE_DIR)/host-build.mk
17
18 define Host/Compile
19 $(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" LDFLAGS="$(HOST_LDFLAGS) $(HOST_STATIC_LINKING)"
20 endef
21
22 define Host/Install
23 $(INSTALL_BIN) $(HOST_BUILD_DIR)/mkfs.fat $(STAGING_DIR_HOST)/bin/
24 $(LN) mkfs.fat $(STAGING_DIR_HOST)/bin/mkdosfs
25 endef
26
27 define Host/Clean
28 rm -f $(STAGING_DIR_HOST)/bin/mk{dosfs,fs.fat}
29 endef
30
31 $(eval $(call HostBuild))