1# $NetBSD: Makefile,v 1.3 2022/07/12 02:43:46 mrg Exp $ 2 3# This makefile is used to generate the libxcb xml/python generated files. 4# For now it is broken, and these files were copied from a normal libxcb 5# build. 6 7.include <bsd.own.mk> 8.include "Makefile.xmlsrcs" 9 10PYTHON?= /usr/pkg/bin/python3.9 11PYTHONLIB?= /usr/pkg/lib/python3.9 12C_CLIENT?= ${X11SRCDIR.xcb}/src/c_client.py 13 14.SUFFIXES: .c .xml 15 16# Set this to a r/w location if using r/o sources. 17NEWCONFIGDIR?= ${.CURDIR} 18 19# this doesn't work yet - needs properly install "xcbgen". 20# these files are copied from a normal build. 21.xml.c: 22 ( \ 23 cd ${NEWCONFIGDIR}; \ 24 env PYTHONPATH=${X11SRCDIR.xcb-proto} ${PYTHON} ${C_CLIENT} \ 25 -c "libxcb 1.15" \ 26 -l "X Version 11" \ 27 -s 3 \ 28 -p ${PYTHONLIB}/site-packages ${.IMPSRC} \ 29 ) 30 31generate_from_xml: ${XMLSRCS} 32 33all: generate_from_xml 34 35.include <bsd.subdir.mk> 36 37.PATH: ${X11SRCDIR.xcb-proto}/src 38