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