2 # Copyright (C) 2006 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
:=8918dcf7428cd119d0c8275765ff2833
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/libupnp
/Default
23 URL
:=http
://pupnp.sourceforge.net
/
26 define Package
/libupnp
27 $(call Package
/libupnp
/Default
)
29 TITLE
:=UPnP SDK library
33 define Package
/libupnp
/description
34 The portable SDK for UPnP Devices
(libupnp
) provides developers with an
35 API and open source code for building control points
, devices
, and
36 bridges that are compliant with Version
1.0 of the Universal Plug and
37 Play Device Architecture Specification and support several operating
38 systems like Linux
, *BSD
, Solaris and others.
41 define Package
/libupnp-sample
42 $(call Package
/libupnp
/Default
)
44 TITLE
:=UPnP sample applications
47 define Package
/libupnp-sample
/description
48 TVcontrolpoint
& tvdevice sample applications
49 run inside
/etc
/upnp-tvdevice
/
52 define Build
/Configure
53 $(call Build
/Configure
/Default
, \
59 TARGET_CFLAGS
+= $(FPIC
)
62 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
63 CCOPT
="$(TARGET_CFLAGS)" \
64 DESTDIR
="$(PKG_INSTALL_DIR)" \
66 $(MAKE
) -C
$(PKG_BUILD_DIR
)/upnp
/sample
/ upnp_tv_device upnp_tv_ctrlpt
69 define Build
/Compile
/libupnp-sample
70 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
71 CCOPT
="$(TARGET_CFLAGS)" \
72 DESTDIR
="$(PKG_INSTALL_DIR)" \
76 define Build
/InstallDev
77 mkdir
-p
$(1)/usr
/include
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/upnp
$(1)/usr
/include/
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ixml
,threadutil
,upnp
}.
{a
,so
*} $(1)/usr
/lib
/
81 mkdir
-p
$(1)/usr
/lib
/pkgconfig
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libupnp.
pc $(1)/usr
/lib
/pkgconfig
/
85 define Package
/libupnp
/install
86 $(INSTALL_DIR
) $(1)/usr
/lib
87 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ixml
,threadutil
,upnp
}.so.
* $(1)/usr
/lib
/
90 define Package
/libupnp-sample
/install
91 $(INSTALL_DIR
) $(1)/usr
/bin
92 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/upnp
/sample
/upnp_tv_device
$(1)/usr
/bin
93 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/upnp
/sample
/upnp_tv_ctrlpt
$(1)/usr
/bin
94 $(INSTALL_DIR
) $(1)/etc
/upnp-tvdevice
/web
95 $(CP
) $(PKG_BUILD_DIR
)/upnp
/sample
/web
/* $(1)/etc
/upnp-tvdevice
98 $(eval
$(call BuildPackage
,libupnp
))
99 $(eval
$(call BuildPackage
,libupnp-sample
))