[packages] luafilesystem: update to 1.5.0
[openwrt/svn-archive/archive.git] / utils / dosfstools / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=3.0.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.daniel-baumann.ch/software/dosfstools/
16 PKG_MD5SUM:=2df41f537941ac9dff0dd747f2d635c8
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/dosfstools/Default
21 SECTION:=utils
22 CATEGORY:=Utilities
23 URL:=http://www.daniel-baumann.ch/software/dosfstools/
24 SUBMENU:=Filesystem
25 endef
26
27 define Package/dosfsck
28 $(call Package/dosfstools/Default)
29 TITLE:=dosfsck
30 endef
31
32 define Package/dosfslabel
33 $(call Package/dosfstools/Default)
34 TITLE:=dosfslabel
35 endef
36
37 define Package/mkdosfs
38 $(call Package/dosfstools/Default)
39 TITLE:=mkdosfs
40 endef
41
42 define Package/dosfsck/description
43 Utilities to create and check MS-DOS FAT filesystems.
44 (fsck.vfat and fsck.msdos for checking integrity of FAT volumes)
45 endef
46
47 define Package/dosfslabel/description
48 Utilities to create and check MS-DOS FAT filesystems.
49 (dosfslabel for reading and writing labels of FAT volumes)
50 endef
51
52 define Package/mkdosfs/description
53 Utilities to create and check MS-DOS FAT filesystems.
54 (mkfs.vfat and mkfs.msdos for creating FAT volumes)
55 endef
56
57 define Build/Configure
58 endef
59
60 define Build/Compile
61 $(MAKE) -C $(PKG_BUILD_DIR) \
62 $(TARGET_CONFIGURE_OPTS) \
63 OPTFLAGS="$(TARGET_CFLAGS) -D_FILE_OFFSET_BITS=64" \
64 PREFIX="/usr" \
65 SBINDIR="/usr/sbin" \
66 all
67 $(MAKE) -C $(PKG_BUILD_DIR) \
68 $(TARGET_CONFIGURE_OPTS) \
69 OPTFLAGS="$(TARGET_CFLAGS) -D_FILE_OFFSET_BITS=64" \
70 PREFIX="$(PKG_INSTALL_DIR)/usr" \
71 SBINDIR="$(PKG_INSTALL_DIR)/usr/sbin" \
72 install-bin
73 endef
74
75 define Package/dosfsck/install
76 $(INSTALL_DIR) $(1)/usr/sbin
77 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dosfsck $(1)/usr/sbin/
78 (cd $(1)/usr/sbin; ln -sf dosfsck fsck.msdos; ln -sf dosfsck fsck.vfat)
79 endef
80
81 define Package/dosfslabel/install
82 $(INSTALL_DIR) $(1)/usr/sbin
83 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dosfslabel $(1)/usr/sbin/
84 endef
85
86 define Package/mkdosfs/install
87 $(INSTALL_DIR) $(1)/usr/sbin
88 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkdosfs $(1)/usr/sbin/
89 (cd $(1)/usr/sbin; ln -sf mkdosfs mkfs.msdos; ln -sf mkdosfs mkfs.vfat)
90 endef
91
92 $(eval $(call BuildPackage,dosfsck))
93 $(eval $(call BuildPackage,dosfslabel))
94 $(eval $(call BuildPackage,mkdosfs))