fix fdisk llseek
[openwrt.git] / package / e2fsprogs / 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:=e2fsprogs
12 PKG_VERSION:=1.38
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/e2fsprogs
17 PKG_MD5SUM:=d774d4412bfb80d12cf3a4fdfd59de5a
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/e2fsprogs
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=Ext2/3 filesystem utilities
29 DESCRIPTION:=\
30 This package contains essential ext2 filesystem utilities which consists of \\\
31 e2fsck, mke2fs, debugfs, dumpe2fs, tune2fs, and most of the other core ext2 \\\
32 filesystem utilities.
33 URL:=http://e2fsprogs.sourceforge.net/
34 endef
35
36 define Package/tune2fs
37 $(call Package/e2fsprogs)
38 TITLE:=Ext2 Filesystem tune utility
39 DESCRIPTION:=Ext2 Filesystem tune utility
40 DEPENDS:=e2fsprogs
41 endef
42
43 define Package/resize2fs
44 $(call Package/e2fsprogs)
45 TITLE:=Ext2 Filesystem resize utility
46 DESCRIPTION:=Ext2 Filesystem resize utility
47 DEPENDS:=e2fsprogs
48 endef
49
50 define Build/Configure
51 $(call Build/Configure/Default, \
52 --enable-shared \
53 --enable-static \
54 --disable-rpath \
55 --enable-elf-shlibs \
56 --enable-dynamic-e2fsck \
57 )
58 endef
59
60 define Build/Compile
61 $(MAKE) -C $(PKG_BUILD_DIR)/util \
62 BUILDCC="$(HOSTCC)" \
63 CFLAGS="" \
64 CPPFLAGS="" \
65 LDFLAGS="" \
66 subst
67 $(MAKE) -C $(PKG_BUILD_DIR) \
68 BUILDCC="$(HOSTCC)" \
69 DESTDIR="$(PKG_INSTALL_DIR)" \
70 all install
71 endef
72
73 define Package/e2fsprogs/install
74 $(INSTALL_DIR) $(1)/usr/sbin
75 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/e2fsck $(1)/usr/sbin/
76 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/mke2fs $(1)/usr/sbin/
77 ln -sf mke2fs $(1)/usr/sbin/mkfs.ext2
78 ln -sf mke2fs $(1)/usr/sbin/mkfs.ext3
79 $(INSTALL_DIR) $(1)/usr/lib
80 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{blkid,com_err,e2p,ext2fs,uuid}.so.* $(1)/usr/lib/
81 endef
82
83 define Package/tune2fs/install
84 $(INSTALL_DIR) $(1)/usr/sbin
85 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/tune2fs $(1)/usr/sbin/
86 endef
87
88 define Package/resize2fs/install
89 $(INSTALL_DIR) $(1)/usr/sbin
90 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/resize2fs $(1)/usr/sbin/
91 endef
92
93 $(eval $(call BuildPackage,e2fsprogs))
94 $(eval $(call BuildPackage,tune2fs))
95 $(eval $(call BuildPackage,resize2fs))
This page took 0.054205 seconds and 5 git commands to generate.