Add dosfstools package
[openwrt.git] / openwrt / package / dosfstools / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=dosfstools
6 PKG_VERSION:=2.11
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=407d405ade410f7597d364ab5dc8c9f6
9
10 PKG_SOURCE_URL:=ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).src.tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 BR2_PACKAGE_DOSFSTOOLS=m
18
19 include $(TOPDIR)/package/rules.mk
20
21 $(eval $(call PKG_template,DOSFSTOOLS,dosfstools,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23 $(PKG_BUILD_DIR)/.configured:
24 touch $@
25
26 $(PKG_BUILD_DIR)/.built:
27 rm -rf $(PKG_INSTALL_DIR)
28 mkdir -p $(PKG_INSTALL_DIR)
29 $(MAKE) -C $(PKG_BUILD_DIR) \
30 $(TARGET_CONFIGURE_OPTS) \
31 OPTFLAGS="$(TARGET_CFLAGS) -D_FILE_OFFSET_BITS=64" \
32 PREFIX="$(PKG_INSTALL_DIR)" \
33 all install
34 touch $@
35
36 $(IPKG_DOSFSTOOLS):
37 install -d -m0755 $(IDIR_DOSFSTOOLS)/sbin
38 cp -fpR $(PKG_INSTALL_DIR)/sbin/dosfsck $(IDIR_DOSFSTOOLS)/sbin/
39 cp -fpR $(PKG_INSTALL_DIR)/sbin/fsck.{msdos,vfat} $(IDIR_DOSFSTOOLS)/sbin/
40 cp -fpR $(PKG_INSTALL_DIR)/sbin/mkdosfs $(IDIR_DOSFSTOOLS)/sbin/
41 cp -fpR $(PKG_INSTALL_DIR)/sbin/mkfs.{msdos,vfat} $(IDIR_DOSFSTOOLS)/sbin/
42 $(RSTRIP) $(IDIR_DOSFSTOOLS)
43 $(IPKG_BUILD) $(IDIR_DOSFSTOOLS) $(PACKAGE_DIR)
44
This page took 0.039888 seconds and 5 git commands to generate.