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.

93 lines
2.4 KiB

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