poco: moved to github
[packages.git] / libs / gupnp / Makefile
1 #
2 # Copyright (C) 2006-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gupnp
11 PKG_VERSION:=0.19.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=http://ftp.gnome.org/pub/GNOME/sources/gupnp/0.19/
16 PKG_MD5SUM:=516549cebc5af416f2fd7177d6512a0f
17
18 PKG_BUILD_DEPENDS:=libgnutls
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/nls.mk
22
23 TARGET_LDFLAGS+=\
24         -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
25
26 define Package/libgupnp
27   SECTION:=libs
28   CATEGORY:=Libraries
29   TITLE:=Library for implementing both UPnP clients and services in C
30   URL:=http://www.gupnp.org/
31   DEPENDS:=+libgssdp +libuuid
32 endef
33
34 define Package/libgupnp/description
35 GUPnP is a library for implementing both UPnP clients and services in C, using
36 GObject and LibSoup. It allows for fully asynchronous use without using threads
37 and so cleanly integrates naturally into main-loop based applications, and
38 supports all of the UPnP features.
39 endef
40
41 define Build/Compile
42         $(MAKE) -C $(PKG_BUILD_DIR) \
43                 DESTDIR="$(PKG_INSTALL_DIR)" \
44                 all install
45 endef
46
47 define Build/InstallDev
48         $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/gupnp-1.0/libgupnp}
49
50         $(CP) \
51                 $(PKG_INSTALL_DIR)/usr/lib/libgupnp-1.0.{so*,la,a} \
52                 $(1)/usr/lib/
53
54         $(INSTALL_DATA) \
55                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
56                 $(1)/usr/lib/pkgconfig/
57
58         $(INSTALL_DATA) \
59                 $(PKG_INSTALL_DIR)/usr/include/gupnp-1.0/libgupnp/*.h \
60                 $(1)/usr/include/gupnp-1.0/libgupnp/
61 endef
62
63 define Package/libgupnp/install
64         $(INSTALL_DIR) $(1)/usr/lib
65         $(CP) \
66                 $(PKG_INSTALL_DIR)/usr/lib/libgupnp-1.0.so* \
67                 $(1)/usr/lib/
68 endef
69
70 $(eval $(call BuildPackage,libgupnp))