Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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.2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  13. PKG_HASH:=1d7b6862c1ed162e327f083a6f78f40eae29218f0db8c38393d61dab764c4407
  14. HOST_BUILD_PARALLEL:=1
  15. include $(INCLUDE_DIR)/host-build.mk
  16. HOST_CONFIGURE_VARS += \
  17. lt_cv_sys_dlsearch_path=""
  18. define Host/Prepare
  19. $(call Host/Prepare/Default)
  20. (cd $(STAGING_DIR_HOST)/share/aclocal/ && rm -f libtool.m4 ltdl.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4)
  21. (cd $(HOST_BUILD_DIR); $(AM_TOOL_PATHS) ./bootstrap)
  22. endef
  23. define Host/Install
  24. $(MAKE) -C $(HOST_BUILD_DIR) install
  25. $(SED) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(STAGING_DIR_HOST)/bin/libtool
  26. $(CP) $(STAGING_DIR_HOST)/bin/libtool $(STAGING_DIR_HOST)/bin/libtool-ucxx
  27. $(SED) 's,-lstdc++,-luClibc++,g' $(STAGING_DIR_HOST)/bin/libtool-ucxx
  28. endef
  29. define Host/Uninstall
  30. -$(call Host/Compile/Default,uninstall)
  31. endef
  32. define Host/Clean
  33. $(call Host/Clean/Default)
  34. endef
  35. $(eval $(call HostBuild))