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.

76 lines
2.0 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libupnp
  3. PKG_VERSION:=1.8.6
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  6. PKG_SOURCE_URL:=@SF/pupnp
  7. PKG_HASH:=65faf240f8ccee50cc0e7fe7fb21dcd79f743fc227a9b652b091f50f6956c2c7
  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. TARGET_CFLAGS += -flto
  41. TARGET_LDFLAGS += -flto
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/include
  44. $(CP) $(PKG_INSTALL_DIR)/usr/include/upnp $(1)/usr/include/
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,upnp}.{a,so*,la} $(1)/usr/lib/
  47. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libupnp.pc $(1)/usr/lib/pkgconfig/
  49. endef
  50. define Package/libupnp/install
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,upnp}.so.* $(1)/usr/lib/
  53. endef
  54. define Package/libupnp-sample/install
  55. $(INSTALL_DIR) $(1)/usr/bin
  56. $(INSTALL_BIN) $(PKG_BUILD_DIR)/upnp/sample/.libs/* $(1)/usr/bin
  57. $(INSTALL_DIR) $(1)/etc/upnp-tvdevice/web
  58. $(INSTALL_DATA) $(PKG_BUILD_DIR)/upnp/sample/web/* $(1)/etc/upnp-tvdevice
  59. endef
  60. $(eval $(call BuildPackage,libupnp))
  61. $(eval $(call BuildPackage,libupnp-sample))