2006-07-22 22:45:14 +00:00
|
|
|
#
|
2010-02-18 00:46:17 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-07-22 22:45:14 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libupnp
|
2011-03-05 17:55:03 +00:00
|
|
|
PKG_VERSION:=1.6.12
|
2011-11-30 14:20:59 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-07-22 22:45:14 +00:00
|
|
|
|
2008-02-23 04:29:45 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=@SF/pupnp
|
2011-03-05 17:55:03 +00:00
|
|
|
PKG_MD5SUM:=d48938efe69d07142be8aaaeaa9a2d3e
|
2006-07-22 22:45:14 +00:00
|
|
|
|
2010-02-18 00:46:17 +00:00
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-07-22 22:45:14 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-07-30 15:39:55 +00:00
|
|
|
define Package/libupnp/Default
|
2006-07-22 22:45:14 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2009-06-13 17:01:55 +00:00
|
|
|
URL:=http://pupnp.sourceforge.net/
|
2008-07-30 15:39:55 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libupnp
|
|
|
|
$(call Package/libupnp/Default)
|
2006-07-22 22:45:14 +00:00
|
|
|
DEPENDS:=+libpthread
|
2008-07-30 15:39:55 +00:00
|
|
|
TITLE:=UPnP SDK library
|
|
|
|
MENU:=1
|
2006-07-22 22:45:14 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/libupnp/description
|
2010-02-18 00:46:17 +00:00
|
|
|
The portable SDK for UPnP Devices (libupnp) provides developers with an API and
|
|
|
|
open source code for building control points, devices, and bridges that are
|
|
|
|
compliant with Version 1.0 of the Universal Plug and Play Device Architecture
|
|
|
|
Specification.
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
2008-07-30 15:39:55 +00:00
|
|
|
define Package/libupnp-sample
|
|
|
|
$(call Package/libupnp/Default)
|
|
|
|
DEPENDS:=libupnp
|
|
|
|
TITLE:=UPnP sample applications
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libupnp-sample/description
|
2010-02-18 00:46:17 +00:00
|
|
|
TVcontrolpoint & tvdevice sample applications run inside /etc/upnp-tvdevice/
|
2008-07-30 15:39:55 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-22 22:45:14 +00:00
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/upnp $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2010-02-18 00:46:17 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,threadutil,upnp}.{a,so*,la} $(1)/usr/lib/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libupnp.pc $(1)/usr/lib/pkgconfig/
|
2006-07-22 22:45:14 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
define Package/libupnp/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-01-10 11:32:15 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,threadutil,upnp}.so.* $(1)/usr/lib/
|
2006-10-30 13:51:50 +00:00
|
|
|
endef
|
|
|
|
|
2008-07-30 15:39:55 +00:00
|
|
|
define Package/libupnp-sample/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2011-11-30 14:20:59 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/upnp/sample/.libs/* $(1)/usr/bin
|
2008-07-30 15:39:55 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/upnp-tvdevice/web
|
2011-11-30 14:20:59 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/upnp/sample/web/* $(1)/etc/upnp-tvdevice
|
2008-07-30 15:39:55 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-22 22:45:14 +00:00
|
|
|
$(eval $(call BuildPackage,libupnp))
|
2008-07-30 15:39:55 +00:00
|
|
|
$(eval $(call BuildPackage,libupnp-sample))
|