[package] update faifa to r55, patch from Raphael Huck.
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libxcb
11 PKG_VERSION:=1.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://xcb.freedesktop.org/dist/
16 PKG_MD5SUM:=9310b02433273d75d42f10da3c7455aa
17 PKG_FIXUP:=libtool
18 PKG_INSTALL:=1
19 PKG_BUILD_DEPENDS:=xcbproto libpthread-stubs
20
21 include $(INCLUDE_DIR)/package.mk
22
23 PROTOS:=composite damage dpms glx randr record render res screensaver shape \
24 shm sync xevie xf86dri xfixes xinerama xprint xtest xvmc xv
25
26 define Package/libxcb
27 SECTION:=xorg-libs
28 CATEGORY:=Xorg
29 SUBMENU:=libraries
30 TITLE:=libxcb
31 DEPENDS:=+libXau +libXdmcp
32 endef
33
34 define Package/libxcb/description
35 libxcb provides an interface to the X Window System protocol, which
36 replaces the current Xlib interface.
37 endef
38
39 define Package/libxcb-xlib
40 SECTION:=xorg-libs
41 CATEGORY:=Xorg
42 SUBMENU:=libraries
43 TITLE:=libxcb-xlib
44 DEPENDS:=+libxcb
45 endef
46
47 define Package/libxcb-proto/Default
48 define Package/libxcb-$(1)
49 SECTION:=xorg-libs
50 CATEGORY:=Xorg
51 SUBMENU:=libraries
52 TITLE:=libxcb-$(1)
53 DEPENDS:=+libxcb
54 endef
55 endef
56
57 $(foreach proto,$(PROTOS),$(eval $(call Package/libxcb-proto/Default,$(proto))))
58
59 define Build/InstallDev
60 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/xcb}
61 $(INSTALL_DATA) \
62 $(PKG_INSTALL_DIR)/usr/include/xcb/* \
63 $(1)/usr/include/xcb/
64
65 $(CP) \
66 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
67 $(1)/usr/lib/
68
69 $(INSTALL_DATA) \
70 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
71 $(1)/usr/lib/pkgconfig/
72 endef
73
74 define Package/libxcb/install
75 $(INSTALL_DIR) $(1)/usr/lib
76 $(CP) \
77 $(PKG_INSTALL_DIR)/usr/lib/libxcb.so* \
78 $(1)/usr/lib/
79 endef
80
81 define Package/libxcb-xlib/install
82 $(INSTALL_DIR) $(1)/usr/lib
83 $(CP) \
84 $(PKG_INSTALL_DIR)/usr/lib/libxcb-xlib.so* \
85 $(1)/usr/lib/
86 endef
87
88 define Package/libxcb-proto/install/Default
89 define Package/libxcb-$(1)/install
90 $(INSTALL_DIR) $$(1)/usr/lib
91 $(CP) \
92 $(PKG_INSTALL_DIR)/usr/lib/libxcb-$(1).so* \
93 $$(1)/usr/lib/
94 endef
95 endef
96
97 $(foreach proto,$(PROTOS),$(eval $(call Package/libxcb-proto/install/Default,$(proto))))
98
99 $(eval $(call BuildPackage,libxcb))
100 $(eval $(call BuildPackage,libxcb-xlib))
101 $(foreach proto,$(PROTOS),$(eval $(call BuildPackage,libxcb-$(proto))))