Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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.xz
  12. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  13. PKG_HASH:=4f7f217f057ce655ff22559ad221a0fd8ef84ad1fc5fcb6990cecc333aa1635d
  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. --force \
  25. --skip-git \
  26. --skip-po \
  27. --gnulib-srcdir=$(GNULIB_SRCDIR) \
  28. )
  29. endef
  30. define Host/Prepare
  31. $(call Host/Prepare/Default)
  32. $(call Host/Uninstall)
  33. $(if $(QUILT),,$(call Host/Bootstrap))
  34. endef
  35. define Host/Configure
  36. $(if $(QUILT),$(call Host/Bootstrap))
  37. $(call Host/Configure/Default)
  38. endef
  39. define Host/Install
  40. $(call Host/Compile/Default,install)
  41. $(SED) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(STAGING_DIR_HOST)/bin/libtool
  42. endef
  43. define Host/Uninstall
  44. -$(call Host/Compile/Default,uninstall)
  45. (cd $(STAGING_DIR_HOST)/share/aclocal/ && rm -f libtool.m4 ltdl.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4)
  46. endef
  47. $(eval $(call HostBuild))