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.

75 lines
2.0 KiB

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