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.

61 lines
1.5 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:=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:=5cf7c10c3b0b758ad254504bf0ae7e600b118528
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
  16. PKG_MIRROR_HASH:=fae82c7c711520be07ed4e9828724d0a8ee5de7d7b4395e4ac9f72da25fcc524
  17. PKG_MAINTAINER:=John Clark <inindev@gmail.com>
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. PKG_LICENSE:=LGPL-2.1
  22. PKG_LICENSE_FILES:=COPYING
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/libnopoll
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. DEPENDS:=+libopenssl
  28. TITLE:=noPoll C WebSocket Library
  29. URL:=http://www.aspl.es/nopoll
  30. endef
  31. define Package/libnopoll/description
  32. This package contains the noPoll C WebSocket library.
  33. endef
  34. TARGET_LDFLAGS += -lcrypto -lpthread
  35. CONFIGURE_ARGS += \
  36. --enable-nopoll-log=no \
  37. --enable-nopoll-doc=no
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/{lib,include}
  40. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnopoll.{a,so*} $(1)/usr/lib/
  42. endef
  43. define Package/libnopoll/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnopoll.so* $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,libnopoll))