Makefile 1.3 KB

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