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.

95 lines
2.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libupnp
  3. PKG_VERSION:=1.8.7
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  6. PKG_SOURCE_URL:=@SF/pupnp
  7. PKG_HASH:=e38c69b2b67322e67cd53680db9b02c7c1f720a47a3cd626fd89d57d2dca93b8
  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. TARGET_CFLAGS += -flto
  59. TARGET_LDFLAGS += -flto
  60. define Build/InstallDev
  61. $(INSTALL_DIR) $(1)/usr/include
  62. $(CP) $(PKG_INSTALL_DIR)/usr/include/upnp $(1)/usr/include/
  63. $(INSTALL_DIR) $(1)/usr/lib
  64. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,upnp}.{a,so*,la} $(1)/usr/lib/
  65. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  66. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libupnp.pc $(1)/usr/lib/pkgconfig/
  67. endef
  68. define Package/libupnp/install
  69. $(INSTALL_DIR) $(1)/usr/lib
  70. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,upnp}.so.* $(1)/usr/lib/
  71. endef
  72. define Package/libupnp-sample/install
  73. $(INSTALL_DIR) $(1)/usr/bin
  74. $(INSTALL_BIN) $(PKG_BUILD_DIR)/upnp/sample/.libs/* $(1)/usr/bin
  75. $(INSTALL_DIR) $(1)/etc/upnp-tvdevice/web
  76. $(INSTALL_DATA) $(PKG_BUILD_DIR)/upnp/sample/web/* $(1)/etc/upnp-tvdevice
  77. endef
  78. $(eval $(call BuildPackage,libupnp))
  79. $(eval $(call BuildPackage,libupnp-sample))