fwknop: init script improvements
[feed/packages.git] / libs / libupnp / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=libupnp
4 PKG_VERSION:=1.8.4
5 PKG_RELEASE:=2
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
8 PKG_SOURCE_URL:=@SF/pupnp
9 PKG_HASH:=188d3f786d92fe14191f17634d2d87847eee7d2b568a5257ea23262fec9973d6
10 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
11 PKG_CPE_ID:=cpe:/a:portable_sdk_for_upnp_project:portable_sdk_for_upnp
12
13 PKG_FIXUP:=autoreconf
14 PKG_BUILD_PARALLEL:=1
15 PKG_INSTALL:=1
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/libupnp/Default
20 SECTION:=libs
21 CATEGORY:=Libraries
22 URL:=http://pupnp.sourceforge.net/
23 endef
24
25 define Package/libupnp
26 $(call Package/libupnp/Default)
27 DEPENDS:=+libpthread
28 TITLE:=UPnP SDK library
29 MENU:=1
30 endef
31
32 define Package/libupnp/description
33 The portable SDK for UPnP Devices (libupnp) provides developers with an API and
34 open source code for building control points, devices, and bridges that are
35 compliant with Version 1.0 of the Universal Plug and Play Device Architecture
36 Specification.
37 endef
38
39 define Package/libupnp-sample
40 $(call Package/libupnp/Default)
41 DEPENDS:=libupnp
42 TITLE:=UPnP sample applications
43 endef
44
45 define Package/libupnp-sample/description
46 TVcontrolpoint & tvdevice sample applications run inside /etc/upnp-tvdevice/
47 endef
48
49 TARGET_CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -flto
50 TARGET_LDFLAGS += -flto
51
52 CONFIGURE_VARS += ac_cv_lib_compat_ftime=no
53
54 define Build/InstallDev
55 $(INSTALL_DIR) $(1)/usr/include
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/upnp $(1)/usr/include/
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,upnp}.{a,so*,la} $(1)/usr/lib/
59 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libupnp.pc $(1)/usr/lib/pkgconfig/
61 endef
62
63 define Package/libupnp/install
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,upnp}.so.* $(1)/usr/lib/
66 endef
67
68 define Package/libupnp-sample/install
69 $(INSTALL_DIR) $(1)/usr/bin
70 $(INSTALL_BIN) $(PKG_BUILD_DIR)/upnp/sample/.libs/* $(1)/usr/bin
71 $(INSTALL_DIR) $(1)/etc/upnp-tvdevice/web
72 $(INSTALL_DATA) $(PKG_BUILD_DIR)/upnp/sample/web/* $(1)/etc/upnp-tvdevice
73 endef
74
75 $(eval $(call BuildPackage,libupnp))
76 $(eval $(call BuildPackage,libupnp-sample))