Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. 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. $(if $(QUILT),,(cd $(HOST_BUILD_DIR); touch README-release; $(AM_TOOL_PATHS) ./bootstrap --skip-git --skip-po --force))
  22. endef
  23. define Host/Configure
  24. $(if $(QUILT),(cd $(HOST_BUILD_DIR); touch README-release; $(AM_TOOL_PATHS) ./bootstrap --skip-git --skip-po --force))
  25. $(call Host/Configure/Default)
  26. endef
  27. define Host/Install
  28. $(MAKE) -C $(HOST_BUILD_DIR) install
  29. $(SED) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(STAGING_DIR_HOST)/bin/libtool
  30. $(CP) $(STAGING_DIR_HOST)/bin/libtool $(STAGING_DIR_HOST)/bin/libtool-ucxx
  31. $(SED) 's,-lstdc++,-luClibc++,g' $(STAGING_DIR_HOST)/bin/libtool-ucxx
  32. endef
  33. define Host/Uninstall
  34. -$(call Host/Compile/Default,uninstall)
  35. endef
  36. define Host/Clean
  37. $(call Host/Clean/Default)
  38. endef
  39. $(eval $(call HostBuild))