2
0

Makefile 1.5 KB

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