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.
91 lines
2.1 KiB
Bash
91 lines
2.1 KiB
Bash
SUMMARY="A BSD licensed replacement for the GNU readline library"
|
|
DESCRIPTION="This is an autotool- and libtoolized port of the NetBSD Editline library \
|
|
(libedit). This Berkeley-style licensed command line editor library provides \
|
|
generic line editing, history, and tokenization functions, similar to those \
|
|
found in GNU Readline."
|
|
HOMEPAGE="http://thrysoee.dk/editline/"
|
|
COPYRIGHT="1992-2021 The NetBSD Foundation, Inc."
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="http://thrysoee.dk/editline/libedit-${portVersion/_/-}.tar.gz"
|
|
CHECKSUM_SHA256="571ebe44b74860823e24a08cf04086ff104fd7dfa1020abf26c52543134f5602"
|
|
SOURCE_DIR="libedit-${portVersion/_/-}"
|
|
PATCHES="libedit-${portVersion/_/-}.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
libVersion="0.0.65"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libedit$secondaryArchSuffix = $portVersion
|
|
lib:libedit$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libncurses$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libedit${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libedit$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libedit$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libncurses$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:m4
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
defineDebugInfoPackage libedit$secondaryArchSuffix \
|
|
"$libDir"/libedit.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf --force --install
|
|
runConfigure ./configure --enable-examples=no \
|
|
--enable-widec
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool file
|
|
rm -f "$libDir"/libedit.la
|
|
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
rm -rf "$documentationDir"
|
|
maybe_manDir_man3=
|
|
else
|
|
maybe_manDir_man3="$manDir"/man3
|
|
fi
|
|
|
|
prepareInstalledDevelLib libedit
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
"$developDir" \
|
|
${maybe_manDir_man3:+"$maybe_manDir_man3"}
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|