nuke $Id$ in /packages as well
[packages.git] / Xorg / lib / xcbproto / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=xcb-proto
11 PKG_VERSION:=1.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://xcb.freedesktop.org/dist/
16 PKG_MD5SUM:=d9275a714e83ab9c1f9b260c6eff1609
17 PKG_INSTALL:=1
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/xcbproto
22   SECTION:=xorg-libs
23   CATEGORY:=Xorg
24   SUBMENU:=libraries
25   TITLE:=xcbproto
26 endef
27
28 define Build/InstallDev
29         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
30         $(INSTALL_DIR) $(1)/host/{lib/python2.5/site-packages/xcbgen,share/xcb}
31
32         $(INSTALL_DATA) \
33                 $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/xcbgen/*.py \
34                 $(1)/host/lib/python2.5/site-packages/xcbgen/
35
36         $(INSTALL_DATA) \
37                 $(PKG_INSTALL_DIR)/usr/share/xcb/* \
38                 $(1)/host/share/xcb/
39
40         $(INSTALL_DATA) \
41                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
42                 $(1)/usr/lib/pkgconfig/
43
44         $(SED) 's,datadir=/usr,datadir=$(STAGING_DIR)/host,g' $(1)/usr/lib/pkgconfig/xcb-proto.pc
45 endef
46
47 define Package/xcbproto/install
48         true
49 endef
50
51
52 $(eval $(call BuildPackage,xcbproto))