mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
66 lines
1.6 KiB
Bash
66 lines
1.6 KiB
Bash
SUMMARY="Library for processing keyboard input"
|
|
DESCRIPTION="This library allows easy processing of keyboard entry from terminal-based \
|
|
programs. It handles all the necessary logic to recognise special keys, UTF-8 \
|
|
combining, and so on, with a simple interface."
|
|
HOMEPAGE="http://www.leonerd.org.uk/code/libtermkey/"
|
|
COPYRIGHT="2007-2011 Paul Evans"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="http://www.leonerd.org.uk/code/libtermkey/libtermkey-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="6945bd3c4aaa83da83d80a045c5563da4edd7d0374c62c0d35aec09eb3014600"
|
|
PATCHES="libtermkey-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="1.14.2"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libtermkey$secondaryArchSuffix = $portVersion
|
|
lib:libtermkey$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libncurses$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libtermkey${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libtermkey$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libtermkey$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libncurses$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtool$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make PREFIX="$prefix" \
|
|
LIBDIR="$libDir" \
|
|
INCDIR="$includeDir" \
|
|
MANDIR="$manDir" install
|
|
|
|
rm -f $libDir/libtermkey.{a,la}
|
|
|
|
prepareInstalledDevelLib libtermkey
|
|
fixPkgconfig
|
|
|
|
packageEntries devel $developDir $manDir
|
|
}
|