tools/e2fsprogs: Update to 1.44.5
[openwrt/openwrt.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_CPE_ID:=cpe:/a:e2fsprogs_project:e2fsprogs
12 PKG_VERSION:=1.44.5
13 PKG_HASH:=ba5eb3069d69160d96818bb9700de9ab5a8458d9add1fd85d427c0000d34c5b9
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
17 PKG_SOURCE_URL:=@KERNEL/linux/kernel/people/tytso/e2fsprogs/v$(PKG_VERSION)/
18
19 HOST_BUILD_PARALLEL:=1
20
21 include $(INCLUDE_DIR)/host-build.mk
22
23 ifneq ($(shell $(HOSTCC) --version | grep clang),)
24 HOST_CFLAGS += -D__GNUC_PREREQ\(...\)=0
25 endif
26 HOST_CFLAGS += $(FPIC)
27
28 HOST_CONFIGURE_ARGS += \
29 --disable-elf-shlibs \
30 --enable-libuuid \
31 --disable-tls \
32 --disable-nls
33
34 define Host/Prepare
35 $(call Host/Prepare/Default)
36 rm -rf $(HOST_BUILD_DIR)/doc
37 endef
38
39 define Host/Install
40 $(Host/Install/Default)
41 $(MAKE) -C $(HOST_BUILD_DIR)/lib/uuid install
42 mkdir -p $(STAGING_DIR_HOST)/include/e2fsprogs
43 $(CP) $(STAGING_DIR_HOST)/include/uuid $(STAGING_DIR_HOST)/include/e2fsprogs/
44 rm -rf $(STAGING_DIR_HOST)/include/uuid
45 $(INSTALL_DATA) $(HOST_BUILD_DIR)/lib/uuid/libuuid.a $(STAGING_DIR_HOST)/lib/
46 endef
47
48 define Host/Clean
49 rm -f $(STAGING_DIR_HOST)/bin/e2fsck
50 rm -f $(STAGING_DIR_HOST)/bin/tune2fs
51 endef
52
53 $(eval $(call HostBuild))