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.

58 lines
1.4 KiB

  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.6
  10. PKG_RELEASE:=2
  11. PKG_SOURCE_URL:=https://codeload.github.com/ASPLes/nopoll/tar.gz/$(PKG_VERSION)?
  12. PKG_SOURCE:=nopoll-$(PKG_VERSION).tar.gz
  13. PKG_HASH:=16eae3885d572495ba1f22d85fa9032139c761fb21ef1d80205039acd3143f5a
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/nopoll-$(PKG_VERSION)
  15. PKG_MAINTAINER:=John Clark <inindev@gmail.com>
  16. PKG_LICENSE:=LGPL-2.1
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/libnopoll
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. DEPENDS:=+libopenssl
  26. TITLE:=noPoll C WebSocket Library
  27. URL:=https://www.aspl.es/nopoll
  28. endef
  29. define Package/libnopoll/description
  30. This package contains the noPoll C WebSocket library.
  31. endef
  32. TARGET_LDFLAGS += -lcrypto -lpthread
  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))