2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/pupnp
16 PKG_MD5SUM:=7e162895b9d0f9efcccd07973012cdff
21 include $(INCLUDE_DIR)/package.mk
23 define Package/libupnp/Default
26 URL:=http://pupnp.sourceforge.net/
29 define Package/libupnp
30 $(call Package/libupnp/Default)
32 TITLE:=UPnP SDK library
36 define Package/libupnp/description
37 The portable SDK for UPnP Devices (libupnp) provides developers with an API and
38 open source code for building control points, devices, and bridges that are
39 compliant with Version 1.0 of the Universal Plug and Play Device Architecture
43 define Package/libupnp-sample
44 $(call Package/libupnp/Default)
46 TITLE:=UPnP sample applications
49 define Package/libupnp-sample/description
50 TVcontrolpoint & tvdevice sample applications run inside /etc/upnp-tvdevice/
53 define Build/Configure
54 $(call Build/Configure/Default, \
60 TARGET_CFLAGS += $(FPIC)
62 define Build/Compile/libupnp-sample
63 $(MAKE) -C $(PKG_BUILD_DIR) \
64 DESTDIR="$(PKG_INSTALL_DIR)" \
66 $(MAKE) -C $(PKG_BUILD_DIR)/upnp/sample \
67 DESTDIR="$(PKG_INSTALL_DIR)" \
68 upnp_tv_device upnp_tv_ctrlpt
71 define Build/InstallDev
72 $(INSTALL_DIR) $(1)/usr/include
73 $(CP) $(PKG_INSTALL_DIR)/usr/include/upnp $(1)/usr/include/
74 $(INSTALL_DIR) $(1)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,threadutil,upnp}.{a,so*,la} $(1)/usr/lib/
76 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
77 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libupnp.pc $(1)/usr/lib/pkgconfig/
80 define Package/libupnp/install
81 $(INSTALL_DIR) $(1)/usr/lib
82 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,threadutil,upnp}.so.* $(1)/usr/lib/
85 define Package/libupnp-sample/install
86 $(INSTALL_DIR) $(1)/usr/bin
87 $(INSTALL_BIN) $(PKG_BUILD_DIR)/upnp/sample/upnp_tv_device $(1)/usr/bin
88 $(INSTALL_BIN) $(PKG_BUILD_DIR)/upnp/sample/upnp_tv_ctrlpt $(1)/usr/bin
89 $(INSTALL_DIR) $(1)/etc/upnp-tvdevice/web
90 $(CP) $(PKG_BUILD_DIR)/upnp/sample/web/* $(1)/etc/upnp-tvdevice
93 $(eval $(call BuildPackage,libupnp))
94 $(eval $(call BuildPackage,libupnp-sample))