* [Buildroot] [PATCH v3] gupnp-dlna: new package
@ 2016-07-28 8:12 Fabrice Fontaine
2016-07-30 13:36 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2016-07-28 8:12 UTC (permalink / raw)
To: buildroot
GUPnP DLNA is a small utility library that aims to ease the
DLNA-related tasks such as media profile guessing, transcoding
to a given profile, etc.
http://www.gupnp.org/
Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
---
Changes v2 -> v3:
- Remove # before else
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Remove unneeded dependency on gupnp
- Add a comment on LICENSE (COPYING contains LGPLv2.1 but source files
contain LGPLv2+
- Use += instead of = to set GUPNP_DLNA_CONF_OPTS
- Disable explicity legacy gstreamer through
--disable-legacy-gstreamer-metadata-backend if
BR2_PACKAGE_GST_PLUGINS_BASE is not set
- Enable or disable explicity gstreamer through
--xxx-gstreamer-metadata-backend depending on the value of
BR2_PACKAGE_GST1_PLUGINS_BASE
package/Config.in | 1 +
package/gupnp-dlna/Config.in | 17 +++++++++++++++++
package/gupnp-dlna/gupnp-dlna.hash | 2 ++
package/gupnp-dlna/gupnp-dlna.mk | 32 ++++++++++++++++++++++++++++++++
4 files changed, 52 insertions(+)
create mode 100644 package/gupnp-dlna/Config.in
create mode 100644 package/gupnp-dlna/gupnp-dlna.hash
create mode 100644 package/gupnp-dlna/gupnp-dlna.mk
diff --git a/package/Config.in b/package/Config.in
index 3563870..ab9c42f 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1162,6 +1162,7 @@ menu "Networking"
source "package/gssdp/Config.in"
source "package/gupnp/Config.in"
source "package/gupnp-av/Config.in"
+ source "package/gupnp-dlna/Config.in"
source "package/ibrcommon/Config.in"
source "package/ibrdtn/Config.in"
source "package/libcgi/Config.in"
diff --git a/package/gupnp-dlna/Config.in b/package/gupnp-dlna/Config.in
new file mode 100644
index 0000000..a0ecdb3
--- /dev/null
+++ b/package/gupnp-dlna/Config.in
@@ -0,0 +1,17 @@
+config BR2_PACKAGE_GUPNP_DLNA
+ bool "gupnp-dlna"
+ depends on BR2_USE_WCHAR # glib2
+ depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
+ depends on BR2_USE_MMU # glib2
+ select BR2_PACKAGE_LIBGLIB2
+ select BR2_PACKAGE_LIBXML2
+ help
+ GUPnP DLNA is a small utility library that aims to ease the
+ DLNA-related tasks such as media profile guessing, transcoding
+ to a given profile, etc.
+
+ http://www.gupnp.org/
+
+comment "gupnp-dlna needs a toolchain w/ wchar, threads"
+ depends on BR2_USE_MMU
+ depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/gupnp-dlna/gupnp-dlna.hash b/package/gupnp-dlna/gupnp-dlna.hash
new file mode 100644
index 0000000..c28a06f
--- /dev/null
+++ b/package/gupnp-dlna/gupnp-dlna.hash
@@ -0,0 +1,2 @@
+# Hash from: http://ftp.gnome.org/pub/gnome/sources/gupnp-dlna/0.10/gupnp-dlna-0.10.5.sha256sum:
+sha256 123e368227c11d5c17fc1aa76cbdaffa345355eb51d172cd39fc74a5b468ff6a gupnp-dlna-0.10.5.tar.xz
diff --git a/package/gupnp-dlna/gupnp-dlna.mk b/package/gupnp-dlna/gupnp-dlna.mk
new file mode 100644
index 0000000..58b5735
--- /dev/null
+++ b/package/gupnp-dlna/gupnp-dlna.mk
@@ -0,0 +1,32 @@
+################################################################################
+#
+# gupnp-dlna
+#
+################################################################################
+
+GUPNP_DLNA_VERSION_MAJOR = 0.10
+GUPNP_DLNA_VERSION = $(GUPNP_DLNA_VERSION_MAJOR).5
+GUPNP_DLNA_SOURCE = gupnp-dlna-$(GUPNP_DLNA_VERSION).tar.xz
+GUPNP_DLNA_SITE = \
+ http://ftp.gnome.org/pub/gnome/sources/gupnp-dlna/$(GUPNP_DLNA_VERSION_MAJOR)
+# COPYING contains LGPLv2.1 but all source files contain LPGLv2+
+GUPNP_DLNA_LICENSE = LGPLv2+
+GUPNP_DLNA_LICENSE_FILES = COPYING
+GUPNP_DLNA_INSTALL_STAGING = YES
+GUPNP_DLNA_DEPENDENCIES = host-pkgconf libglib2 libxml2
+
+ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE),y)
+GUPNP_DLNA_CONF_OPTS += --enable-legacy-gstreamer-metadata-backend
+GUPNP_DLNA_DEPENDENCIES += gstreamer gst-plugins-base
+else
+GUPNP_DLNA_CONF_OPTS += --disable-legacy-gstreamer-metadata-backend
+endif
+
+ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE),y)
+GUPNP_DLNA_CONF_OPTS += --enable-gstreamer-metadata-backend
+GUPNP_DLNA_DEPENDENCIES += gstreamer1 gst1-plugins-base
+else
+GUPNP_DLNA_CONF_OPTS += --disable-gstreamer-metadata-backend
+endif
+
+$(eval $(autotools-package))
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH v3] gupnp-dlna: new package
2016-07-28 8:12 [Buildroot] [PATCH v3] gupnp-dlna: new package Fabrice Fontaine
@ 2016-07-30 13:36 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-07-30 13:36 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 28 Jul 2016 10:12:38 +0200, Fabrice Fontaine wrote:
> GUPnP DLNA is a small utility library that aims to ease the
> DLNA-related tasks such as media profile guessing, transcoding
> to a given profile, etc.
>
> http://www.gupnp.org/
>
> Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
> ---
> Changes v2 -> v3:
> - Remove # before else
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-30 13:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-28 8:12 [Buildroot] [PATCH v3] gupnp-dlna: new package Fabrice Fontaine
2016-07-30 13:36 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox