1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
8 PKG_SOURCE_URL
:=@SF
/pupnp
9 PKG_HASH
:=16a7cee93ce2868ae63ab1a8164dc7de43577c59983b9f61293a310d6888dceb
11 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
12 PKG_LICENSE
:=BSD-3-Clause
13 PKG_LICENSE_FILES
:=COPYING
14 PKG_CPE_ID
:=cpe
:/a
:libupnp_project
:libupnp
16 PKG_CONFIG_DEPENDS
:= \
17 CONFIG_PACKAGE_libupnp-sample \
20 include $(INCLUDE_DIR
)/package.mk
21 include $(INCLUDE_DIR
)/cmake.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
/
63 -Dipv6
=O
$(if
$(CONFIG_IPV6
),N
,FF
) \
64 -Dunspecified_server
=OFF \
66 -Dblocking_tcp_connections
=ON \
70 -Dsamples
=O
$(if
$(CONFIG_PACKAGE_libupnp-sample
),N
,FF
) \
71 -DDOWNLOAD_AND_BUILD_DEPS
=OFF
73 define Build
/InstallDev
74 $(INSTALL_DIR
) $(1)/usr
/include
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/upnp
$(1)/usr
/include/
76 $(INSTALL_DIR
) $(1)/usr
/lib
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ixml
,upnp
}.
{a
,so
*} $(1)/usr
/lib
/
78 $(INSTALL_DIR
) $(1)/usr
/lib
/cmake
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/cmake
/* $(1)/usr
/lib
/cmake
80 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libupnp.
pc $(1)/usr
/lib
/pkgconfig
/
84 define Package
/libupnp
/install
85 $(INSTALL_DIR
) $(1)/usr
/lib
86 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ixml
,upnp
}.so.
* $(1)/usr
/lib
/
89 define Package
/libupnp-sample
/install
90 $(INSTALL_DIR
) $(1)/usr
/bin
91 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/tv
* $(1)/usr
/bin
92 $(INSTALL_DIR
) $(1)/usr
/share
/upnp
93 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/upnp
/tv
* $(1)/usr
/share
/upnp
96 $(eval
$(call BuildPackage
,libupnp
))
97 $(eval
$(call BuildPackage
,libupnp-sample
))