fix a compile error
[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.39
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/e2fsprogs
17 PKG_MD5SUM:=06f7806782e357797fad1d34b7ced0c6
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/e2fsprogs
22 SECTION:=utils
23 CATEGORY:=Utilities
24 TITLE:=Ext2/3 filesystem utilities
25 DEPENDS:=+libuuid
26 DESCRIPTION:=\
27 This package contains essential ext2 filesystem utilities which consists of \\\
28 e2fsck, mke2fs, debugfs, dumpe2fs, tune2fs, and most of the other core ext2 \\\
29 filesystem utilities.
30 endef
31
32 define Package/libuuid
33 SECTION:=libs
34 CATEGORY:=Libraries
35 TITLE:=DCE compatible Universally Unique Identifier library
36 DESCRIPTION:=\
37 Library for generating DCE compatible Universally Unique Identifiers
38 URL:=http://e2fsprogs.sourceforge.net/
39 endef
40
41 define Package/tune2fs
42 $(call Package/e2fsprogs)
43 TITLE:=Ext2 Filesystem tune utility
44 DESCRIPTION:=Ext2 Filesystem tune utility
45 DEPENDS:=e2fsprogs
46 endef
47
48 define Package/resize2fs
49 $(call Package/e2fsprogs)
50 TITLE:=Ext2 Filesystem resize utility
51 DESCRIPTION:=Ext2 Filesystem resize utility
52 DEPENDS:=e2fsprogs
53 endef
54
55 CONFIGURE_ARGS += \
56 --enable-shared \
57 --enable-static \
58 --disable-rpath \
59 --enable-elf-shlibs \
60 --enable-dynamic-e2fsck
61
62 define Build/Compile
63 $(MAKE) -C $(PKG_BUILD_DIR)/util \
64 BUILDCC="$(HOSTCC)" \
65 CFLAGS="" \
66 CPPFLAGS="" \
67 LDFLAGS="" \
68 subst
69 $(MAKE) -C $(PKG_BUILD_DIR) \
70 BUILDCC="$(HOSTCC)" \
71 DESTDIR="$(PKG_INSTALL_DIR)" \
72 all install
73 endef
74
75 define Build/InstallDev
76 $(MAKE) -C $(PKG_BUILD_DIR) \
77 BUILDCC="$(HOSTCC)" \
78 DESTDIR="$(STAGING_DIR)" \
79 install-libs
80 endef
81
82 define Package/e2fsprogs/install
83 $(INSTALL_DIR) $(1)/usr/sbin
84 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/e2fsck $(1)/usr/sbin/
85 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/mke2fs $(1)/usr/sbin/
86 ln -sf mke2fs $(1)/usr/sbin/mkfs.ext2
87 ln -sf mke2fs $(1)/usr/sbin/mkfs.ext3
88 $(INSTALL_DIR) $(1)/usr/lib
89 $(CP) $(foreach lib,blkid com_err e2p ext2fs,$(PKG_INSTALL_DIR)/usr/lib/lib$(lib).so.*) $(1)/usr/lib/
90 endef
91
92 define Package/libuuid/install
93 $(INSTALL_DIR) $(1)/usr/lib
94 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuuid.so.* $(1)/usr/lib/
95 endef
96
97 define Package/tune2fs/install
98 $(INSTALL_DIR) $(1)/usr/sbin
99 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/tune2fs $(1)/usr/sbin/
100 endef
101
102 define Package/resize2fs/install
103 $(INSTALL_DIR) $(1)/usr/sbin
104 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/resize2fs $(1)/usr/sbin/
105 endef
106
107 $(eval $(call BuildPackage,e2fsprogs))
108 $(eval $(call BuildPackage,libuuid))
109 $(eval $(call BuildPackage,tune2fs))
110 $(eval $(call BuildPackage,resize2fs))
This page took 0.053759 seconds and 5 git commands to generate.