2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 12846 2008-10-03 22:38:55Z lars $
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=http
://xcb.freedesktop.org
/dist/
20 PKG_BUILD_DEPENDS
:=xcbproto pthread-stubs
22 include $(INCLUDE_DIR
)/package.mk
26 -I
$(STAGING_DIR
)/usr
/lib
/libintl
/include/
29 -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib \
31 STAMP_CONFIGURED
:=$(STAMP_CONFIGURED
)_
$(call confvar
,CONFIG_PACKAGE_libxcb CONFIG_PACKAGE_gtk-cups2
)
33 PROTOS
:=composite damage dpms glx randr record render res screensaver shape \
34 shm sync xevie xf86dri xfixes xinerama xprint xtest xvmc xv
41 DEPENDS
:=+libXau
+libXdmcp
44 define Package
/libxcb
/description
45 libxcb provides an interface to the X Window System protocol
, which
46 replaces the current Xlib interface.
49 define Package
/libxcb-xlib
57 define Package
/libxcb-proto
/Default
58 define Package
/libxcb-
$(1)
67 $(foreach proto
,$(PROTOS
),$(eval
$(call Package
/libxcb-proto
/Default
,$(proto
))))
69 define Build
/InstallDev
70 $(INSTALL_DIR
) $(1)/usr
/{lib
/pkgconfig
,include/xcb
}
72 $(PKG_INSTALL_DIR
)/usr
/include/xcb
/* \
76 $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{so
*,a
,la
} \
80 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
81 $(1)/usr
/lib
/pkgconfig
/
84 define Package
/libxcb
/install
85 $(INSTALL_DIR
) $(1)/usr
/lib
87 $(PKG_INSTALL_DIR
)/usr
/lib
/libxcb.so
* \
91 define Package
/libxcb
/install
92 $(INSTALL_DIR
) $(1)/usr
/lib
94 $(PKG_INSTALL_DIR
)/usr
/lib
/libxcb-xlib.so
* \
98 define Package
/libxcb-proto
/install/Default
99 define Package
/libxcb-
$(1)/install
100 $(INSTALL_DIR
) $$(1)/usr
/lib
102 $(PKG_INSTALL_DIR
)/usr
/lib
/libxcb-
$(1).so
* \
107 $(foreach proto
,$(PROTOS
),$(eval
$(call Package
/libxcb-proto
/install/Default
,$(proto
))))
110 $(eval
$(call BuildPackage
,libxcb
))
111 $(eval
$(call BuildPackage
,libxcb-xlib
))
112 $(foreach proto
,$(PROTOS
),$(eval
$(call BuildPackage
,libxcb-
$(proto
))))