rpcd: iwinfo plugin fixes
[openwrt/svn-archive/archive.git] / tools / e2fsprogs / Makefile
1 #
2 # Copyright (C) 2010-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=e2fsprogs
11 PKG_VERSION:=1.42.13
12 PKG_MD5SUM:=bc759fc62666786f5436e2075beb3265
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/e2fsprogs
17
18 HOST_BUILD_PARALLEL:=1
19
20 include $(INCLUDE_DIR)/host-build.mk
21
22 HOST_CFLAGS += $(FPIC)
23
24 HOST_CONFIGURE_ARGS += \
25 --disable-elf-shlibs \
26 --disable-tls \
27 --disable-nls
28
29 define Host/Prepare
30 $(call Host/Prepare/Default)
31 rm -rf $(HOST_BUILD_DIR)/doc
32 endef
33
34 define Host/Install
35 $(Host/Install/Default)
36 $(MAKE) -C $(HOST_BUILD_DIR)/lib/uuid install
37 mkdir -p $(STAGING_DIR_HOST)/include/e2fsprogs
38 $(CP) $(STAGING_DIR_HOST)/include/uuid $(STAGING_DIR_HOST)/include/e2fsprogs/
39 rm -rf $(STAGING_DIR_HOST)/include/uuid
40 $(INSTALL_DATA) $(HOST_BUILD_DIR)/lib/uuid/libuuid.a $(STAGING_DIR_HOST)/lib/
41 endef
42
43 define Host/Clean
44 rm -f $(STAGING_DIR_HOST)/bin/e2fsck
45 rm -f $(STAGING_DIR_HOST)/bin/tune2fs
46 endef
47
48 $(eval $(call HostBuild))