update to 1.2.3
[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.2.1a
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/upnp
17 PKG_MD5SUM:=e72b3550bf064eedf080f16f09688891
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libupnp
26 SECTION:=libs
27 CATEGORY:=Libraries
28 DEPENDS:=+libpthread
29 TITLE:=UPnP SDK library
30 DESCRIPTION:=\
31 The Universal Plug and Play (UPnP) SDK for Linux provides support \\\
32 for building UPnP-compliant control points, devices, and bridges \\\
33 on Linux.
34 URL:=http://upnp.sourceforge.net/
35 endef
36
37 define Build/Configure
38 endef
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR)/upnp \
42 $(TARGET_CONFIGURE_OPTS) \
43 OPT_FLAGS="$(TARGET_CFLAGS)" \
44 STRIP=/bin/true
45 endef
46
47 define Build/InstallDev
48 mkdir -p $(STAGING_DIR)/usr/include/upnp
49 $(CP) $(PKG_BUILD_DIR)/upnp/inc/*.h $(STAGING_DIR)/usr/include/upnp/
50 mkdir -p $(STAGING_DIR)/usr/lib
51 $(CP) $(PKG_BUILD_DIR)/upnp/bin/lib{ixml,threadutil,upnp}.so $(STAGING_DIR)/usr/lib/
52 endef
53
54 define Build/UninstallDev
55 rm -rf \
56 $(STAGING_DIR)/usr/include/upnp \
57 $(STAGING_DIR)/usr/lib/lib{ixml,threadutil,upnp}.so
58 endef
59
60 define Package/libupnp/install
61 install -d -m0755 $(1)/usr/lib
62 $(CP) $(PKG_BUILD_DIR)/upnp/bin/lib{ixml,threadutil,upnp}.so $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,libupnp))