mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 17:50:06 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
72 lines
1.7 KiB
Bash
72 lines
1.7 KiB
Bash
SUMMARY="Line editing library for UNIX call compatible with the FSF readline"
|
|
DESCRIPTION="This is a line editing library for UNIX. It can be linked into \
|
|
almost any program to provide command line editing and history. It is call \
|
|
compatible with the FSF readline library, but is a fraction of the size \
|
|
(and offers fewer features)."
|
|
HOMEPAGE="https://troglobit.com/projects/editline/"
|
|
COPYRIGHT="1992,1993 Simmule Turner and Rich Salz"
|
|
LICENSE="Apache v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/troglobit/editline/releases/download/$portVersion/editline-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="df223b3333a545fddbc67b49ded3d242c66fadf7a04beb3ada20957fcd1ffc0e"
|
|
SOURCE_DIR="editline-$portVersion"
|
|
|
|
ARCHITECTURES="all ?x86_gcc2 ?x86 ?sparc ?m68k"
|
|
SECONDARY_ARCHITECTURES="x86 ?x86_gcc2"
|
|
|
|
libVersion="1.0.2"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libeditline$secondaryArchSuffix = $portVersion
|
|
lib:libeditline$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libeditline${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libeditline$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libeditline$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:awk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:makeinfo
|
|
"
|
|
|
|
defineDebugInfoPackage libeditline$secondaryArchSuffix \
|
|
$libDir/libeditline.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
rm $libDir/libeditline.la
|
|
prepareInstalledDevelLib libeditline
|
|
fixPkgconfig
|
|
packageEntries devel $developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check $jobArgs
|
|
}
|