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.

55 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2006-2014 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:=libavl
  9. PKG_VERSION:=0.3.5
  10. PKG_RELEASE:=1
  11. PKG_MD5SUM:=882c68ea7f71876ca110f3b84d7ab12d
  12. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
  13. PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/liba/libavl
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/avl-$(PKG_VERSION)
  15. PKG_INSTALL:=1
  16. PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
  17. PKG_LICENSE:=LGPL-2.0+
  18. PKG_LICENSE_FILES:=COPYING
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libavl
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=AVLTree (this is not GNU libavl)
  24. URL:=https://packages.debian.org/wheezy/libavl1
  25. endef
  26. define Package/libavl/description
  27. AVLTree is a small implementation of AVL trees for the C programming language.
  28. endef
  29. TARGET_CFLAGS += $(FPIC)
  30. CONFIGURE_ARGS += \
  31. --enable-shared \
  32. --enable-static
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(CP) $(PKG_INSTALL_DIR)/usr/include/avl.h $(1)/usr/include/
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavl.so* $(1)/usr/lib/
  38. endef
  39. define Package/libavl/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavl.so.* $(1)/usr/lib/
  42. endef
  43. $(eval $(call BuildPackage,libavl))