User Tools

Site Tools


buildroot:xcb-proto

xcb-proto

XML-XCB protocol descriptions

make dependencies python
libxml2
mkdir /data/buildroot/package/xcb-proto
cat > /data/buildroot/package/xcb-proto/0001_xcb-proto_revert_datarootdir.patch<< 'EOF
From d849b9534a52b0199f26c1dd30ac11aba12db9dc Mon Sep 17 00:00:00 2001
From: Matt Turner <mattst88@gmail.com>
Date: Fri, 17 Jun 2022 09:41:14 -0400
Subject: [PATCH] Install xcb-proto to $(datarootdir)

... i.e. to /usr/share/pkgconfig.

Signed-off-by: Matt Turner <mattst88@gmail.com>
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 0312e7a..8b57a83 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
 SUBDIRS = src xcbgen
 
-pkgconfigdir = $(libdir)/pkgconfig
+pkgconfigdir = $(datarootdir)/pkgconfig
 pkgconfig_DATA = xcb-proto.pc
 
 EXTRA_DIST=doc xcb-proto.pc.in autogen.sh README.md
-- 
GitLab
EOF

cat > /data/buildroot/package/xcb-proto/Config.in<< 'EOF'
config BR2_PACKAGE_XCB_PROTO
        bool "xcb-proto"
        help
          XML-XCB protocol descriptions
EOF

cat > /data/buildroot/package/xcb-proto/xcb-proto.mk<< 'EOF'
#############################################################
#
# xcb-proto
#https://xorg.freedesktop.org/archive/individual/proto/xcb-proto-1.15.2.tar.gz
#############################################################
XCB_PROTO_VERSION = 1.15.2
XCB_PROTO_SOURCE  = xcb-proto-$(XCB_PROTO_VERSION).tar.gz
XCB_PROTO_SITE    = https://xorg.freedesktop.org/archive/individual/proto

define XCB_PROTO_CONFIGURE_CMDS
  cd $(@D)/ && \
  autoreconf -vfi
endef

define XCB_PROTO_BUILD_CMDS
  cd $(@D)/ && \
  ./configure --prefix=/usr && \
  make
endef

define XCB_PROTO_INSTALL_TARGET_CMDS
  cd $(@D)/ && \
  make DESTDIR="${TARGET_DIR}" install
  install -m755 -d "${TARGET_DIR}/usr/share/licenses/xcb-proto"
  install -m644 $(@D)/COPYING "{TARGET_DIR}/usr/share/licenses/xcb-proto"
endef

$(eval $(generic-package))
EOF

sed -i '/menu "Custom packages"/a source "package/xcb-proto/Config.in"' /data/buildroot/package/Config.in
buildroot/xcb-proto.txt · Last modified: 2025/02/19 10:59 by 127.0.0.1