2 # Copyright (C) 2008-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://xcb.freedesktop.org
/dist/
16 PKG_MD5SUM
:=9310b02433273d75d42f10da3c7455aa
19 PKG_BUILD_DEPENDS
:=xcbproto libpthread-stubs
21 include $(INCLUDE_DIR
)/package.mk
23 PROTOS
:=composite damage dpms glx randr record render res screensaver shape \
24 shm sync xevie xf86dri xfixes xinerama xprint xtest xvmc xv
27 SECTION
:=xorg-libraries
31 DEPENDS
:=+libXau
+libXdmcp
32 URL
:=http
://xcb.freedesktop.org
/
35 define Package
/libxcb
/description
36 libxcb provides an interface to the X Window System protocol
, which
37 replaces the current Xlib interface.
40 define Package
/libxcb-xlib
41 SECTION
:=xorg-libraries
48 define Package
/libxcb-proto
/Default
49 define Package
/libxcb-
$(1)
50 SECTION
:=xorg-libraries
58 $(foreach proto
,$(PROTOS
),$(eval
$(call Package
/libxcb-proto
/Default
,$(proto
))))
60 define Build
/InstallDev
61 $(INSTALL_DIR
) $(1)/usr
/{lib
/pkgconfig
,include/xcb
}
63 $(PKG_INSTALL_DIR
)/usr
/include/xcb
/* \
67 $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{so
*,a
,la
} \
71 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
72 $(1)/usr
/lib
/pkgconfig
/
75 define Package
/libxcb
/install
76 $(INSTALL_DIR
) $(1)/usr
/lib
78 $(PKG_INSTALL_DIR
)/usr
/lib
/libxcb.so
* \
82 define Package
/libxcb-xlib
/install
83 $(INSTALL_DIR
) $(1)/usr
/lib
85 $(PKG_INSTALL_DIR
)/usr
/lib
/libxcb-xlib.so
* \
89 define Package
/libxcb-proto
/install/Default
90 define Package
/libxcb-
$(1)/install
91 $(INSTALL_DIR
) $$(1)/usr
/lib
93 $(PKG_INSTALL_DIR
)/usr
/lib
/libxcb-
$(1).so
* \
98 $(foreach proto
,$(PROTOS
),$(eval
$(call Package
/libxcb-proto
/install/Default
,$(proto
))))
100 $(eval
$(call BuildPackage
,libxcb
))
101 $(eval
$(call BuildPackage
,libxcb-xlib
))
102 $(foreach proto
,$(PROTOS
),$(eval
$(call BuildPackage
,libxcb-
$(proto
))))