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.

92 lines
2.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libupnp
  3. PKG_VERSION:=1.14.0
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  6. PKG_SOURCE_URL:=@SF/pupnp
  7. PKG_HASH:=ecb23d4291968c8a7bdd4eb16fc2250dbacc16b354345a13342d67f571d35ceb
  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_INSTALL:=1
  13. PKG_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/libupnp/Default
  16. SECTION:=libs
  17. CATEGORY:=Libraries
  18. URL:=http://pupnp.sourceforge.net/
  19. endef
  20. define Package/libupnp
  21. $(call Package/libupnp/Default)
  22. DEPENDS:=+libpthread
  23. TITLE:=UPnP SDK library
  24. MENU:=1
  25. endef
  26. define Package/libupnp/description
  27. The portable SDK for UPnP Devices (libupnp) provides developers with an API and
  28. open source code for building control points, devices, and bridges that are
  29. compliant with Version 1.0 of the Universal Plug and Play Device Architecture
  30. Specification.
  31. endef
  32. define Package/libupnp-sample
  33. $(call Package/libupnp/Default)
  34. DEPENDS:=libupnp
  35. TITLE:=UPnP sample applications
  36. endef
  37. define Package/libupnp-sample/description
  38. TVcontrolpoint & tvdevice sample applications run inside /etc/upnp-tvdevice/
  39. endef
  40. CONFIGURE_ARGS += \
  41. --enable-client \
  42. --enable-device \
  43. --enable-gena \
  44. --enable-reuseaddr \
  45. --enable-gena \
  46. --enable-webserver \
  47. --enable-ssdp \
  48. --enable-soap \
  49. --enable-tools \
  50. --enable-blocking_tcp_connections \
  51. --enable-samples \
  52. --disable-debug \
  53. --disable-optssdp \
  54. --disable-unspecified_server \
  55. --disable-open_ssl \
  56. --disable-scriptsupport \
  57. --disable-postwrite
  58. define Build/InstallDev
  59. $(INSTALL_DIR) $(1)/usr/include
  60. $(CP) $(PKG_INSTALL_DIR)/usr/include/upnp $(1)/usr/include/
  61. $(INSTALL_DIR) $(1)/usr/lib
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,upnp}.{a,so*,la} $(1)/usr/lib/
  63. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  64. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libupnp.pc $(1)/usr/lib/pkgconfig/
  65. endef
  66. define Package/libupnp/install
  67. $(INSTALL_DIR) $(1)/usr/lib
  68. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,upnp}.so.* $(1)/usr/lib/
  69. endef
  70. define Package/libupnp-sample/install
  71. $(INSTALL_DIR) $(1)/usr/bin
  72. $(INSTALL_BIN) $(PKG_BUILD_DIR)/upnp/sample/.libs/* $(1)/usr/bin
  73. $(INSTALL_DIR) $(1)/etc/upnp-tvdevice/web
  74. $(INSTALL_DATA) $(PKG_BUILD_DIR)/upnp/sample/web/* $(1)/etc/upnp-tvdevice
  75. endef
  76. $(eval $(call BuildPackage,libupnp))
  77. $(eval $(call BuildPackage,libupnp-sample))