Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #
  2. # Copyright (C) 2006 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_VERSION:=2.4
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNU/libtool
  13. PKG_HASH:=afcce660d3dc54c63a0a5ba3cf05272239dc3c54bbeba20f6bad250f9dc007ae
  14. PKG_LICENSE:=GPL-2.0+
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_BUILD_PARALLEL:=0
  17. include $(INCLUDE_DIR)/package.mk
  18. CONFIGURE_PREFIX=$(STAGING_DIR_HOSTPKG)
  19. export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib
  20. define Package/libltdl
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=A generic dynamic object loading library
  24. URL:=http://www.gnu.org/software/libtool/
  25. endef
  26. define Build/InstallDev
  27. $(MAKE) -C $(PKG_BUILD_DIR) \
  28. bindir="$(2)/libltdl/bin" \
  29. datadir="$(2)/libltdl/share" \
  30. prefix="$(2)/libltdl" \
  31. exec_prefix="$(2)/libltdl" \
  32. install
  33. $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include
  34. mv $(2)/libltdl/lib/* $(1)/usr/lib/
  35. mv $(2)/libltdl/include/* $(1)/usr/include/
  36. endef
  37. define Package/libltdl/install
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/
  40. endef
  41. $(eval $(call BuildPackage,libltdl))