dde4ff31300aa9704cbceab0f0658cba93eb5445
[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.5.4
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
15 PKG_HASH:=da8ebb2ce4dcf46b90098daf962cffa68f4b4f62ea60f798d0ef12929ede6adf
16
17 include $(INCLUDE_DIR)/host-build.mk
18
19 export GNULIB_SRCDIR:=$(HOST_GNULIB_SRCDIR)
20
21 HOST_CONFIGURE_VARS += \
22 lt_cv_sys_dlsearch_path=""
23
24 HOST_MAKE_FLAGS += \
25 am__CONFIG_DISTCLEAN_FILES= \
26 CONFIG_STATUS_DEPENDENCIES=
27
28 define Host/Bootstrap
29 ( \
30 cd $(HOST_BUILD_DIR); \
31 $(AM_TOOL_PATHS) \
32 ./bootstrap \
33 --copy \
34 --force \
35 --skip-git \
36 --skip-po \
37 --gnulib-srcdir=$(GNULIB_SRCDIR) \
38 )
39 endef
40
41 define Host/Prepare
42 $(call Host/Prepare/Default)
43 $(call Host/Uninstall)
44 $(if $(QUILT),,$(call Host/Bootstrap))
45 endef
46
47 define Host/Configure
48 $(if $(QUILT),$(call Host/Bootstrap))
49 $(call Host/Configure/Default)
50 $(call Host/Uninstall)
51 endef
52
53 define Host/Install
54 $(call Host/Compile/Default,install)
55 $(SED) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(STAGING_DIR_HOST)/bin/libtool
56 endef
57
58 define Host/Uninstall
59 -$(call Host/Compile/Default,uninstall)
60 -$(call Host/Compile/Default,maintainer-clean) # Clean bootstrap files from the release
61 (cd $(STAGING_DIR_HOST)/share/aclocal/ && rm -f libtool.m4 ltdl.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4)
62 endef
63
64 $(eval $(call HostBuild))