Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.10
  10. PKG_RELEASE:=2
  11. PKG_SOURCE_URL:=http://libestr.adiscon.com/files/download/
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_MD5SUM:=f4c9165a23587e77f7efe65d676d5e8e
  14. PKG_MAINTAINER:=Dov Murik <dmurik@us.ibm.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))