Update libupnpn to 0.6.6 (#3596)
[openwrt/svn-archive/archive.git] / libs / libupnp / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libupnp
12 PKG_VERSION:=1.6.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/pupnp
17 PKG_MD5SUM:=8918dcf7428cd119d0c8275765ff2833
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libupnp
22 SECTION:=libs
23 CATEGORY:=Libraries
24 DEPENDS:=+libpthread
25 TITLE:=A Portable Open Source UPnP Development Kit
26 URL:=http://pupnp.sourceforge.net/
27 endef
28
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.
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --enable-shared \
40 --enable-static \
41 );
42 endef
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 CCOPT="$(TARGET_CFLAGS)" \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
48 all install
49 endef
50
51 define Build/InstallDev
52 mkdir -p $(1)/usr/include
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/upnp $(1)/usr/include/
54 mkdir -p $(1)/usr/lib
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/
58 endef
59
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/
63 endef
64
65 $(eval $(call BuildPackage,libupnp))