7b47b94a10d3233bf6db23471f49ed001b7a0788
[openwrt/svn-archive/archive.git] / utils / dosfstools / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dosfstools
11 PKG_VERSION:=2.11
12 PKG_RELEASE:=4
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).src.tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/
16 PKG_MD5SUM:=407d405ade410f7597d364ab5dc8c9f6
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/dosfstools
21 SECTION:=utils
22 CATEGORY:=Utilities
23 TITLE:=MS-DOS FAT filesystems utilities
24 URL:=ftp://ftp.uni-erlangen.de:/pub/Linux/LOCAL/dosfstools/
25 SUBMENU:=Filesystem
26 endef
27
28 define Package/dosfstools/description
29 Utilities to create and check MS-DOS FAT filesystems.
30 endef
31
32 define Build/Configure
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 $(TARGET_CONFIGURE_OPTS) \
38 OPTFLAGS="$(TARGET_CFLAGS) -D_FILE_OFFSET_BITS=64" \
39 PREFIX="/usr" \
40 SBINDIR="/usr/sbin" \
41 all
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 $(TARGET_CONFIGURE_OPTS) \
44 OPTFLAGS="$(TARGET_CFLAGS) -D_FILE_OFFSET_BITS=64" \
45 PREFIX="$(PKG_INSTALL_DIR)/usr" \
46 SBINDIR="$(PKG_INSTALL_DIR)/usr/sbin" \
47 install
48 endef
49
50 define Package/dosfstools/install
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dosfsck $(1)/usr/sbin/
53 (cd $(1)/usr/sbin; ln -sf dosfsck fsck.msdos; ln -sf dosfsck fsck.vfat)
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkdosfs $(1)/usr/sbin/
55 (cd $(1)/usr/sbin; ln -sf mkdosfs mkfs.msdos; ln -sf mkdosfs mkfs.vfat)
56 endef
57
58 $(eval $(call BuildPackage,dosfstools))