mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 13:38:52 +02:00
158 lines
4.3 KiB
Bash
158 lines
4.3 KiB
Bash
SUMMARY="X.Org's C Bindings library"
|
|
DESCRIPTION="XCB provides application binary interface compatibility with \
|
|
both Xlib and XCB, providing an incremental porting path. XCB uses \
|
|
the protocol layer of Xlib, but replaces the Xlib transport layer with \
|
|
XCB, and provides access to the underlying XCB connection for direct use \
|
|
of XCB.
|
|
XCB allows an application to open a single connection to the Xdisplay server \
|
|
and use both XCB and Xlib, possibly through a mixture of libraries designed \
|
|
for one or the other."
|
|
HOMEPAGE="http://xcb.freedesktop.org/"
|
|
COPYRIGHT="2001-2006 Bart Massey, Jamey Sharp, and Josh Triplett"
|
|
LICENSE="MIT (no promotion)"
|
|
REVISION="1"
|
|
SOURCE_URI="http://xcb.freedesktop.org/dist/libxcb-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="092f147149d8a6410647a848378aaae749304d5b73e028ccb8306aa8a9e26f06"
|
|
PATCHES="libxcb-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libxcb$secondaryArchSuffix = $portVersion
|
|
lib:libxcb$secondaryArchSuffix = $portVersion
|
|
lib:libxcb_composite$secondaryArchSuffix
|
|
lib:libxcb_damage$secondaryArchSuffix
|
|
lib:libxcb_dpms$secondaryArchSuffix
|
|
lib:libxcb_dri2$secondaryArchSuffix
|
|
lib:libxcb_dri3$secondaryArchSuffix
|
|
lib:libxcb_glx$secondaryArchSuffix
|
|
lib:libxcb_present$secondaryArchSuffix
|
|
lib:libxcb_randr$secondaryArchSuffix
|
|
lib:libxcb_record$secondaryArchSuffix
|
|
lib:libxcb_render$secondaryArchSuffix
|
|
lib:libxcb_res$secondaryArchSuffix
|
|
lib:libxcb_screensaver$secondaryArchSuffix
|
|
lib:libxcb_shape$secondaryArchSuffix
|
|
lib:libxcb_shm$secondaryArchSuffix
|
|
lib:libxcb_sync$secondaryArchSuffix
|
|
lib:libxcb_xf86dri$secondaryArchSuffix
|
|
lib:libxcb_xfixes$secondaryArchSuffix
|
|
lib:libxcb_xinerama$secondaryArchSuffix
|
|
lib:libxcb_xkb$secondaryArchSuffix
|
|
lib:libxcb_xtest$secondaryArchSuffix
|
|
lib:libxcb_xv$secondaryArchSuffix
|
|
lib:libxcb_xvmc$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libxslt$secondaryArchSuffix >= 1.1.26
|
|
lib:libxau$secondaryArchSuffix >= 1.0.5
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libxcb${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libxcb$secondaryArchSuffix = $portVersion
|
|
devel:libxcb_composite$secondaryArchSuffix
|
|
devel:libxcb_damage$secondaryArchSuffix
|
|
devel:libxcb_dpms$secondaryArchSuffix
|
|
devel:libxcb_dri2$secondaryArchSuffix
|
|
devel:libxcb_dri3$secondaryArchSuffix
|
|
devel:libxcb_glx$secondaryArchSuffix
|
|
devel:libxcb_present$secondaryArchSuffix
|
|
devel:libxcb_randr$secondaryArchSuffix
|
|
devel:libxcb_record$secondaryArchSuffix
|
|
devel:libxcb_render$secondaryArchSuffix
|
|
devel:libxcb_res$secondaryArchSuffix
|
|
devel:libxcb_screensaver$secondaryArchSuffix
|
|
devel:libxcb_shape$secondaryArchSuffix
|
|
devel:libxcb_shm$secondaryArchSuffix
|
|
devel:libxcb_sync$secondaryArchSuffix
|
|
devel:libxcb_xf86dri$secondaryArchSuffix
|
|
devel:libxcb_xfixes$secondaryArchSuffix
|
|
devel:libxcb_xinerama$secondaryArchSuffix
|
|
devel:libxcb_xkb$secondaryArchSuffix
|
|
devel:libxcb_xtest$secondaryArchSuffix
|
|
devel:libxcb_xv$secondaryArchSuffix
|
|
devel:libxcb_xvmc$secondaryArchSuffix
|
|
"
|
|
REQUIRES_devel="
|
|
libxcb$secondaryArchSuffix == $portVersion base
|
|
devel:libxslt$secondaryArchSuffix >= 1.1.26
|
|
devel:libxau$secondaryArchSuffix >= 1.0.5
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libxslt$secondaryArchSuffix >= 1.1.26
|
|
devel:xcb_proto$secondaryArchSuffix >= 1.12
|
|
devel:libpthread_stubs$secondaryArchSuffix >= 0.3
|
|
devel:libxau$secondaryArchSuffix >= 1.0.5
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
devel:util_macros$secondaryArchSuffix
|
|
cmd:autoconf
|
|
cmd:doxygen
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:aclocal
|
|
cmd:make
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
libtoolize --force --copy --install
|
|
./autogen.sh -V
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool library files
|
|
rm $libDir/libxcb*.la
|
|
|
|
prepareInstalledDevelLibs libxcb \
|
|
libxcb-composite \
|
|
libxcb-damage \
|
|
libxcb-dpms \
|
|
libxcb-dri2 \
|
|
libxcb-dri3 \
|
|
libxcb-glx \
|
|
libxcb-present \
|
|
libxcb-randr \
|
|
libxcb-record \
|
|
libxcb-render \
|
|
libxcb-res \
|
|
libxcb-screensaver \
|
|
libxcb-shape \
|
|
libxcb-shm \
|
|
libxcb-sync \
|
|
libxcb-xf86dri \
|
|
libxcb-xfixes \
|
|
libxcb-xinerama \
|
|
libxcb-xkb \
|
|
libxcb-xtest \
|
|
libxcb-xv \
|
|
libxcb-xvmc
|
|
fixPkgconfig
|
|
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
rm -rf $documentationDir
|
|
fi
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|