0ee335e5f7b4d3121d4ace5791e2214202e949bb
[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:=
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23
24 TARGET_CFLAGS+=\
25 -I$(STAGING_DIR)/usr/lib/libintl/include/
26
27 EXTRA_LDFLAGS+=\
28 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
29
30 STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_xcbproto CONFIG_PACKAGE_gtk-cups2)
31
32 define Package/xcbproto
33 SECTION:=xorg-libs
34 CATEGORY:=Xorg
35 SUBMENU:=lib
36 TITLE:=xcbproto
37 DEPENDS:=
38 endef
39
40 define Build/Configure
41 $(call Build/Configure/Default, \
42 )
43 endef
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
47 $(INSTALL_DIR) $(1)/host/{lib/python2.5/site-packages/xcbgen,share/xcb}
48
49 $(INSTALL_DATA) \
50 $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/xcbgen/*.py \
51 $(1)/host/lib/python2.5/site-packages/xcbgen/
52
53 $(INSTALL_DATA) \
54 $(PKG_INSTALL_DIR)/usr/share/xcb/* \
55 $(1)/host/share/xcb/
56
57 $(INSTALL_DATA) \
58 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
59 $(1)/usr/lib/pkgconfig/
60
61 $(SED) 's,datadir=/usr,datadir=$(STAGING_DIR)/host,g' $(1)/usr/lib/pkgconfig/xcb-proto.pc
62 endef
63
64 define Package/xcbproto/install
65 true
66 endef
67
68
69 $(eval $(call BuildPackage,xcbproto))