Some minor cleanups.
[openwrt/svn-archive/archive.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 # $Id: Makefile 12846 2008-10-03 22:38:55Z lars $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=xcb-proto
12 PKG_VERSION:=1.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://xcb.freedesktop.org/dist/
17 PKG_MD5SUM:=d9275a714e83ab9c1f9b260c6eff1609
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/xcbproto
23 SECTION:=xorg-libs
24 CATEGORY:=Xorg
25 SUBMENU:=lib
26 TITLE:=xcbproto
27 endef
28
29 define Build/InstallDev
30 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
31 $(INSTALL_DIR) $(1)/host/{lib/python2.5/site-packages/xcbgen,share/xcb}
32
33 $(INSTALL_DATA) \
34 $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/xcbgen/*.py \
35 $(1)/host/lib/python2.5/site-packages/xcbgen/
36
37 $(INSTALL_DATA) \
38 $(PKG_INSTALL_DIR)/usr/share/xcb/* \
39 $(1)/host/share/xcb/
40
41 $(INSTALL_DATA) \
42 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
43 $(1)/usr/lib/pkgconfig/
44
45 $(SED) 's,datadir=/usr,datadir=$(STAGING_DIR)/host,g' $(1)/usr/lib/pkgconfig/xcb-proto.pc
46 endef
47
48 define Package/xcbproto/install
49 true
50 endef
51
52
53 $(eval $(call BuildPackage,xcbproto))