2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://xcb.freedesktop.org/dist/
16 PKG_MD5SUM:=d9275a714e83ab9c1f9b260c6eff1609
19 include $(INCLUDE_DIR)/package.mk
21 define Package/xcbproto
28 define Build/InstallDev
29 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
30 $(INSTALL_DIR) $(1)/host/{lib/python2.5/site-packages/xcbgen,share/xcb}
33 $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/xcbgen/*.py \
34 $(1)/host/lib/python2.5/site-packages/xcbgen/
37 $(PKG_INSTALL_DIR)/usr/share/xcb/* \
41 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
42 $(1)/usr/lib/pkgconfig/
44 $(SED) 's,datadir=/usr,datadir=$(STAGING_DIR)/host,g' $(1)/usr/lib/pkgconfig/xcb-proto.pc
47 define Package/xcbproto/install
52 $(eval $(call BuildPackage,xcbproto))