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
:=8918dcf7428cd119d0c8275765ff2833
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/libupnp
25 TITLE
:=A Portable Open Source UPnP Development Kit
26 URL
:=http
://pupnp.sourceforge.net
/
29 define Package
/libupnp
/description
30 The portable SDK for UPnP Devices
(libupnp
) provides developers with an
31 API and open source code for building control points
, devices
, and
32 bridges that are compliant with Version
1.0 of the Universal Plug and
33 Play Device Architecture Specification and support several operating
34 systems like Linux
, *BSD
, Solaris and others.
37 define Build
/Configure
38 $(call Build
/Configure
/Default
, \
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 CCOPT
="$(TARGET_CFLAGS)" \
47 DESTDIR
="$(PKG_INSTALL_DIR)" \
51 define Build
/InstallDev
52 mkdir
-p
$(1)/usr
/include
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/upnp
$(1)/usr
/include/
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ixml
,threadutil
,upnp
}.
{a
,so
*} $(1)/usr
/lib
/
56 mkdir
-p
$(1)/usr
/lib
/pkgconfig
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libupnp.
pc $(1)/usr
/lib
/pkgconfig
/
60 define Package
/libupnp
/install
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ixml
,threadutil
,upnp
}.so.
* $(1)/usr
/lib
/
65 $(eval
$(call BuildPackage
,libupnp
))