LibXi: new recipe (#1193)

This commit is contained in:
miqlas
2017-03-02 19:12:37 +01:00
committed by Scott McCreary
parent b7b09f6106
commit f4aa948520

View File

@@ -0,0 +1,77 @@
SUMMARY="X Input extension library"
DESCRIPTION="libxi is an extension to the X11 protocol to support input \
devices other than the core X keyboard and pointer. It allows client programs \
to select input from these devices independently from each other and \
independently from the core devices."
HOMEPAGE="http://xorg.freedesktop.org/releases/individual/lib/"
COPYRIGHT="1989, 1998 The Open Group"
LICENSE="MIT (no promotion)"
REVISION="1"
SOURCE_URI="https://www.x.org/archive/individual/lib/libXi-$portVersion.tar.gz"
CHECKSUM_SHA256="4e88fa7decd287e58140ea72238f8d54e4791de302938c83695fc0c9ac102b7e"
SOURCE_DIR="libXi-$portVersion"
ARCHITECTURES="?x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libxi$secondaryArchSuffix = $portVersion
lib:libxi$secondaryArchSuffix = 6.1.0 compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libX11$secondaryArchSuffix
lib:libxext$secondaryArchSuffix
"
PROVIDES_devel="
libxi${secondaryArchSuffix}_devel = $portVersion
devel:libxi$secondaryArchSuffix = 6.1.0 compat >= 6
"
REQUIRES_devel="
libxi$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:inputproto$secondaryArchSuffix
devel:fixesproto$secondaryArchSuffix
devel:kbproto$secondaryArchSuffix
devel:libpthread_stubs$secondaryArchSuffix
devel:libX11$secondaryArchSuffix
devel:libxext$secondaryArchSuffix
devel:libxfixes$secondaryArchSuffix
devel:xextproto$secondaryArchSuffix
devel:xproto$secondaryArchSuffix
"
BUILD_PREREQUIRES="
devel:util_macros$secondaryArchSuffix
cmd:autoconf
cmd:libtool
cmd:aclocal
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
libtoolize --force --copy --install
autoreconf -i
runConfigure ./configure
}
INSTALL()
{
make install
rm -rf $libDir/libXi.la
fixPkgconfig
prepareInstalledDevelLib libXi
# devel package
packageEntries devel \
$developDir
}