From patchwork Tue Jan 1 17:33:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Heinrich X-Patchwork-Id: 1019784 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=adamh.cz Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43ThS46Byyz9rxp for ; Wed, 2 Jan 2019 04:46:12 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id AA5CC2276C; Tue, 1 Jan 2019 17:46:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fd80B-bWzVq3; Tue, 1 Jan 2019 17:46:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 30214226B7; Tue, 1 Jan 2019 17:46:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id E91721C0C57 for ; Tue, 1 Jan 2019 17:46:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E60E385C8C for ; Tue, 1 Jan 2019 17:46:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G9t8Bl7+dEQv for ; Tue, 1 Jan 2019 17:46:06 +0000 (UTC) X-Greylist: delayed 00:12:17 by SQLgrey-1.7.6 Received: from icewarp.savana.cz (smtp.savana.cz [217.16.187.41]) by hemlock.osuosl.org (Postfix) with ESMTPS id 04AA0824A4 for ; Tue, 1 Jan 2019 17:46:05 +0000 (UTC) Received: from localhost.localdomain ([188.226.141.160]) by icewarp.savana.cz (IceWarp 11.2.1.1 RHEL6 x64) with ASMTP (SSL) id 201901011833440342; Tue, 01 Jan 2019 18:33:44 +0100 From: Adam Heinrich To: buildroot@buildroot.org Date: Tue, 1 Jan 2019 18:33:41 +0100 Message-Id: <20190101173342.3565-1-adam@adamh.cz> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH 1/2] jack1: new package 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: "Wojciech M . Zabolotny" MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patch adds a new jack1 package alongside the existing jack2. While jack1 and jack2 are two equivalent implementations of the same protocol, they differ in a few details and both of them are being actively used (jack2 is not considered to be a replacement of jack1). For more information, see: https://github.com/jackaudio/jackaudio.github.com/wiki/Q_difference_jack1_jack2 Signed-off-by: Adam Heinrich --- package/Config.in | 1 + package/jack1/Config.in | 36 ++++++++++++++++++++++++++++++++++++ package/jack1/jack1.hash | 5 +++++ package/jack1/jack1.mk | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 78 insertions(+) create mode 100644 package/jack1/Config.in create mode 100644 package/jack1/jack1.hash create mode 100644 package/jack1/jack1.mk diff --git a/package/Config.in b/package/Config.in index 0df9b73088..ad8070f54c 100644 --- a/package/Config.in +++ b/package/Config.in @@ -25,6 +25,7 @@ menu "Audio and video applications" source "package/gmrender-resurrect/Config.in" source "package/gstreamer/Config.in" source "package/gstreamer1/Config.in" + source "package/jack1/Config.in" source "package/jack2/Config.in" source "package/kodi/Config.in" source "package/lame/Config.in" diff --git a/package/jack1/Config.in b/package/jack1/Config.in new file mode 100644 index 0000000000..bedd3ec449 --- /dev/null +++ b/package/jack1/Config.in @@ -0,0 +1,36 @@ +config BR2_PACKAGE_JACK1 + bool "jack1" + depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib + depends on BR2_USE_MMU # fork() + depends on !BR2_STATIC_LIBS + depends on BR2_TOOLCHAIN_HAS_SYNC_4 + select BR2_PACKAGE_BERKELEYDB + select BR2_PACKAGE_LIBSAMPLERATE + select BR2_PACKAGE_LIBSNDFILE + select BR2_PACKAGE_ALSA_LIB + select BR2_PACKAGE_ALSA_LIB_HWDEP + select BR2_PACKAGE_ALSA_LIB_SEQ + select BR2_PACKAGE_ALSA_LIB_RAWMIDI + help + JACK Audio Connection Kit (JACK 1 implementation). + + JACK is a low-latency sound server, allowing multiple + applications to connect to one audio device, and to share + audio between themselves. This package contains the daemon + jackd as well as some example clients. + + http://jackaudio.org/ + + Another implementation (BR2_PACKAGE_JACK2) is also available, + please consult the documentation to choose the right one: + + https://github.com/jackaudio/jackaudio.github.com/wiki/Q_difference_jack1_jack2 + +comment "jack1 needs a toolchain w/ threads, dynamic library" + depends on BR2_USE_MMU + depends on BR2_TOOLCHAIN_HAS_SYNC_4 + depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS + +comment "do not enable jack1 and jack2 together" + depends on BR2_PACKAGE_JACK1 + depends on BR2_PACKAGE_JACK2 diff --git a/package/jack1/jack1.hash b/package/jack1/jack1.hash new file mode 100644 index 0000000000..06458180f0 --- /dev/null +++ b/package/jack1/jack1.hash @@ -0,0 +1,5 @@ +# Locally computed +sha256 c811826f2993d4f0245b0ee92e9d305d0b67990cea08a2c5f9b21a5d65939a82 jack1-0.125.0.tar.gz +sha256 661fe53a7e3fce790b185e35c60b7ed80d7efdf25fd7df5af6814a9a215a538f COPYING +sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING.GPL +sha256 ad01ea5cd2755f6048383c8d54c88459cd6fcb17757c5c8892f8c5ea060f6140 COPYING.LGPL diff --git a/package/jack1/jack1.mk b/package/jack1/jack1.mk new file mode 100644 index 0000000000..b346839393 --- /dev/null +++ b/package/jack1/jack1.mk @@ -0,0 +1,36 @@ +################################################################################ +# +# jack1 +# +################################################################################ + +JACK1_VERSION = 0.125.0 +# Do not use the official release link nor the github helper because +# the archive contains empty directories (uninitialized submodules): +JACK1_SITE = https://github.com/jackaudio/jack1.git +JACK1_SITE_METHOD = git +JACK1_GIT_SUBMODULES = YES +JACK1_LICENSE = GPL-2.0+ (jack server), LGPL-2.1+ (jack library) +JACK1_LICENSE_FILES = COPYING COPYING.GPL COPYING.LGPL +JACK1_INSTALL_STAGING = YES +JACK1_AUTORECONF = YES +JACK1_CONF_OPTS = --without-html-dir --disable-oss +JACK1_DEPENDENCIES = berkeleydb libsamplerate libsndfile alsa-lib + +ifeq ($(BR2_PACKAGE_OPUS),y) +JACK1_DEPENDENCIES += opus +endif + +ifeq ($(BR2_PACKAGE_READLINE),y) +JACK1_DEPENDENCIES += readline +endif + +# Dependency to celt can't be met: jack1 requires celt >= 0.8.0 but we +# only have 0.5.1.3 and we cannot upgrade. + +define JACK1_RUN_AUTOGEN + (cd $(@D); $(TARGET_CONFIGURE_OPTS) ./autogen.sh) +endef +JACK1_PRE_CONFIGURE_HOOKS += JACK1_RUN_AUTOGEN + +$(eval $(autotools-package))