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.
7 # $Id: Makefile 12846 2008-10-03 22:38:55Z lars $
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=http
://xcb.freedesktop.org
/dist/
21 include $(INCLUDE_DIR
)/package.mk
25 -I
$(STAGING_DIR
)/usr
/lib
/libintl
/include/
28 -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib \
30 STAMP_CONFIGURED
:=$(STAMP_CONFIGURED
)_
$(call confvar
,CONFIG_PACKAGE_xcbproto CONFIG_PACKAGE_gtk-cups2
)
32 define Package
/xcbproto
40 define Build
/Configure
41 $(call Build
/Configure
/Default
, \
45 define Build
/InstallDev
46 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
47 $(INSTALL_DIR
) $(1)/host
/{lib
/python2.5
/site-packages
/xcbgen
,share
/xcb
}
50 $(PKG_INSTALL_DIR
)/usr
/lib
/python2.5
/site-packages
/xcbgen
/*.py \
51 $(1)/host
/lib
/python2.5
/site-packages
/xcbgen
/
54 $(PKG_INSTALL_DIR
)/usr
/share
/xcb
/* \
58 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
59 $(1)/usr
/lib
/pkgconfig
/
61 $(SED
) 's,datadir=/usr,datadir=$(STAGING_DIR)/host,g' $(1)/usr
/lib
/pkgconfig
/xcb-proto.
pc
64 define Package
/xcbproto
/install
69 $(eval
$(call BuildPackage
,xcbproto
))