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.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. $(call Host/Uninstall)
  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. $(call Host/Compile/Default,install)
  29. $(SED) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(STAGING_DIR_HOST)/bin/libtool
  30. endef
  31. define Host/Uninstall
  32. -$(call Host/Compile/Default,uninstall)
  33. (cd $(STAGING_DIR_HOST)/share/aclocal/ && rm -f libtool.m4 ltdl.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4)
  34. endef
  35. $(eval $(call HostBuild))