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.1 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libupnp
  3. PKG_VERSION:=1.8.4
  4. PKG_RELEASE:=2
  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_CPE_ID:=cpe:/a:portable_sdk_for_upnp_project:portable_sdk_for_upnp
  10. PKG_FIXUP:=autoreconf
  11. PKG_BUILD_PARALLEL:=1
  12. PKG_INSTALL:=1
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/libupnp/Default
  15. SECTION:=libs
  16. CATEGORY:=Libraries
  17. URL:=http://pupnp.sourceforge.net/
  18. endef
  19. define Package/libupnp
  20. $(call Package/libupnp/Default)
  21. DEPENDS:=+libpthread
  22. TITLE:=UPnP SDK library
  23. MENU:=1
  24. endef
  25. define Package/libupnp/description
  26. The portable SDK for UPnP Devices (libupnp) provides developers with an API and
  27. open source code for building control points, devices, and bridges that are
  28. compliant with Version 1.0 of the Universal Plug and Play Device Architecture
  29. Specification.
  30. endef
  31. define Package/libupnp-sample
  32. $(call Package/libupnp/Default)
  33. DEPENDS:=libupnp
  34. TITLE:=UPnP sample applications
  35. endef
  36. define Package/libupnp-sample/description
  37. TVcontrolpoint & tvdevice sample applications run inside /etc/upnp-tvdevice/
  38. endef
  39. TARGET_CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -flto
  40. TARGET_LDFLAGS += -flto
  41. CONFIGURE_VARS += ac_cv_lib_compat_ftime=no
  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))