Makefile 2.1 KB

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