Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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:=1.5.24
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/libtool
  13. PKG_MD5SUM:=d0071c890101fcf4f2be8934a37841b0
  14. HOST_PATCH_DIR=/dev/null
  15. PKG_BUILD_DEPENDS:=libtool/host
  16. include $(INCLUDE_DIR)/host-build.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. CONFIGURE_PREFIX=$(STAGING_DIR)/host
  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)/bin" \
  29. datadir="$(2)/share" \
  30. prefix="$(2)" \
  31. exec_prefix="$(2)" \
  32. install
  33. $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include
  34. mv $(2)/lib/* $(1)/usr/lib/
  35. mv $(2)/include/* $(1)/usr/include/
  36. $(SED) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(2)/bin/libtool
  37. $(CP) $(2)/bin/libtool $(2)/bin/libtool-ucxx
  38. $(SED) 's,-lstdc++,-luClibc++,g' $(2)/bin/libtool-ucxx
  39. endef
  40. define Package/libltdl/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/
  43. endef
  44. $(eval $(call HostBuild))
  45. $(eval $(call BuildPackage,libltdl))