add wxBase framework library
[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 DESCRIPTION:=\
30 Utilities to create and check MS-DOS FAT filesystems.
31 URL:=ftp://ftp.uni-erlangen.de:/pub/Linux/LOCAL/dosfstools/
32 endef
33
34 define Build/Configure
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 $(TARGET_CONFIGURE_OPTS) \
40 OPTFLAGS="$(TARGET_CFLAGS) -D_FILE_OFFSET_BITS=64" \
41 PREFIX="/usr" \
42 SBINDIR="/usr/sbin" \
43 all
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 $(TARGET_CONFIGURE_OPTS) \
46 OPTFLAGS="$(TARGET_CFLAGS) -D_FILE_OFFSET_BITS=64" \
47 PREFIX="$(PKG_INSTALL_DIR)/usr" \
48 SBINDIR="$(PKG_INSTALL_DIR)/usr/sbin" \
49 install
50 endef
51
52 define Package/dosfstools/install
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dosfsck $(1)/usr/sbin/
55 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/fsck.{msdos,vfat} $(1)/usr/sbin/
56 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/mkdosfs $(1)/usr/sbin/
57 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/mkfs.{msdos,vfat} $(1)/usr/sbin/
58 endef
59
60 $(eval $(call BuildPackage,dosfstools))