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.bz2
16 PKG_SOURCE_URL
:=@SF
/pupnp
17 PKG_MD5SUM
:=553f3491fe4da88aba1763497730e2c0
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
:=A Portable Open Source UPnP Development Kit
29 URL
:=http
://pupnp.sourceforge.net
/
32 define Package
/libupnp
/description
33 The portable SDK for UPnP Devices
(libupnp
) provides developers with an
34 API and open source code for building control points
, devices
, and
35 bridges that are compliant with Version
1.0 of the Universal Plug and
36 Play Device Architecture Specification and support several operating
37 systems like Linux
, *BSD
, Solaris and others.
40 define Build
/Configure
41 $(call Build
/Configure
/Default
, \
48 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
49 CCOPT
="$(TARGET_CFLAGS)" \
50 DESTDIR
="$(PKG_INSTALL_DIR)" \
54 define Build
/InstallDev
55 mkdir
-p
$(1)/usr
/include
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/upnp
$(1)/usr
/include/
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ixml
,threadutil
,upnp
}.
{a
,so
*} $(1)/usr
/lib
/
59 mkdir
-p
$(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 $(eval
$(call BuildPackage
,libupnp
))