Skip to contentSkip to conversation

gupnp-tools: new package

PATCH New Fabrice Fontaine 2 participants 2 messages Jul 29, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gupnp-tools: new package

GUPnP Tools are free replacements of Intel UPnP tools that use GUPnP. They provides client and server side tools which enable one to easily test and debug one's UPnP devices and control points.

http://www.gupnp.org/

---
 package/Config.in                    |  1 +
 package/gupnp-tools/Config.in        | 34 ++++++++++++++++++++++++++++++++++
 package/gupnp-tools/gupnp-tools.hash |  2 ++
 package/gupnp-tools/gupnp-tools.mk   | 35 +++++++++++++++++++++++++++++++++++
 4 files changed, 72 insertions(+)
 create mode 100644 package/gupnp-tools/Config.in
 create mode 100644 package/gupnp-tools/gupnp-tools.hash
 create mode 100644 package/gupnp-tools/gupnp-tools.mk
package/Config.in +1 -0
index cf1d54e..ee7ba39 100644
@@ -134,6 +134,7 @@ menu "Development tools"
 	source "package/gperf/Config.in"
 	source "package/grep/Config.in"
 	source "package/gtksourceview/Config.in"
+	source "package/gupnp-tools/Config.in"
 	source "package/intltool/Config.in"
 	source "package/jq/Config.in"
 	source "package/libtool/Config.in"
package/gupnp-tools/Config.in new file +34 -0
new file mode 100644
index 0000000..769ab6d
@@ -0,0 +1,34 @@
+config BR2_PACKAGE_GUPNP_TOOLS
+	bool "gupnp-tools"
+	depends on BR2_USE_WCHAR # glib2, gupnp
+	depends on BR2_TOOLCHAIN_HAS_THREADS # glib2, gupnp
+	depends on BR2_USE_MMU # glib2, gupnp
+	depends on BR2_INSTALL_LIBSTDCPP # libgtk3
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libgtk3
+	depends on BR2_PACKAGE_MESA3D_OPENGL_EGL || \
+		BR2_PACKAGE_HAS_LIBGL # libgtk3
+	select BR2_PACKAGE_LIBGLIB2
+	select BR2_PACKAGE_GSSDP
+	select BR2_PACKAGE_GUPNP
+	select BR2_PACKAGE_LIBSOUP
+	select BR2_PACKAGE_LIBXML2
+	select BR2_PACKAGE_LIBGTK3
+	help
+	  GUPnP Tools are free replacements of Intel UPnP tools that use
+	  GUPnP. They provides client and server side tools which enable
+	  one to easily test and debug one's UPnP devices and control
+	  points.
+
+	  http://www.gupnp.org/
+
+comment "gupnp-tools needs a toolchain w/ wchar, threads, C++"
+	depends on BR2_USE_MMU
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4
+	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
+		!BR2_INSTALL_LIBSTDCPP
+
+comment "gupnp-tools needs an OpenGL or OpenGL EGL backend provided by mesa3d"
+	depends on BR2_USE_MMU
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4
+	depends on !BR2_PACKAGE_MESA3D_OPENGL_EGL && \
+		!BR2_PACKAGE_HAS_LIBGL
package/gupnp-tools/gupnp-tools.hash new file +2 -0
new file mode 100644
index 0000000..0d37a87
@@ -0,0 +1,2 @@
+# Hash from: http://ftp.gnome.org/pub/gnome/sources/gupnp-tools/0.8/gupnp-tools-0.8.12.sha256sum:
+sha256	658de96953608c4b1f47578ae563a7066d1f1983565daf22ad52b7b328ef97b1	gupnp-tools-0.8.12.tar.xz
package/gupnp-tools/gupnp-tools.mk new file +35 -0
new file mode 100644
index 0000000..5ce2c81
@@ -0,0 +1,35 @@
+################################################################################
+#
+# gupnp-tools
+#
+################################################################################
+
+GUPNP_TOOLS_VERSION_MAJOR = 0.8
+GUPNP_TOOLS_VERSION = $(GUPNP_TOOLS_VERSION_MAJOR).12
+GUPNP_TOOLS_SOURCE = gupnp-tools-$(GUPNP_TOOLS_VERSION).tar.xz
+GUPNP_TOOLS_SITE = \
+	http://ftp.gnome.org/pub/gnome/sources/gupnp-tools/$(GUPNP_TOOLS_VERSION_MAJOR)
+GUPNP_TOOLS_LICENSE = LGPLv2+
+GUPNP_TOOLS_LICENSE_FILES = COPYING
+GUPNP_TOOLS_INSTALL_STAGING = YES
+GUPNP_TOOLS_DEPENDENCIES = \
+	host-pkgconf \
+	libglib2 \
+	libxml2 \
+	gssdp \
+	gupnp \
+	libsoup \
+	libgtk3
+
+ifeq ($(BR2_PACKAGE_GUPNP_AV),y)
+GUPNP_TOOLS_CONF_OPTS += --with-av
+GUPNP_TOOLS_DEPENDENCIES += gupnp-av
+else
+GUPNP_TOOLS_CONF_OPTS += --without-av
+endif
+
+ifeq ($(BR2_PACKAGE_GTKSOURCEVIEW),y)
+GUPNP_TOOLS_DEPENDENCIES += gtksourceview
+endif
+
+$(eval $(autotools-package))
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 gupnp-tools: new package

Hi Fabrice,

package/gupnp-tools/gupnp-tools.mk line 33

Quoted 3 lines · Fabrice Fontaine
package/gupnp-tools/gupnp-tools.mk new file +3 -0
+ifeq ($(BR2_PACKAGE_GTKSOURCEVIEW),y)
+GUPNP_TOOLS_DEPENDENCIES += gtksourceview
+endif

This makes you patch depend on the patch adding the gtksourceview package. So you should send both patches in a patch series, with the gtksourceview patch before this one. This makes the dependency between patches clearer, making the maintainers life easier.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -