mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2] Add drm_info package
@ 2025-03-13 14:41 Benjamin Gaignard
  0 siblings, 0 replies; only message in thread
From: Benjamin Gaignard @ 2025-03-13 14:41 UTC (permalink / raw)
  To: ptxdist; +Cc: Benjamin Gaignard

Add package for drm_info which is a small utility to dump
info about DRM devices.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
---
- Use ptxdist newpackage to get a valid template
- Add HOST_SYSTEM_PYTHON3
- Add -Dlibpci=disabled and -Dman-pages=disabled in config options
- Add LICENSE file md5sum
- Add header for targetinstall
- Drop install stage

 rules/drm_info.in   | 11 +++++++++
 rules/drm_info.make | 55 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)
 create mode 100644 rules/drm_info.in
 create mode 100644 rules/drm_info.make

diff --git a/rules/drm_info.in b/rules/drm_info.in
new file mode 100644
index 000000000..3916e29a6
--- /dev/null
+++ b/rules/drm_info.in
@@ -0,0 +1,11 @@
+## SECTION=multimedia_tools
+
+config DRM_INFO
+	tristate
+	select HOST_MESON
+	select HOST_SYSTEM_PYTHON3
+	select LIBDRM
+	select JSON_C
+	prompt "drm_info"
+	help
+	  Small utility to dump info about DRM devices.
diff --git a/rules/drm_info.make b/rules/drm_info.make
new file mode 100644
index 000000000..5a0e3541e
--- /dev/null
+++ b/rules/drm_info.make
@@ -0,0 +1,55 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2025 by <benjamin.gaignard@collabora.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_DRM_INFO) += drm_info
+
+#
+# Paths and names
+#
+DRM_INFO_VERSION	:= 2.7.0
+DRM_INFO_MD5		:= 0066f5d02007b712d7b21a89e89785ba
+DRM_INFO		:= drm_info-v$(DRM_INFO_VERSION)
+DRM_INFO_SUFFIX		:= tar.bz2
+DRM_INFO_URL		:= https://gitlab.freedesktop.org/emersion/drm_info/-/archive//$(DRM_INFO).$(DRM_INFO_SUFFIX)
+DRM_INFO_SOURCE		:= $(SRCDIR)/$(DRM_INFO).$(DRM_INFO_SUFFIX)
+DRM_INFO_DIR		:= $(BUILDDIR)/$(DRM_INFO)
+DRM_INFO_LICENSE	:= MIT
+DRM_INFO_LICENSE_FILES	:= file://LICENSE;md5=32fd56d355bd6a61017655d8da26b67c
+
+#
+# meson
+#
+DRM_INFO_CONF_TOOL	:= meson
+DRM_INFO_CONF_OPT	:=  \
+	$(CROSS_MESON_USR) \
+	-Dlibpci=disabled \
+	-Dman-pages=disabled
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/drm_info.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, drm_info)
+	@$(call install_fixup, drm_info,PRIORITY,optional)
+	@$(call install_fixup, drm_info,SECTION,base)
+	@$(call install_fixup, drm_info,AUTHOR,"Benjamin Gaignard <benjamin.gaignard@collabora.com>")
+	@$(call install_fixup, drm_info,DESCRIPTION,missing)
+
+	@$(call install_copy, drm_info, 0, 0, 0755, -, /usr/bin/drm_info)
+
+	@$(call install_finish, drm_info)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.43.0




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-13 14:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-13 14:41 [ptxdist] [PATCH v2] Add drm_info package Benjamin Gaignard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox