2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
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
18 PKG_BUILD_DEPENDS:=libgnutls
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/nls.mk
24 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
26 define Package/libgupnp
29 TITLE:=Library for implementing both UPnP clients and services in C
30 URL:=http://www.gupnp.org/
31 DEPENDS:=+libgssdp +libuuid
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.
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 DESTDIR="$(PKG_INSTALL_DIR)" \
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/gupnp-1.0/libgupnp}
51 $(PKG_INSTALL_DIR)/usr/lib/libgupnp-1.0.{so*,la,a} \
55 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
56 $(1)/usr/lib/pkgconfig/
59 $(PKG_INSTALL_DIR)/usr/include/gupnp-1.0/libgupnp/*.h \
60 $(1)/usr/include/gupnp-1.0/libgupnp/
63 define Package/libgupnp/install
64 $(INSTALL_DIR) $(1)/usr/lib
66 $(PKG_INSTALL_DIR)/usr/lib/libgupnp-1.0.so* \
70 $(eval $(call BuildPackage,libgupnp))