You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2017 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:=libredblack
  9. PKG_VERSION:=1.3
  10. PKG_RELEASE:=4
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/libredblack
  13. PKG_HASH:=a0ecc59b0aae2df01558a6950532c711a782a099277b439a51d270003092f44f
  14. PKG_MAINTAINER:=Mislav Novakovic <mislav.novakovic@sartura.hr>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/host-build.mk
  22. define Package/libredblack
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=RedBlack tree library
  26. URL:=http://libredblack.sourceforge.net/
  27. endef
  28. define Package/libredblack/description
  29. RedBlack Balanced Tree Searching and Sorting Library.
  30. endef
  31. CONFIGURE_ARGS += --without-rbgen
  32. CONFIGURE_VARS += lt_cv_prog_cc_pic="$(FPIC)"
  33. MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS)"
  34. define Build/InstallDev
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libredblack.{so*,a,la} $(1)/usr/lib/
  37. $(INSTALL_DIR) $(1)/usr/include
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/redblack.h $(1)/usr/include/
  39. endef
  40. define Package/libredblack/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libredblack.so* $(1)/usr/lib/
  43. $(INSTALL_DIR) $(1)/usr/include
  44. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/redblack.h $(1)/usr/include
  45. endef
  46. $(eval $(call BuildPackage,libredblack))