Files
haikuports/sys-libs/readline/readline-6.3.recipe
2014-06-01 21:43:05 +00:00

81 lines
2.2 KiB
Plaintext

SUMMARY="The GNU Readline library"
DESCRIPTION="
The GNU Readline library provides a set of functions for use by applications \
that allow users to edit command lines as they are typed in. Both Emacs and vi \
editing modes are available. The Readline library includes additional \
functions to maintain a list of previously-entered command lines, to recall \
and perhaps reedit those lines, and perform csh-like history expansion on \
previous commands.
The history facilites are also placed into a separate library, the History \
library, as part of the build process. The History library may be used without \
Readline in applications which desire its capabilities.
"
HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
COPYRIGHT="1989-2011 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
SRC_URI="ftp://ftp.gnu.org/gnu/readline/readline-6.3.tar.gz"
CHECKSUM_SHA256="56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PATCHES="readline-6.3.patch"
PROVIDES="
readline$secondaryArchSuffix = $portVersion compat >= 6
lib:libhistory$secondaryArchSuffix = $portVersion compat >= 6
lib:libreadline$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libncurses$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:libncurses$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
"
BUILD()
{
libtoolize --force --copy --install
aclocal
autoconf
runConfigure ./configure \
--with-curses
make $jobArgs SHLIB_LIBS=-lncurses
}
INSTALL()
{
make install
prepareInstalledDevelLibs libhistory libreadline
rmdir $binDir
# devel package
packageEntries devel \
$dataDir \
$developDir \
$documentationDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
readline${secondaryArchSuffix}_devel = $portVersion
devel:libhistory$secondaryArchSuffix = $portVersion compat >= 6
devel:libreadline$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
readline$secondaryArchSuffix == $portVersion base
"