Add libxcb.
[openwrt/svn-archive/archive.git] / Xorg / lib / libxcb / 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:=libxcb
12 PKG_VERSION:=1.1
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 PKG_BUILD_DEPENDS:=xcbproto pthread-stubs
21
22 include $(INCLUDE_DIR)/package.mk
23
24
25 TARGET_CFLAGS+=\
26 -I$(STAGING_DIR)/usr/lib/libintl/include/
27
28 EXTRA_LDFLAGS+=\
29 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
30
31 STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_libxcb CONFIG_PACKAGE_gtk-cups2)
32
33 PROTOS:=composite damage dpms glx randr record render res screensaver shape \
34 shm sync xevie xf86dri xfixes xinerama xprint xtest xvmc xv
35
36 define Package/libxcb
37 SECTION:=xorg-libs
38 CATEGORY:=Xorg
39 SUBMENU:=lib
40 TITLE:=libxcb
41 DEPENDS:=+libXau +libXdmcp
42 endef
43
44 define Package/libxcb/description
45 libxcb provides an interface to the X Window System protocol, which
46 replaces the current Xlib interface.
47 endef
48
49 define Package/libxcb-xlib
50 SECTION:=xorg-libs
51 CATEGORY:=Xorg
52 SUBMENU:=lib
53 TITLE:=libxcb-proto
54 DEPENDS:=+libxcb
55 endef
56
57 define Package/libxcb-proto/Default
58 define Package/libxcb-$(1)
59 SECTION:=xorg-libs
60 CATEGORY:=Xorg
61 SUBMENU:=lib
62 TITLE:=libxcb-$(1)
63 DEPENDS:=+libxcb
64 endef
65 endef
66
67 $(foreach proto,$(PROTOS),$(eval $(call Package/libxcb-proto/Default,$(proto))))
68
69 define Build/InstallDev
70 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/xcb}
71 $(INSTALL_DATA) \
72 $(PKG_INSTALL_DIR)/usr/include/xcb/* \
73 $(1)/usr/include/xcb/
74
75 $(INSTALL_DATA) \
76 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
77 $(1)/usr/lib/
78
79 $(INSTALL_DATA) \
80 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
81 $(1)/usr/lib/pkgconfig/
82 endef
83
84 define Package/libxcb/install
85 $(INSTALL_DIR) $(1)/usr/lib
86 $(INSTALL_DATA) \
87 $(PKG_INSTALL_DIR)/usr/lib/libxcb.so* \
88 $(1)/usr/lib/
89 endef
90
91 define Package/libxcb/install
92 $(INSTALL_DIR) $(1)/usr/lib
93 $(INSTALL_DATA) \
94 $(PKG_INSTALL_DIR)/usr/lib/libxcb-xlib.so* \
95 $(1)/usr/lib/
96 endef
97
98 define Package/libxcb-proto/install/Default
99 define Package/libxcb-$(1)/install
100 $(INSTALL_DIR) $$(1)/usr/lib
101 $(INSTALL_DATA) \
102 $(PKG_INSTALL_DIR)/usr/lib/libxcb-$(1).so* \
103 $$(1)/usr/lib/
104 endef
105 endef
106
107 $(foreach proto,$(PROTOS),$(eval $(call Package/libxcb-proto/install/Default,$(proto))))
108
109
110 $(eval $(call BuildPackage,libxcb))
111 $(eval $(call BuildPackage,libxcb-xlib))
112 $(foreach proto,$(PROTOS),$(eval $(call BuildPackage,libxcb-$(proto))))