Makefile 1.2 KB

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