2016-09-02 04:09:43 -06:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2016/09/02 10:09:44 matthieu Exp $
|
2009-05-22 10:06:29 -06:00
|
|
|
|
|
|
|
PKGCONFIG= xcb-proto.pc
|
|
|
|
|
|
|
|
FILES= \
|
|
|
|
xcb.xsd \
|
|
|
|
xproto.xml \
|
|
|
|
bigreq.xml \
|
|
|
|
composite.xml \
|
|
|
|
damage.xml \
|
|
|
|
dpms.xml \
|
2010-04-18 13:55:51 -06:00
|
|
|
dri2.xml \
|
2014-03-15 11:24:19 -06:00
|
|
|
dri3.xml \
|
|
|
|
ge.xml \
|
2009-05-22 10:06:29 -06:00
|
|
|
glx.xml \
|
2014-03-15 11:24:19 -06:00
|
|
|
present.xml \
|
2009-05-22 10:06:29 -06:00
|
|
|
randr.xml \
|
|
|
|
record.xml \
|
|
|
|
render.xml \
|
|
|
|
res.xml \
|
|
|
|
screensaver.xml \
|
|
|
|
shape.xml \
|
|
|
|
shm.xml \
|
|
|
|
sync.xml \
|
|
|
|
xc_misc.xml \
|
|
|
|
xevie.xml \
|
2012-03-27 13:12:47 -06:00
|
|
|
xkb.xml \
|
2009-05-22 10:06:29 -06:00
|
|
|
xf86dri.xml \
|
2014-03-15 11:24:19 -06:00
|
|
|
xf86vidmode.xml \
|
2009-05-22 10:06:29 -06:00
|
|
|
xfixes.xml \
|
|
|
|
xinerama.xml \
|
|
|
|
xinput.xml \
|
|
|
|
xprint.xml \
|
|
|
|
xselinux.xml \
|
|
|
|
xtest.xml \
|
|
|
|
xv.xml \
|
|
|
|
xvmc.xml
|
|
|
|
|
|
|
|
XCBDATADIR= ${X11BASE}/share/xcb
|
2009-05-22 14:29:06 -06:00
|
|
|
PYTHONDIR= ${X11BASE}/lib/python${PYTHON_VERSION}/site-packages
|
2009-05-22 10:06:29 -06:00
|
|
|
|
|
|
|
EXTRA_PKGCONFIG_SUBST= '-e s,@xcbincludedir@,$${datadir}/xcb,g' \
|
|
|
|
'-e s,@pythondir@,$${prefix}/lib/python${PYTHON_VERSION}/site-packages,g'
|
|
|
|
|
|
|
|
realinstall:
|
|
|
|
@for i in ${FILES}; do \
|
|
|
|
j="cmp -s ${.CURDIR}/src/$$i ${DESTDIR}${XCBDATADIR}/$$i || \
|
|
|
|
${INSTALL_DATA} ${.CURDIR}/src/$$i \
|
|
|
|
${DESTDIR}${XCBDATADIR}"; \
|
|
|
|
echo "\tinstalling $$i"; \
|
|
|
|
eval "$$j"; \
|
|
|
|
done
|
|
|
|
|
2009-05-22 14:29:06 -06:00
|
|
|
.if defined(XENOCARA_REBUILD_XCB) && ${XENOCARA_REBUILD_XCB:L} == "yes"
|
|
|
|
|
|
|
|
XCBGEN_SRCS= \
|
|
|
|
__init__.py \
|
2016-09-02 04:09:43 -06:00
|
|
|
align.py \
|
2009-05-22 14:29:06 -06:00
|
|
|
error.py \
|
|
|
|
expr.py \
|
|
|
|
matcher.py \
|
|
|
|
state.py \
|
|
|
|
xtypes.py
|
|
|
|
|
|
|
|
install-py:
|
|
|
|
mkdir -p ${DESTDIR}${PYTHONDIR}/xcbgen
|
|
|
|
cd ${.CURDIR}/xcbgen ; for i in ${XCBGEN_SRCS}; do \
|
|
|
|
${INSTALL_DATA} $$i ${DESTDIR}${PYTHONDIR}/xcbgen; \
|
|
|
|
done
|
|
|
|
cd ${DESTDIR}${PYTHONDIR}/xcbgen; \
|
|
|
|
env PYTHON=python${PYTHON_VERSION} ${SHELL} ${.CURDIR}/py-compile \
|
|
|
|
--basedir ${PYTHONDIR}/xcbgen ${XCBGEN_SRCS}
|
2009-05-31 10:35:28 -06:00
|
|
|
|
2009-05-22 14:29:06 -06:00
|
|
|
realinstall: install-py
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
2009-05-22 10:06:29 -06:00
|
|
|
.include <bsd.xorg.mk>
|