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.

70 lines
1.9 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libupnp
  3. PKG_VERSION:=1.6.25
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  6. PKG_SOURCE_URL:=@SF/pupnp
  7. PKG_HASH:=c5a300b86775435c076d58a79cc0d5a977d76027d2a7d721590729b7f369fa43
  8. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  9. PKG_FIXUP:=autoreconf
  10. PKG_BUILD_PARALLEL:=1
  11. PKG_INSTALL:=1
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/libupnp/Default
  14. SECTION:=libs
  15. CATEGORY:=Libraries
  16. URL:=http://pupnp.sourceforge.net/
  17. endef
  18. define Package/libupnp
  19. $(call Package/libupnp/Default)
  20. DEPENDS:=+libpthread
  21. TITLE:=UPnP SDK library
  22. MENU:=1
  23. endef
  24. define Package/libupnp/description
  25. The portable SDK for UPnP Devices (libupnp) provides developers with an API and
  26. open source code for building control points, devices, and bridges that are
  27. compliant with Version 1.0 of the Universal Plug and Play Device Architecture
  28. Specification.
  29. endef
  30. define Package/libupnp-sample
  31. $(call Package/libupnp/Default)
  32. DEPENDS:=libupnp
  33. TITLE:=UPnP sample applications
  34. endef
  35. define Package/libupnp-sample/description
  36. TVcontrolpoint & tvdevice sample applications run inside /etc/upnp-tvdevice/
  37. endef
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include
  40. $(CP) $(PKG_INSTALL_DIR)/usr/include/upnp $(1)/usr/include/
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,threadutil,upnp}.{a,so*,la} $(1)/usr/lib/
  43. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libupnp.pc $(1)/usr/lib/pkgconfig/
  45. endef
  46. define Package/libupnp/install
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,threadutil,upnp}.so.* $(1)/usr/lib/
  49. endef
  50. define Package/libupnp-sample/install
  51. $(INSTALL_DIR) $(1)/usr/bin
  52. $(INSTALL_BIN) $(PKG_BUILD_DIR)/upnp/sample/.libs/* $(1)/usr/bin
  53. $(INSTALL_DIR) $(1)/etc/upnp-tvdevice/web
  54. $(INSTALL_DATA) $(PKG_BUILD_DIR)/upnp/sample/web/* $(1)/etc/upnp-tvdevice
  55. endef
  56. $(eval $(call BuildPackage,libupnp))
  57. $(eval $(call BuildPackage,libupnp-sample))