Patchwork [OpenWrt-Devel,12/16,packages] add packaging for gupnp-vala

login
register
Submitter Andy Leiserson
Date 2012-08-14 16:15:16
Message ID <20120814161516.GN14103@leiserson.org>
Download mbox | patch
Permalink /patch/2533/
State Accepted
Delegated to: Florian Fainelli
Headers show

Comments

Andy Leiserson - 2012-08-14 16:15:16
Signed-off-by: Andy Leiserson <andy@leiserson.org>
---
  libs/gupnp-vala/Makefile                   |   56 ++++++++++++++++++++++++++++
  libs/gupnp-vala/patches/010-no-tests.patch |   11 ++++++
  2 files changed, 67 insertions(+)
  create mode 100644 libs/gupnp-vala/Makefile
  create mode 100644 libs/gupnp-vala/patches/010-no-tests.patch
Florian Fainelli - 2012-12-05 17:34:25
On Tuesday 14 August 2012 09:15:16 Andy Leiserson wrote:
> 
> Signed-off-by: Andy Leiserson <andy@leiserson.org>
> ---

Applied in r34525, thanks!
--
Florian

Patch

diff --git a/libs/gupnp-vala/Makefile b/libs/gupnp-vala/Makefile
new file mode 100644
index 0000000..24efee8
--- /dev/null
+++ b/libs/gupnp-vala/Makefile
@@ -0,0 +1,56 @@ 
+#
+# Copyright (C) 2006-2012 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=gupnp-vala
+PKG_VERSION:=0.10.3
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
+PKG_SOURCE_URL:=http://ftp.gnome.org/pub/GNOME/sources/gupnp-vala/0.10/
+PKG_SHA256SUM:=6d463c1c19786453dd06787e0829afa1e6f51421c91b769bac09be97cc54e9d4
+
+PKG_BUILD_DEPENDS:=vala/host libgssdp libgupnp libgupnp-av libgupnp-dlna
+
+PKG_FIXUP:=autoreconf
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/nls.mk
+
+define Package/gupnp-vala
+  SECTION:=lang
+  CATEGORY:=Languages
+  TITLE:=GUPnP Vala bindings
+  URL:=http://live.gnome.org/GUPnP
+endef
+
+define Package/gupnp-vala/description
+Vala bindings for GUPnP
+endef
+
+define Build/Compile
+	$(MAKE) -C $(PKG_BUILD_DIR) \
+		DESTDIR="$(PKG_INSTALL_DIR)" \
+		all install
+endef
+
+define Build/InstallDev
+	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+
+	$(INSTALL_DATA) \
+		$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
+		$(1)/usr/lib/pkgconfig/
+
+	$(INSTALL_DIR) $(1)/usr/share/vala/vapi
+
+	$(INSTALL_DATA) \
+		$(PKG_INSTALL_DIR)/usr/share/vala/vapi/*.{vapi,deps} \
+		$(1)/usr/share/vala/vapi
+endef
+
+$(eval $(call BuildPackage,gupnp-vala))
diff --git a/libs/gupnp-vala/patches/010-no-tests.patch b/libs/gupnp-vala/patches/010-no-tests.patch
new file mode 100644
index 0000000..faf919e
--- /dev/null
+++ b/libs/gupnp-vala/patches/010-no-tests.patch
@@ -0,0 +1,11 @@ 
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -2,7 +2,7 @@
+ 
+ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+ 
+-SUBDIRS = . tests
++SUBDIRS = .
+ 
+ pkgconfig_DATA= gupnp-vala-1.0.pc
+ pkgconfigdir = $(libdir)/pkgconfig