1
0

Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #
  2. # libnopoll - Makefile for noPoll C WebSocket library
  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:=nopoll
  9. PKG_VERSION:=0.4.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/ASPLes/nopoll.git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=60a81fbd199551ac5dd017b9a44fb46e8530680b
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
  16. PKG_MAINTAINER:=John Clark <inindev@gmail.com>
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_LICENSE:=LGPL-2.1
  21. PKG_LICENSE_FILES:=COPYING
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/libnopoll
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. DEPENDS:=+libopenssl
  27. TITLE:=noPoll C WebSocket Library
  28. URL:=http://www.aspl.es/nopoll
  29. endef
  30. define Package/libnopoll/description
  31. This package contains the noPoll C WebSocket library.
  32. endef
  33. CONFIGURE_ARGS += \
  34. --enable-nopoll-log=no \
  35. --enable-nopoll-doc=no
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/{lib,include}
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnopoll.{a,so*} $(1)/usr/lib/
  40. endef
  41. define Package/libnopoll/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnopoll.so* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,libnopoll))