From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 05 Sep 2025 16:48:28 +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 1uuXjo-008TaL-1y for lore@lore.pengutronix.de; Fri, 05 Sep 2025 16:48:28 +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 1uuXjn-0005Wa-Py; Fri, 05 Sep 2025 16:48:27 +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 1uuXjY-0005WM-SB; Fri, 05 Sep 2025 16:48:12 +0200 From: Fabian Pfitzner To: ptxdist@pengutronix.de Date: Fri, 5 Sep 2025 16:44:24 +0200 Message-ID: <20250905144424.620258-2-f.pfitzner@pengutronix.de> X-Mailer: git-send-email 2.47.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH 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 | 54 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 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..032636d09 --- /dev/null +++ b/rules/openh264.make @@ -0,0 +1,54 @@ +# -*-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 := GPL-2.0-or-later + +# ---------------------------------------------------------------------------- +# 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.2