ipq40xx: Enable the Engenius EAP1300
[openwrt/openwrt.git] / tools / libtool / Makefile
1 #
2 # Copyright (C) 2008-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 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=libtool
10 PKG_CPE_ID:=cpe:/a:gnu:libtool
11 PKG_VERSION:=2.4.7
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
14 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
15 PKG_HASH:=4f7f217f057ce655ff22559ad221a0fd8ef84ad1fc5fcb6990cecc333aa1635d
16
17 HOST_BUILD_PARALLEL:=1
18
19 include $(INCLUDE_DIR)/host-build.mk
20
21 export GNULIB_SRCDIR:=$(HOST_GNULIB_SRCDIR)
22
23 HOST_CONFIGURE_VARS += \
24 lt_cv_sys_dlsearch_path=""
25
26 define Host/Bootstrap
27 ( \
28 cd $(HOST_BUILD_DIR); \
29 $(AM_TOOL_PATHS) \
30 ./bootstrap \
31 --force \
32 --skip-git \
33 --skip-po \
34 --gnulib-srcdir=$(GNULIB_SRCDIR) \
35 )
36 endef
37
38 define Host/Prepare
39 $(call Host/Prepare/Default)
40 $(call Host/Uninstall)
41 $(if $(QUILT),,$(call Host/Bootstrap))
42 endef
43
44 define Host/Configure
45 $(if $(QUILT),$(call Host/Bootstrap))
46 $(call Host/Configure/Default)
47 endef
48
49 define Host/Install
50 $(call Host/Compile/Default,install)
51 $(SED) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(STAGING_DIR_HOST)/bin/libtool
52 endef
53
54 define Host/Uninstall
55 -$(call Host/Compile/Default,uninstall)
56 (cd $(STAGING_DIR_HOST)/share/aclocal/ && rm -f libtool.m4 ltdl.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4)
57 endef
58
59 $(eval $(call HostBuild))