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.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_MIRROR_HASH:=ce67b91ea54dda6678321e05a3e584648032a31323409a76df5dd60e7bfd17de
  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))