From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 21 Oct 2025 16:53:45 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vBDk9-00AHhx-0q for lore@lore.pengutronix.de; Tue, 21 Oct 2025 16:53:45 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1vBDk9-0001hF-0q; Tue, 21 Oct 2025 16:53:45 +0200 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1vBDk1-0001Zc-0Y; Tue, 21 Oct 2025 16:53:37 +0200 From: Fabian Pfitzner To: ptxdist@pengutronix.de Date: Tue, 21 Oct 2025 16:53:12 +0200 Message-ID: <20251021145312.1272182-4-f.pfitzner@pengutronix.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251021145312.1272182-2-f.pfitzner@pengutronix.de> References: <20251021145312.1272182-2-f.pfitzner@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH v3 1/2] openh264: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Fabian Pfitzner Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Signed-off-by: Fabian Pfitzner --- rules/openh264.in | 8 +++++++ rules/openh264.make | 55 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 rules/openh264.in create mode 100644 rules/openh264.make diff --git a/rules/openh264.in b/rules/openh264.in new file mode 100644 index 000000000..069cd22d2 --- /dev/null +++ b/rules/openh264.in @@ -0,0 +1,8 @@ +## SECTION=multimedia_libs + +config OPENH264 + bool + prompt "openh264" + select HOST_MESON + help + Enable OpenH264 codec diff --git a/rules/openh264.make b/rules/openh264.make new file mode 100644 index 000000000..f61430d06 --- /dev/null +++ b/rules/openh264.make @@ -0,0 +1,55 @@ +# -*-makefile-*- +# +# Copyright (C) 2025 by Fabian Pfitzner +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_OPENH264) += openh264 + +# +# Paths and names +# +OPENH264_VERSION := 2.6.0 +OPENH264_MD5 := 0b01f0279eca1c7bb65395ea350fa85c +OPENH264 := OpenH264-$(OPENH264_VERSION) +OPENH264_SUFFIX := tar.gz +OPENH264_URL := https://github.com/cisco/openh264/archive/refs/tags/v$(OPENH264_VERSION).$(OPENH264_SUFFIX) +OPENH264_SOURCE := $(SRCDIR)/$(OPENH264).$(OPENH264_SUFFIX) +OPENH264_DIR := $(BUILDDIR)/$(OPENH264) +OPENH264_LICENSE := BSD 2-Clause +OPENH264_LICENSE_FILES := file://LICENSE;md5=bb6d3771da6a07d33fd50d4d9aa73bcf + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +OPENH264_CONF_TOOL := meson +OPENH264_CONF_OPT := \ + $(CROSS_MESON_USR) \ + -Dtests=disabled + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/openh264.targetinstall: + @$(call targetinfo) + + @$(call install_init, openh264) + @$(call install_fixup, openh264,PRIORITY,optional) + @$(call install_fixup, openh264,SECTION,base) + @$(call install_fixup, openh264,AUTHOR,"Fabian Pfitzner ") + @$(call install_fixup, openh264,DESCRIPTION,missing) + + @$(call install_lib, openh264, 0, 0, 0644, libopenh264) + + @$(call install_finish, openh264) + + @$(call touch) + +# vim: syntax=make -- 2.47.3