mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Fabian Pfitzner <f.pfitzner@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Fabian Pfitzner <f.pfitzner@pengutronix.de>
Subject: [ptxdist] [PATCH 1/2] x264: new package
Date: Tue, 11 Nov 2025 17:53:20 +0100	[thread overview]
Message-ID: <20251111165320.3490682-2-f.pfitzner@pengutronix.de> (raw)

Signed-off-by: Fabian Pfitzner <f.pfitzner@pengutronix.de>
---
 rules/x264.in   |  7 ++++++
 rules/x264.make | 62 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)
 create mode 100644 rules/x264.in
 create mode 100644 rules/x264.make

diff --git a/rules/x264.in b/rules/x264.in
new file mode 100644
index 000000000..08f594b74
--- /dev/null
+++ b/rules/x264.in
@@ -0,0 +1,7 @@
+## SECTION=multimedia_libs
+
+config X264
+	bool
+	prompt "x264 encoder"
+	help
+	  Enable x264 encoder
diff --git a/rules/x264.make b/rules/x264.make
new file mode 100644
index 000000000..cc3f8d476
--- /dev/null
+++ b/rules/x264.make
@@ -0,0 +1,62 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2025 by Fabian Pfitzner <f.pfitzner@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_X264) += x264
+
+#
+# Paths and names
+#
+X264_VERSION	:= 2025-08-27-g31e19f92f00c7
+X264_MD5	:= 540aaf514c058f0c0ecbd63f70320783
+X264		:= x264-$(X264_VERSION)
+X264_SUFFIX	:= tar.gz
+X264_URL	:= https://code.videolan.org/videolan/x264/-/archive/$(X264_VERSION)/$(X264).$(X264_SUFFIX)
+X264_SOURCE	:= $(SRCDIR)/$(X264).$(X264_SUFFIX)
+X264_DIR	:= $(BUILDDIR)/$(X264)
+X264_LICENSE	:= GPL-2.0-only
+X264_LICENSE_FILES	:= file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+X264_CONF_ENV := \
+    $(CROSS_ENV) \
+    AS=$(CROSS_CC)
+
+X264_CONF_TOOL := autoconf
+X264_CONF_OPT := \
+    --host=$(patsubst aarch64-v8a%,aarch64% \
+	   ,$(patsubst arm-v7a%,arm% \
+           ,$(PTXCONF_GNU_TARGET))) \
+    --prefix=/usr \
+    --enable-shared
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/x264.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, x264)
+	@$(call install_fixup, x264,PRIORITY,optional)
+	@$(call install_fixup, x264,SECTION,base)
+	@$(call install_fixup, x264,AUTHOR,"Fabian Pfitzner <f.pfitzner@pengutronix.de>")
+	@$(call install_fixup, x264,DESCRIPTION,missing)
+
+	@$(call install_lib, x264, 0, 0, 0644, libx264)
+
+	@$(call install_finish, x264)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.47.3




             reply	other threads:[~2025-11-11 16:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-11 16:53 Fabian Pfitzner [this message]
2025-11-11 16:53 ` [ptxdist] [PATCH 2/2] gst-plugins-bad1: unbreak x264 plugin Fabian Pfitzner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251111165320.3490682-2-f.pfitzner@pengutronix.de \
    --to=f.pfitzner@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox