tools/elfutils: refresh portability patch for macOS
[openwrt/openwrt.git] / tools / genext2fs / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=genext2fs
11 PKG_VERSION:=1.5.0
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=https://codeload.github.com/bestouff/$(PKG_NAME)/tar.gz/v$(PKG_VERSION)?
15 PKG_HASH:=d3861e4fe89131bd21fbd25cf0b683b727b5c030c4c336fadcd738ada830aab0
16
17 include $(INCLUDE_DIR)/host-build.mk
18
19 HOST_CONFIGURE_ARGS = \
20 --target=$(GNU_HOST_NAME) \
21 --host=$(GNU_HOST_NAME) \
22 --build=$(GNU_HOST_NAME) \
23 --program-prefix="" \
24 --program-suffix="" \
25 --prefix=/usr \
26 --exec-prefix=/usr \
27 --bindir=/usr/bin \
28 --sbindir=/usr/sbin \
29 --libexecdir=/usr/lib \
30 --sysconfdir=/etc \
31 --datadir=/usr/share \
32 --localstatedir=/var \
33 --mandir=/usr/man \
34 --infodir=/usr/info \
35
36 define Host/Configure
37 (cd $(HOST_BUILD_DIR); \
38 ./autogen.sh \
39 );
40 $(call Host/Configure/Default)
41 endef
42
43 define Host/Compile
44 $(MAKE) -C $(HOST_BUILD_DIR) \
45 CFLAGS="$(HOST_CFLAGS)" \
46 LDFLAGS="$(HOST_LDFLAGS)" \
47 all
48 endef
49
50 define Host/Install
51 install -m0755 $(HOST_BUILD_DIR)/genext2fs $(STAGING_DIR_HOST)/bin/
52 endef
53
54 define Host/Clean
55 rm -f $(STAGING_DIR_HOST)/bin/genext2fs
56 endef
57
58 $(eval $(call HostBuild))