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.

60 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.2
  10. PKG_RELEASE:=2
  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. TARGET_LDFLAGS += -lcrypto -lpthread
  34. CONFIGURE_ARGS += \
  35. --enable-nopoll-log=no \
  36. --enable-nopoll-doc=no
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/{lib,include}
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnopoll.{a,so*} $(1)/usr/lib/
  41. endef
  42. define Package/libnopoll/install
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnopoll.so* $(1)/usr/lib/
  45. endef
  46. $(eval $(call BuildPackage,libnopoll))