From patchwork Sun Jul 21 05:28:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Degawa X-Patchwork-Id: 50664 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:a742:0:b0:482:c625:d099 with SMTP id f2csp1389386vqm; Sat, 20 Jul 2024 22:36:49 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWtnD9qySxKlTfv/8HealJ+I8LaMmW5wWMHh1Ll44mTYcD2xNRmZ5y6PuHlF3McgivWG24d7yVVSdhGpn/ILgGBpZuNvA5zlPZj4Q== X-Google-Smtp-Source: AGHT+IFsNHNF8omYyHwqLsz5FyUeQxYl6OWMMBMHFpDgC7f069JCkwKlE5HIJrY2OWN9NhA1rNNR X-Received: by 2002:a17:907:7285:b0:a77:eb34:3b4b with SMTP id a640c23a62f3a-a7a4bfa4e6cmr217212766b.11.1721540209308; Sat, 20 Jul 2024 22:36:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721540209; cv=none; d=google.com; s=arc-20160816; b=xnw7ybflXGRHJJqp2gRcXzDfBj2UgGejsYZqEyIhPXNE0YhZ0W0y2ECuomjgioz091 rk7bYSKPZJXZmBMSxPzWZxHJAIPoQaDQS6fxV7XTOfk/8DjO0IjN+R5EJGpJpY7Fap13 E0o3FKPW/3u+HPj/Kvqiq3EO1NmWFg7kMqHZrG1MpIafu3IaA7hEqrroeL3dpqNU4kAN xfGufMmP2iIka4Mlxx39Gs1VOfVInzTqIkbfGWLEn0VVo3sH0Xe4X+rYG+coidSp6iT9 1iJtkzAsGpms7qyg/mNnD9S5Ld2MO4zcp9qcWd/chQbvULmChVs/pyt5fAbyIl9lwQMh vErA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=CT2FJiexTX8gYc8z4Io/n3zkFYF18QvbBRbZiZjxzH4=; fh=ey6poDwFEMdDdaN+ysMYnDpDqBZuUg8NgqVwWtTIOfU=; b=LYIaBQL73J5XIFDXLEauk9NlL8B8a4z28euj7lBmjaOmid5an+1lu4pjEbiaxNulbn xs43LUk8mPVzM2Gi6+fGbBkjgOgleQqrMoX+Dk+lMFFcfS41Xj6fGvLl+3x/ksgCLUdp XawFCsP94ShFNu5crCYiIVU5MS/D4BQeBr8zoV/v6uwFBrKd5FD8B0BoTkkc5KdS6w0D iS1bWFWbsmJGuCoLcaJwEqgNhjhbrbvH79jUFPFOLq9BzzkZn7F89N4txA6b5iKclq7F hj8W3czuxbzUBqPt+gE9GYVpLp4NCsl+dyPykwE7uVd0SMTax4YEVyJ9x6XmvwgkZQ+E huaw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@randomderp.com header.s=default header.b=uNulwMjX; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=randomderp.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a7a3c991671si219906966b.1028.2024.07.20.22.36.48; Sat, 20 Jul 2024 22:36:49 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@randomderp.com header.s=default header.b=uNulwMjX; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=randomderp.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C3C4C68D7A6; Sun, 21 Jul 2024 08:28:33 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from degawa.com (174-127-109-95.slc.westdc.net [174.127.109.95]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9DF1068D6D2 for ; Sun, 21 Jul 2024 08:28:27 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomderp.com; s=default; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=CSuKrKtvpeAvNBieH0WYsjDak/95Fvz7mFE4et3GPeE=; b=uNulwMjXbSgH7oKbzc9V5/rvDy +O7w64/aOcCBBxcawilWvKLy88BTehn2twN8ZnX1uPmrLMveCvRRssxxuLAyZ54rnZRtLse2274Fs ZwfZBfopYgXR1ZtjFoaZoCPJKfPZfplzlg2V8Tzn9xMHkZddk5/CvAZcor3TdImYiN+xbkfQUA28L tumgtcfZnSkS7LVZWyMd3H8jdrZKoojLcnmBJSVNazIWJnoeYAeJu3Il8ThidypCkoD1mrBnI9GgK jM0qDN4RIy3n7EtMcb50f4CzpYzeVLZRY53L6ZcPYYs0+gkVTq1X1VVTrB7k+nFm6KI5f2IadtW3J SLZ77iHQ==; Received: from 108-216-168-194.lightspeed.mmphtn.sbcglobal.net ([108.216.168.194]:6571 helo=localhost.localdomain) by slmp-550-1.slc.westdc.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1sVP7V-0000oU-39; Sat, 20 Jul 2024 23:28:26 -0600 From: Christopher Degawa To: ffmpeg-devel@ffmpeg.org Date: Sun, 21 Jul 2024 00:28:10 -0500 Message-ID: <20240721052810.2513330-1-ccom@randomderp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240721050333.2504407-1-ccom@randomderp.com> References: <20240721050333.2504407-1-ccom@randomderp.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - slmp-550-1.slc.westdc.net X-AntiAbuse: Original Domain - ffmpeg.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - randomderp.com X-Get-Message-Sender-Via: slmp-550-1.slc.westdc.net: authenticated_id: ccom/from_h X-Authenticated-Sender: slmp-550-1.slc.westdc.net: ccom@randomderp.com X-Source: X-Source-Args: X-Source-Dir: Subject: [FFmpeg-devel] [PATCH v2] codec2: use pkg-config file if it is available X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Christopher Degawa Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: B36I+BIcDT4V codec2.pc has been available since 2016, and I believe most distros have it by now. codec2-dev's commit: https://github.com/drowe67/codec2-dev/commit/fdfda67436b5b7308cf0758d9192f1dd540d439d Signed-off-by: Christopher Degawa --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index f6f5c29fea..bacbb1a557 100755 --- a/configure +++ b/configure @@ -6852,7 +6852,8 @@ enabled libcelt && require libcelt celt/celt.h celt_decode -lcelt0 && { check_lib libcelt celt/celt.h celt_decoder_create_custom -lcelt0 || die "ERROR: libcelt must be installed and version must be >= 0.11.0."; } enabled libcaca && require_pkg_config libcaca caca caca.h caca_create_canvas -enabled libcodec2 && require libcodec2 codec2/codec2.h codec2_create -lcodec2 +enabled libcodec2 && { check_pkg_config libcodec2 codec2 codec2.h codec2_create || + require libcodec2 codec2/codec2.h codec2_create -lcodec2; } enabled libdav1d && require_pkg_config libdav1d "dav1d >= 0.5.0" "dav1d/dav1d.h" dav1d_version enabled libdavs2 && require_pkg_config libdavs2 "davs2 >= 1.6.0" davs2.h davs2_decoder_open enabled libdc1394 && require_pkg_config libdc1394 libdc1394-2 dc1394/dc1394.h dc1394_new