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.

97 lines
2.6 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libupnp
  3. PKG_VERSION:=1.14.7
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  6. PKG_SOURCE_URL:=@SF/pupnp
  7. PKG_HASH:=7b66ac4a86bc0e218e2771ac274b2945bc4154bf9054e57b14afb67c26ac7c24
  8. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  9. PKG_LICENSE:=BSD-3-Clause
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_CPE_ID:=cpe:/a:libupnp_project:libupnp
  12. PKG_CONFIG_DEPENDS:= \
  13. CONFIG_PACKAGE_libupnp-sample \
  14. CONFIG_IPV6
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../../devel/ninja/ninja-cmake.mk
  17. define Package/libupnp/Default
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. URL:=http://pupnp.sourceforge.net/
  21. endef
  22. define Package/libupnp
  23. $(call Package/libupnp/Default)
  24. DEPENDS:=+libpthread
  25. TITLE:=UPnP SDK library
  26. MENU:=1
  27. endef
  28. define Package/libupnp/description
  29. The portable SDK for UPnP Devices (libupnp) provides developers with an API and
  30. open source code for building control points, devices, and bridges that are
  31. compliant with Version 1.0 of the Universal Plug and Play Device Architecture
  32. Specification.
  33. endef
  34. define Package/libupnp-sample
  35. $(call Package/libupnp/Default)
  36. DEPENDS:=libupnp
  37. TITLE:=UPnP sample applications
  38. endef
  39. define Package/libupnp-sample/description
  40. TVcontrolpoint & tvdevice sample applications run inside /etc/upnp-tvdevice/
  41. endef
  42. CMAKE_OPTIONS += \
  43. -DBUILD_TESTING=OFF \
  44. -Dclient=ON \
  45. -Ddevice=ON \
  46. -Dwebserver=OFF \
  47. -Dssdp=ON \
  48. -Doptssdp=OFF \
  49. -Dsoap=ON \
  50. -Dgena=ON \
  51. -Dtools=ON \
  52. -Dipv6=O$(if $(CONFIG_IPV6),N,FF) \
  53. -Dunspecified_server=OFF \
  54. -Dopen_ssl=OFF \
  55. -Dblocking_tcp_connections=ON \
  56. -Dscriptsupport=OFF \
  57. -Dpostwrite=OFF \
  58. -Dreuseaddr=ON \
  59. -Dsamples=O$(if $(CONFIG_PACKAGE_libupnp-sample),N,FF) \
  60. -DDOWNLOAD_AND_BUILD_DEPS=OFF
  61. define Build/InstallDev
  62. $(INSTALL_DIR) $(1)/usr/include
  63. $(CP) $(PKG_INSTALL_DIR)/usr/include/upnp $(1)/usr/include/
  64. $(INSTALL_DIR) $(1)/usr/lib
  65. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,upnp}.{a,so*} $(1)/usr/lib/
  66. $(INSTALL_DIR) $(1)/usr/lib/cmake
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib/cmake/* $(1)/usr/lib/cmake
  68. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libupnp.pc $(1)/usr/lib/pkgconfig/
  70. endef
  71. define Package/libupnp/install
  72. $(INSTALL_DIR) $(1)/usr/lib
  73. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,upnp}.so.* $(1)/usr/lib/
  74. endef
  75. define Package/libupnp-sample/install
  76. $(INSTALL_DIR) $(1)/usr/bin
  77. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tv* $(1)/usr/bin
  78. $(INSTALL_DIR) $(1)/usr/share/upnp
  79. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/upnp/tv* $(1)/usr/share/upnp
  80. endef
  81. $(eval $(call BuildPackage,libupnp))
  82. $(eval $(call BuildPackage,libupnp-sample))