e2fsprogs: clean up the makefile and install libuuid
[openwrt.git] / tools / e2fsprogs / Makefile
1 #
2 # Copyright (C) 2010 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.41.10
12 PKG_MD5SUM:=f9c7bb5c036a119453ce02fa871038da
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/e2fsprogs
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 TARGET_CFLAGS += $(FPIC)
21
22 CONFIGURE_ARGS += \
23         --disable-shared \
24         --enable-static \
25         --disable-rpath \
26         --enable-elf-shlibs \
27         --enable-dynamic-e2fsck \
28         --disable-tls
29
30 define Host/Install
31         $(Host/Install/Default)
32         $(INSTALL_DATA) $(HOST_BUILD_DIR)/lib/uuid/libuuid.a $(STAGING_DIR_HOST)/lib/
33 endef
34
35 define Host/Clean
36         rm -f $(STAGING_DIR_HOST)/bin/e2fsck
37         rm -f $(STAGING_DIR_HOST)/bin/tune2fs
38 endef
39
40 $(eval $(call HostBuild))