packages: move Xorg category to its own feed, move X-related packages as well
[openwrt/svn-archive/archive.git] / xorg / lib / libxcb / Makefile
1 #
2 # Copyright (C) 2008-2010 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-libraries
28 CATEGORY:=Xorg
29 SUBMENU:=libraries
30 TITLE:=libxcb
31 DEPENDS:=+libXau +libXdmcp
32 URL:=http://xcb.freedesktop.org/
33 endef
34
35 define Package/libxcb/description
36 libxcb provides an interface to the X Window System protocol, which
37 replaces the current Xlib interface.
38 endef
39
40 define Package/libxcb-xlib
41 SECTION:=xorg-libraries
42 CATEGORY:=Xorg
43 SUBMENU:=libraries
44 TITLE:=libxcb-xlib
45 DEPENDS:=+libxcb
46 endef
47
48 define Package/libxcb-proto/Default
49 define Package/libxcb-$(1)
50 SECTION:=xorg-libraries
51 CATEGORY:=Xorg
52 SUBMENU:=libraries
53 TITLE:=libxcb-$(1)
54 DEPENDS:=+libxcb
55 endef
56 endef
57
58 $(foreach proto,$(PROTOS),$(eval $(call Package/libxcb-proto/Default,$(proto))))
59
60 define Build/InstallDev
61 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/xcb}
62 $(INSTALL_DATA) \
63 $(PKG_INSTALL_DIR)/usr/include/xcb/* \
64 $(1)/usr/include/xcb/
65
66 $(CP) \
67 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
68 $(1)/usr/lib/
69
70 $(INSTALL_DATA) \
71 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
72 $(1)/usr/lib/pkgconfig/
73 endef
74
75 define Package/libxcb/install
76 $(INSTALL_DIR) $(1)/usr/lib
77 $(CP) \
78 $(PKG_INSTALL_DIR)/usr/lib/libxcb.so* \
79 $(1)/usr/lib/
80 endef
81
82 define Package/libxcb-xlib/install
83 $(INSTALL_DIR) $(1)/usr/lib
84 $(CP) \
85 $(PKG_INSTALL_DIR)/usr/lib/libxcb-xlib.so* \
86 $(1)/usr/lib/
87 endef
88
89 define Package/libxcb-proto/install/Default
90 define Package/libxcb-$(1)/install
91 $(INSTALL_DIR) $$(1)/usr/lib
92 $(CP) \
93 $(PKG_INSTALL_DIR)/usr/lib/libxcb-$(1).so* \
94 $$(1)/usr/lib/
95 endef
96 endef
97
98 $(foreach proto,$(PROTOS),$(eval $(call Package/libxcb-proto/install/Default,$(proto))))
99
100 $(eval $(call BuildPackage,libxcb))
101 $(eval $(call BuildPackage,libxcb-xlib))
102 $(foreach proto,$(PROTOS),$(eval $(call BuildPackage,libxcb-$(proto))))