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.

53 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2015 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:=libestr
  9. PKG_VERSION:=0.1.11
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_URL:=http://libestr.adiscon.com/files/download/
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_HASH:=46632b2785ff4a231dcf241eeb0dcb5fc0c7d4da8ee49cf5687722cdbe8b2024
  14. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  15. PKG_LICENSE:=LGPL-2.1+
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libestr
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=String handling library
  24. URL:=http://libestr.adiscon.com/
  25. endef
  26. define Package/libestr/description
  27. libestr - some essentials for string handling (and a bit more)
  28. endef
  29. TARGET_CFLAGS += $(FPIC)
  30. define Build/InstallDev
  31. $(INSTALL_DIR) $(1)/usr/include
  32. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  35. endef
  36. define Package/libestr/install
  37. $(INSTALL_DIR) $(1)/usr/lib
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libestr.so* $(1)/usr/lib/
  39. endef
  40. $(eval $(call BuildPackage,libestr))