All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/freerdp: add h264 support
@ 2019-04-04 13:08 Alexey Lukyanchuk
  2019-04-04 21:23 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Lukyanchuk @ 2019-04-04 13:08 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Alexey Lukyanchuk <skif@skif-web.ru>
---
 package/freerdp/Config.in  | 7 +++++++
 package/freerdp/freerdp.mk | 5 +++++
 2 files changed, 12 insertions(+)

diff --git a/package/freerdp/Config.in b/package/freerdp/Config.in
index 59bc18b672..6c2802e673 100644
--- a/package/freerdp/Config.in
+++ b/package/freerdp/Config.in
@@ -59,6 +59,13 @@ comment "gstreamer support needs X.Org"
 	depends on !BR2_PACKAGE_XORG7
 	depends on BR2_PACKAGE_GSTREAMER || BR2_PACKAGE_GSTREAMER1
 
+config BR2_PACKAGE_FREERDP_H264
+        bool "h264 support"
+        depends on BR2_PACKAGE_X264
+        default y
+        help
+                h264 codec support for freerdp
+
 config BR2_PACKAGE_FREERDP_SERVER
 	bool "server"
 	depends on BR2_PACKAGE_XORG7
diff --git a/package/freerdp/freerdp.mk b/package/freerdp/freerdp.mk
index 91e4ae47ee..6aea6a309f 100644
--- a/package/freerdp/freerdp.mk
+++ b/package/freerdp/freerdp.mk
@@ -14,6 +14,11 @@ FREERDP_INSTALL_STAGING = YES
 
 FREERDP_CONF_OPTS = -DWITH_MANPAGES=OFF -Wno-dev
 
+ifeq ($(BR2_PACKAGE_FREERDP_H264),y)
+       FREERDP_CONF_OPTS += -DWITH_GFX_H264=ON
+       FREERDP_DEPENDENCIES += x264
+endif
+
 ifeq ($(BR2_PACKAGE_FREERDP_GSTREAMER),y)
 FREERDP_CONF_OPTS += -DWITH_GSTREAMER_0_10=ON
 FREERDP_DEPENDENCIES += gstreamer gst-plugins-base libxml2
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] package/freerdp: add h264 support
  2019-04-04 13:08 [Buildroot] [PATCH 1/1] package/freerdp: add h264 support Alexey Lukyanchuk
@ 2019-04-04 21:23 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-04-04 21:23 UTC (permalink / raw)
  To: buildroot

Hello Alexey,

Thanks for your contribution!

On Thu,  4 Apr 2019 16:08:54 +0300
Alexey Lukyanchuk <skif@skif-web.ru> wrote:

> +config BR2_PACKAGE_FREERDP_H264
> +        bool "h264 support"
> +        depends on BR2_PACKAGE_X264
> +        default y
> +        help
> +                h264 codec support for freerdp
> +

I think we would prefer to handle it like cups or ffmpeg, i.e as
"automatic dependencies", without an explicit Config.in option.

> +ifeq ($(BR2_PACKAGE_FREERDP_H264),y)
> +       FREERDP_CONF_OPTS += -DWITH_GFX_H264=ON
> +       FREERDP_DEPENDENCIES += x264
> +endif

i.e, make this:

ifeq ($(BR2_PACKAGE_X264),y)
FREERDP_CONF_OPTS += -DWITH_GFX_H264=ON
FREERDP_DEPENDENCIES += x264
else
FREERDP_CONF_OPTS += -DWITH_GFX_H264=OFF
endif

Could you rework your patch accordingly and send an updated version?

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-04 21:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-04 13:08 [Buildroot] [PATCH 1/1] package/freerdp: add h264 support Alexey Lukyanchuk
2019-04-04 21:23 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.