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.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/upnp
17 PKG_MD5SUM
:=6646be5e31e58188e8f47c6ce64faa4c
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/libupnp
28 TITLE
:=UPnP SDK library
29 URL
:=http
://upnp.sourceforge.net
/
32 define Package
/libupnp
/description
33 The Universal Plug and Play
(UPnP
) SDK for Linux provides support
34 for building UPnP-compliant control points
, devices
, and bridges
38 define Build
/Configure
39 $(call Build
/Configure
/Default
, \
46 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
47 CCOPT
="$(TARGET_CFLAGS)" \
48 DESTDIR
="$(PKG_INSTALL_DIR)" \
52 define Build
/InstallDev
53 mkdir
-p
$(1)/usr
/include
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/upnp
$(1)/usr
/include/
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ixml
,threadutil
,upnp
}.
{a
,so
*} $(1)/usr
/lib
/
57 mkdir
-p
$(1)/usr
/lib
/pkgconfig
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libupnp.
pc $(1)/usr
/lib
/pkgconfig
/
61 define Package
/libupnp
/install
62 $(INSTALL_DIR
) $(1)/usr
/lib
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ixml
,threadutil
,upnp
}.so.
* $(1)/usr
/lib
/
66 $(eval
$(call BuildPackage
,libupnp
))