931573acfade20eb3772835c29316612c2c9fb1d
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / x11r7 / xcb-proto / xcb-proto.mk
1 ################################################################################
2 #
3 # xcb-proto
4 #
5 ################################################################################
6
7 XCB_PROTO_VERSION = 1.11
8 XCB_PROTO_SOURCE = xcb-proto-$(XCB_PROTO_VERSION).tar.bz2
9 XCB_PROTO_SITE = http://xcb.freedesktop.org/dist
10 XCB_PROTO_LICENSE = MIT
11 XCB_PROTO_LICENSE_FILES = COPYING
12
13 XCB_PROTO_INSTALL_STAGING = YES
14
15 XCB_PROTO_DEPENDENCIES = host-python
16
17 # xcbincludedir/pythondir is used by E.G. libxcb at build time to find the
18 # xml / python files, so ensure these expand to their full (host) paths
19 define XCB_PROTO_FIXUP_PC_FILE
20         $(SED) 's|^\(xcbincludedir=\)|\1$(STAGING_DIR)|' \
21                 -e 's|^\(pythondir=\)|\1$(STAGING_DIR)|' \
22                 $(STAGING_DIR)/usr/lib/pkgconfig/xcb-proto.pc
23 endef
24
25 XCB_PROTO_POST_INSTALL_STAGING_HOOKS += XCB_PROTO_FIXUP_PC_FILE
26
27 $(eval $(autotools-package))
28 $(eval $(host-autotools-package))