libXt, new recipe (#2015)

This commit is contained in:
Schrijvers Luc
2018-01-01 13:45:00 +01:00
committed by fbrosson
parent 4cbe6b6994
commit 330b201efa

View File

@@ -0,0 +1,92 @@
SUMMARY="X Toolkit Intrinsics library"
DESCRIPTION="libXt provides the X Toolkit Intrinsics, an abstract widget \
library upon which other toolkits are based. Xt is the basis for many \
toolkits, including the Athena widgets (Xaw), and LessTif (a Motif \
implementation)."
HOMEPAGE="https://www.x.org/releases/individual/lib/"
COPYRIGHT="1993, 1994 X Consortium
1989, 1998 The Open Group
1987, 1988 by Digital Equipment Corporation
1993, 2011, Oracle and/or its affiliates
2001, 2003 Keith Packard"
LICENSE="MIT (no promotion)"
REVISION="1"
SOURCE_URI="https://www.x.org/releases/individual/lib/libXt-$portVersion.tar.bz2"
CHECKSUM_SHA256="46eeb6be780211fdd98c5109286618f6707712235fdd19df4ce1e6954f349f1a"
SOURCE_DIR="libXt-$portVersion"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion=6.0.0
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libxt$secondaryArchSuffix = $portVersion
lib:libXt$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libICE$secondaryArchSuffix
lib:libSM$secondaryArchSuffix
lib:libX11$secondaryArchSuffix
"
PROVIDES_devel="
libxt${secondaryArchSuffix}_devel = $portVersion
devel:libXt$secondaryArchSuffix = $libVersion
"
REQUIRES_devel="
libxt$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libICE$secondaryArchSuffix
devel:libpthread_stubs$secondaryArchSuffix
devel:libSM$secondaryArchSuffix
devel:libX11$secondaryArchSuffix
devel:kbproto$secondaryArchSuffix
devel:xproto$secondaryArchSuffix
# needed for TEST()
devel:libglib_2.0$secondaryArchSuffix
"
BUILD_PREREQUIRES="
devel:util_macros$secondaryArchSuffix
cmd:aclocal
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage libxt$secondaryArchSuffix \
$libDir/libXt.so.$libVersion
BUILD()
{
autoreconf -vfi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm -f $libDir/*.la
prepareInstalledDevelLib libXt
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$manDir
}
TEST()
{
make check
}