2 # Copyright (C) 2006-2014 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
:=ee16e5d33a3ea7506f38d71facc057dd
17 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/libupnp
/Default
27 URL
:=http
://pupnp.sourceforge.net
/
30 define Package
/libupnp
31 $(call Package
/libupnp
/Default
)
33 TITLE
:=UPnP SDK library
37 define Package
/libupnp
/description
38 The portable SDK for UPnP Devices
(libupnp
) provides developers with an API and
39 open source code for building control points
, devices
, and bridges that are
40 compliant with Version
1.0 of the Universal Plug and Play Device Architecture
44 define Package
/libupnp-sample
45 $(call Package
/libupnp
/Default
)
47 TITLE
:=UPnP sample applications
50 define Package
/libupnp-sample
/description
51 TVcontrolpoint
& tvdevice sample applications run inside
/etc
/upnp-tvdevice
/
54 define Build
/InstallDev
55 $(INSTALL_DIR
) $(1)/usr
/include
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/upnp
$(1)/usr
/include/
57 $(INSTALL_DIR
) $(1)/usr
/lib
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ixml
,threadutil
,upnp
}.
{a
,so
*,la
} $(1)/usr
/lib
/
59 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libupnp.
pc $(1)/usr
/lib
/pkgconfig
/
63 define Package
/libupnp
/install
64 $(INSTALL_DIR
) $(1)/usr
/lib
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ixml
,threadutil
,upnp
}.so.
* $(1)/usr
/lib
/
68 define Package
/libupnp-sample
/install
69 $(INSTALL_DIR
) $(1)/usr
/bin
70 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/upnp
/sample
/.libs
/* $(1)/usr
/bin
71 $(INSTALL_DIR
) $(1)/etc
/upnp-tvdevice
/web
72 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/upnp
/sample
/web
/* $(1)/etc
/upnp-tvdevice
75 $(eval
$(call BuildPackage
,libupnp
))
76 $(eval
$(call BuildPackage
,libupnp-sample
))