libupnp: update to 1.14.18
[feed/packages.git] / libs / libupnp / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=libupnp
4 PKG_VERSION:=1.14.18
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
8 PKG_SOURCE_URL:=@SF/pupnp
9 PKG_HASH:=16a7cee93ce2868ae63ab1a8164dc7de43577c59983b9f61293a310d6888dceb
10
11 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
12 PKG_LICENSE:=BSD-3-Clause
13 PKG_LICENSE_FILES:=COPYING
14 PKG_CPE_ID:=cpe:/a:libupnp_project:libupnp
15
16 PKG_CONFIG_DEPENDS:= \
17 CONFIG_PACKAGE_libupnp-sample \
18 CONFIG_IPV6
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/cmake.mk
22
23 define Package/libupnp/Default
24 SECTION:=libs
25 CATEGORY:=Libraries
26 URL:=http://pupnp.sourceforge.net/
27 endef
28
29 define Package/libupnp
30 $(call Package/libupnp/Default)
31 DEPENDS:=+libpthread
32 TITLE:=UPnP SDK library
33 MENU:=1
34 endef
35
36 define Package/libupnp/description
37 The portable SDK for UPnP Devices (libupnp) provides developers with an API and
38 open source code for building control points, devices, and bridges that are
39 compliant with Version 1.0 of the Universal Plug and Play Device Architecture
40 Specification.
41 endef
42
43 define Package/libupnp-sample
44 $(call Package/libupnp/Default)
45 DEPENDS:=libupnp
46 TITLE:=UPnP sample applications
47 endef
48
49 define Package/libupnp-sample/description
50 TVcontrolpoint & tvdevice sample applications run inside /etc/upnp-tvdevice/
51 endef
52
53 CMAKE_OPTIONS += \
54 -DBUILD_TESTING=OFF \
55 -Dclient=ON \
56 -Ddevice=ON \
57 -Dwebserver=ON \
58 -Dssdp=ON \
59 -Doptssdp=OFF \
60 -Dsoap=ON \
61 -Dgena=ON \
62 -Dtools=ON \
63 -Dipv6=O$(if $(CONFIG_IPV6),N,FF) \
64 -Dunspecified_server=OFF \
65 -Dopen_ssl=OFF \
66 -Dblocking_tcp_connections=ON \
67 -Dscriptsupport=OFF \
68 -Dpostwrite=OFF \
69 -Dreuseaddr=ON \
70 -Dsamples=O$(if $(CONFIG_PACKAGE_libupnp-sample),N,FF) \
71 -DDOWNLOAD_AND_BUILD_DEPS=OFF
72
73 define Build/InstallDev
74 $(INSTALL_DIR) $(1)/usr/include
75 $(CP) $(PKG_INSTALL_DIR)/usr/include/upnp $(1)/usr/include/
76 $(INSTALL_DIR) $(1)/usr/lib
77 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,upnp}.{a,so*} $(1)/usr/lib/
78 $(INSTALL_DIR) $(1)/usr/lib/cmake
79 $(CP) $(PKG_INSTALL_DIR)/usr/lib/cmake/* $(1)/usr/lib/cmake
80 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
81 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libupnp.pc $(1)/usr/lib/pkgconfig/
82 endef
83
84 define Package/libupnp/install
85 $(INSTALL_DIR) $(1)/usr/lib
86 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,upnp}.so.* $(1)/usr/lib/
87 endef
88
89 define Package/libupnp-sample/install
90 $(INSTALL_DIR) $(1)/usr/bin
91 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tv* $(1)/usr/bin
92 $(INSTALL_DIR) $(1)/usr/share/upnp
93 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/upnp/tv* $(1)/usr/share/upnp
94 endef
95
96 $(eval $(call BuildPackage,libupnp))
97 $(eval $(call BuildPackage,libupnp-sample))