summaryrefslogtreecommitdiff
path: root/package/xcb-proto/Makefile
blob: 64d4413871082b4c06ff6b5928a48028b1124200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

PKG_NAME:=		xcb-proto
PKG_VERSION:=		1.8
PKG_RELEASE:=		1
PKG_DESCR:=		XML-XCB protocol descriptions
PKG_SECTION:=		devel
PKG_MD5SUM:=		8d2cdb770129cef563088a90c5bec768
PKG_SITES:=		http://xcb.freedesktop.org/dist/
PKG_OPTS:=		dev devonly

PKG_SUBPKGS:=		XCB_PROTO XCB_PYTHON
PKGSC_XCB_PYTHON:=	x11/misc
PKGSB_XCB_PYTHON:=	python2-host

include $(TOPDIR)/mk/package.mk

$(eval $(call PKG_template,XCB_PROTO,xcb-proto,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
$(eval $(call PKG_template,XCB_PYTHON,xcb-python,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_XCB_PYTHON}))

include $(TOPDIR)/mk/python.mk

CONFIGURE_ENV+=		PYTHON=$(PYTHON)
CONFIGURE_ARGS+=	--datadir=${STAGING_DIR}/usr/share

post-build:
	${INSTALL_DIR} ${STAGING_DIR}/usr/share/xcb
	${CP} ${WRKBUILD}/src/*.xml ${STAGING_DIR}/usr/share/xcb

xcb-python-install:
	$(INSTALL_DIR) ${STAGING_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
	${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
		${STAGING_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
	${INSTALL_DIR} ${IDIR_XCB_PYTHON}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
	${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
		${IDIR_XCB_PYTHON}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen

include ${TOPDIR}/mk/pkg-bottom.mk