From patchwork Mon Jul 6 01:04:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1323215 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=MKuwihPi; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B0S6532p1z9s1x for ; Mon, 6 Jul 2020 11:05:00 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7749086FAF; Mon, 6 Jul 2020 01:04:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HoNzpxg4SM0y; Mon, 6 Jul 2020 01:04:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4E8A686A72; Mon, 6 Jul 2020 01:04:54 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B72071BF2C7 for ; Mon, 6 Jul 2020 01:04:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B2A6F87CB8 for ; Mon, 6 Jul 2020 01:04:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e6UIIJ8bsQO5 for ; Mon, 6 Jul 2020 01:04:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) by whitealder.osuosl.org (Postfix) with ESMTPS id F345787CA3 for ; Mon, 6 Jul 2020 01:04:50 +0000 (UTC) Received: by mail-io1-f52.google.com with SMTP id f23so37674372iof.6 for ; Sun, 05 Jul 2020 18:04:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ur8+Xpu8QgQXLouArqIjykyxL4ixYMltJzusdvSjmh8=; b=MKuwihPiGyA7XHiqhWLYWB53EmsBF0oTVEkyfHtL3E6wcjgzN9yFhyEdeXstqrChxP om/mkVo2XxKSsTk2SiGomti2bw0qYkusA/qyoOq95lt7RtxNgFiauiNAg6LcsTQFnsbx V9ioMonrWtts5Ynh7FVFOR9PQZGQaHoZW7tf3jDuETjATqYBCeoJJdAAow9IQUUOBt0b /VG41CKclJN92WtkHQjiNXyVB7JTogB6jUYKrAP9fJQwX/quHPReE7zQBNv+05Jk/+Ku mDD6g+lKb79j66hzotDOsEUIMHhcRLBYd8V8lfxxM0c8D4pYwzPMbdIyiF0SqoWw6AL5 58RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ur8+Xpu8QgQXLouArqIjykyxL4ixYMltJzusdvSjmh8=; b=Er3/Gxn0DrQwS6k1mzUQtbERBq+o+UapLsv+rQJL3T3HGwidjPlGUz7dzHreTub6oh 8lVJXGfurCV5ZwV3PH/Jy+E89CsezuDsflYduIjesugpfUvDRa9eRRusY+a2aCvmz/bd wQn12rjiNcK4ouQlXPFQnJD6KgDOVJq2rHSXs2fxjGKS9EF090LoAglZdKEEsHNjitQF F6zbiSRHQ+hOb2Bw8DRHI3vm/Y/2/+hL7Ag0YhGVUneTgAfp6fYvmTSbGgAih6+KKgCE HzzgEKJaL06Cd4Ughaw0ctF++aqrtgsKpaPSD4DY+AjfctAFKRWbPUOEgOaEmH0hfgKd dVtw== X-Gm-Message-State: AOAM533twoSUhR4rHu0AwHkkvdsfx6e/wqVpOTRlCnUTLrw9h8e8BMGa 2F2cqw3fqfBckT13xPuWBIY4/qZy X-Google-Smtp-Source: ABdhPJwIByMD4UTyi18Scu9vF1QaG6haphtqgP8Z3mzjBo6V0qi0OOH3k88OJAnHMRyLyJq84UDSpg== X-Received: by 2002:a05:6602:164f:: with SMTP id y15mr23454290iow.210.1593997489795; Sun, 05 Jul 2020 18:04:49 -0700 (PDT) Received: from james-x399.localdomain (71-218-100-23.hlrn.qwest.net. [71.218.100.23]) by smtp.gmail.com with ESMTPSA id s5sm7215281ilo.24.2020.07.05.18.04.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jul 2020 18:04:49 -0700 (PDT) From: James Hilliard To: buildroot@buildroot.org Date: Sun, 5 Jul 2020 19:04:44 -0600 Message-Id: <20200706010444.537633-1-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/pipewire: bump to version 0.3.6 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: James Hilliard Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add pipewire optional dependencies/configurations. Remove BR2_PACKAGE_PIPEWIRE_GSTREAMER config option and enable automatically based on dependencies to avoid recursive dependency error caused by the gobject-introspection python3 dependency. Signed-off-by: James Hilliard --- Config.in.legacy | 10 +++ package/pipewire/Config.in | 27 +------- package/pipewire/pipewire.hash | 6 +- package/pipewire/pipewire.mk | 114 +++++++++++++++++++++++++++------ 4 files changed, 110 insertions(+), 47 deletions(-) diff --git a/Config.in.legacy b/Config.in.legacy index 7a5435188b..4541acc979 100644 --- a/Config.in.legacy +++ b/Config.in.legacy @@ -146,6 +146,16 @@ endif comment "Legacy options removed in 2020.08" +config BR2_PACKAGE_PIPEWIRE_GSTREAMER + bool "pipewire gstreamer option removed" + select BR2_LEGACY + select BR2_PACKAGE_GOBJECT_INTROSPECTION + select BR2_PACKAGE_GSTREAMER1 + select BR2_PACKAGE_GST1_PLUGINS_BASE + help + This option is now automatically selected when the required + dependencies are present. + config BR2_BINUTILS_VERSION_2_31_X bool "binutils version 2.31.1 support removed" select BR2_LEGACY diff --git a/package/pipewire/Config.in b/package/pipewire/Config.in index 57e70d65f8..9b8416e27a 100644 --- a/package/pipewire/Config.in +++ b/package/pipewire/Config.in @@ -1,9 +1,7 @@ config BR2_PACKAGE_PIPEWIRE bool "pipewire" - depends on BR2_PACKAGE_HAS_UDEV # libudev - depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, alsa-lib + depends on BR2_TOOLCHAIN_HAS_THREADS # dbus depends on BR2_USE_MMU # dbus - select BR2_PACKAGE_ALSA_LIB select BR2_PACKAGE_DBUS help PipeWire is a server and user space API to deal with @@ -11,25 +9,6 @@ config BR2_PACKAGE_PIPEWIRE https://pipewire.org/ -if BR2_PACKAGE_PIPEWIRE - -config BR2_PACKAGE_PIPEWIRE_GSTREAMER - bool "pipewire gstreamer plugins" - depends on BR2_USE_WCHAR # libglib2 - depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2 - depends on BR2_USE_MMU # libglib2 - select BR2_PACKAGE_LIBGLIB2 - select BR2_PACKAGE_GSTREAMER1 - select BR2_PACKAGE_GST1_PLUGINS_BASE - help - Build GStreamer plugins - -comment "pipewire gstreamer support needs a toolchain w/ wchar, threads" - depends on BR2_USE_MMU - depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS - -endif - -comment "pipewire needs udev and a toolchain w/ threads" +comment "pipewire needs a toolchain w/ threads" depends on BR2_USE_MMU - depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/pipewire/pipewire.hash b/package/pipewire/pipewire.hash index 81c53867e2..bce319dda7 100644 --- a/package/pipewire/pipewire.hash +++ b/package/pipewire/pipewire.hash @@ -1,4 +1,4 @@ # Locally calculated -sha256 bfaa0f6ae6c0791e2e0b59234d399753bf24f1b33dbf587682363a8463dd8df1 pipewire-0.2.7.tar.gz -sha256 88c0ca786c735a11e0eb508196d3aa1389fbaacb8d5de9adb5ccb15bcd4009d9 LICENSE -sha256 a9bdde5616ecdd1e980b44f360600ee8783b1f99b8cc83a2beb163a0a390e861 LGPL +sha256 927301640f87d68e52f4480667977bc6f47186ee7877f7aa86ce9172ff144edc pipewire-0.3.6.tar.gz +sha256 8909c319a7e27dbb33a15b9035f89ab3b7b2f6a12f8bcddc755206a8db1ada44 COPYING +sha256 7db6138b0385e260ae8f09f050ea66c4e4fe775a11060d7f6ca2beb47f192d6f LICENSE diff --git a/package/pipewire/pipewire.mk b/package/pipewire/pipewire.mk index df159c5ef4..14670976f6 100644 --- a/package/pipewire/pipewire.mk +++ b/package/pipewire/pipewire.mk @@ -4,45 +4,119 @@ # ################################################################################ -PIPEWIRE_VERSION = 0.2.7 +PIPEWIRE_VERSION = 0.3.6 PIPEWIRE_SITE = $(call github,PipeWire,pipewire,$(PIPEWIRE_VERSION)) -PIPEWIRE_LICENSE = LGPL-2.1+ -PIPEWIRE_LICENSE_FILES = LICENSE LGPL +PIPEWIRE_LICENSE = MIT +PIPEWIRE_LICENSE_FILES = COPYING LICENSE PIPEWIRE_INSTALL_STAGING = YES -PIPEWIRE_DEPENDENCIES = host-pkgconf alsa-lib dbus udev +PIPEWIRE_DEPENDENCIES = host-pkgconf dbus -ifeq ($(BR2_PACKAGE_FFMPEG),y) -PIPEWIRE_DEPENDENCIES += ffmpeg +PIPEWIRE_CONF_OPTS += \ + -Ddocs=false \ + -Dexamples=false \ + -Dman=false \ + -Dtests=false \ + -Dspa-plugins=true \ + -Daudiomixer=true \ + -Daudioconvert=true \ + -Dcontrol=true \ + -Daudiotestsrc=true \ + -Dsupport=true \ + -Devl=false \ + -Dtest=false \ + -Dvideoconvert=true \ + -Dvideotestsrc=true \ + -Dvolume=true + +ifeq ($(BR2_PACKAGE_VALGRIND),y) +PIPEWIRE_DEPENDENCIES += valgrind endif -ifeq ($(BR2_PACKAGE_LIBVA),y) -PIPEWIRE_DEPENDENCIES += libva +ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION)$(BR2_PACKAGE_GST1_PLUGINS_BASE),yy) +PIPEWIRE_CONF_OPTS += -Dgstreamer=true +PIPEWIRE_DEPENDENCIES += gobject-introspection gst1-plugins-base +else +PIPEWIRE_CONF_OPTS += -Dgstreamer=false +endif + +ifeq ($(BR2_PACKAGE_SYSTEMD),y) +PIPEWIRE_CONF_OPTS += -Dsystemd=true +PIPEWIRE_DEPENDENCIES += systemd +else +PIPEWIRE_CONF_OPTS += -Dsystemd=false endif -ifeq ($(BR2_PACKAGE_SBC),y) -PIPEWIRE_DEPENDENCIES += sbc +ifeq ($(BR2_PACKAGE_ALSA_LIB),y) +PIPEWIRE_CONF_OPTS += -Dpipewire-alsa=true +PIPEWIRE_DEPENDENCIES += alsa-lib +else +PIPEWIRE_CONF_OPTS += -Dpipewire-alsa=false endif +ifeq ($(BR2_PACKAGE_JACK2),y) +PIPEWIRE_CONF_OPTS += -Dpipewire-jack=true -Djack=true +PIPEWIRE_DEPENDENCIES += jack2 ifeq ($(BR2_PACKAGE_SDL2),y) PIPEWIRE_DEPENDENCIES += sdl2 endif +else +PIPEWIRE_CONF_OPTS += -Dpipewire-jack=false -Djack=false +endif -ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y) -PIPEWIRE_DEPENDENCIES += xlib_libX11 +ifeq ($(BR2_PACKAGE_LIBGLIB2)$(BR2_PACKAGE_PULSEAUDIO),yy) +PIPEWIRE_CONF_OPTS += -Dpipewire-pulseaudio=true +PIPEWIRE_DEPENDENCIES += libglib2 pulseaudio +else +PIPEWIRE_CONF_OPTS += -Dpipewire-pulseaudio=false endif -ifeq ($(BR2_PACKAGE_PIPEWIRE_GSTREAMER),y) -PIPEWIRE_CONF_OPTS += -Dgstreamer=enabled -PIPEWIRE_DEPENDENCIES += libglib2 gstreamer1 gst1-plugins-base +ifeq ($(BR2_PACKAGE_ALSA_LIB)$(BR2_PACKAGE_HAS_UDEV),yy) +PIPEWIRE_CONF_OPTS += -Dalsa=true +PIPEWIRE_DEPENDENCIES += alsa-lib udev else -PIPEWIRE_CONF_OPTS += -Dgstreamer=disabled +PIPEWIRE_CONF_OPTS += -Dalsa=false endif -ifeq ($(BR2_PACKAGE_SYSTEMD),y) -PIPEWIRE_CONF_OPTS += -Dsystemd=true -PIPEWIRE_DEPENDENCIES += systemd +ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS)$(BR2_PACKAGE_SBC),yy) +PIPEWIRE_CONF_OPTS += -Dbluez5=true +PIPEWIRE_DEPENDENCIES += bluez5_utils sbc else -PIPEWIRE_CONF_OPTS += -Dsystemd=false +PIPEWIRE_CONF_OPTS += -Dbluez5=false +endif + +ifeq ($(BR2_PACKAGE_FFMPEG),y) +PIPEWIRE_CONF_OPTS += -Dffmpeg=true +PIPEWIRE_DEPENDENCIES += ffmpeg +else +PIPEWIRE_CONF_OPTS += -Dffmpeg=false +endif + +ifeq ($(BR2_PACKAGE_HAS_UDEV),y) +PIPEWIRE_CONF_OPTS += -Dv4l2=true +PIPEWIRE_DEPENDENCIES += udev +else +PIPEWIRE_CONF_OPTS += -Dv4l2=false +endif + +ifeq ($(BR2_PACKAGE_LIBCAMERA)$(BR2_PACKAGE_HAS_UDEV),yy) +PIPEWIRE_CONF_OPTS += -Dlibcamera=true +PIPEWIRE_DEPENDENCIES += libcamera udev +else +PIPEWIRE_CONF_OPTS += -Dlibcamera=false +endif + +ifeq ($(BR2_PACKAGE_MESA3D_VULKAN_DRIVER),y) +PIPEWIRE_CONF_OPTS += -Dvulkan=true +PIPEWIRE_DEPENDENCIES += mesa3d +else +PIPEWIRE_CONF_OPTS += -Dvulkan=false +endif + +ifeq ($(BR2_PACKAGE_LIBSNDFILE),y) +PIPEWIRE_CONF_OPTS += -Dpw-cat=true +PIPEWIRE_DEPENDENCIES += libsndfile +else +PIPEWIRE_CONF_OPTS += -Dpw-cat=false endif $(eval $(meson-package))