Files
haikuports/sys-libs/slang/slang-2.2.4.recipe
2014-01-02 16:40:58 -05:00

94 lines
2.0 KiB
Plaintext

SUMMARY="S-Lang is a library to help create robust multi-platform software"
DESCRIPTION="
S-Lang is a multi-platform programmer's library designed to allow a developer \
to create robust multi-platform software. It provides facilities required by \
interactive applications such as display/screen management, keyboard input, \
keymaps, and so on. The most exciting feature of the library is the slang \
interpreter that may be easily embedded into a program to make it extensible. \
While the emphasis has always been on the embedded nature of the interpreter, \
it may also be used in a stand-alone fashion through the use of slsh, which is \
part of the S-Lang distribution.
"
HOMEPAGE="http://www.jedsoft.org/slang/"
SRC_URI="ftp://space.mit.edu/pub/davis/slang/v2.2/slang-2.2.4.tar.bz2"
CHECKSUM_MD5="7fcfd447e378f07dd0c0bae671fe6487"
LICENSE="GNU GPL v2"
COPYRIGHT="2004-2013 John E. Davis"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86"
PATCHES="slang-${portVersion}.patchset"
PROVIDES="
slang = $portVersion compat >= 2.2
lib:libslang = $portVersion compat >= 2.2
cmd:slsh = $portVersion compat >= 2.2
"
REQUIRES="
haiku
lib:libpcre
lib:libiconv
lib:libpng
lib:libz
"
BUILD_REQUIRES="
devel:libncurses
devel:libpcre
devel:libiconv
devel:libpng
devel:libz
"
BUILD_PREREQUIRES="
haiku_devel
cmd:autoconf
cmd:find
cmd:gcc
cmd:ld
cmd:make
cmd:ncurses5_config
"
GLOBAL_WRITABLE_FILES="
settings/slsh.rc keep-old
"
BUILD()
{
runConfigure ./configure \
--with-pnglib=$libDir \
--with-pnginc=$includeDir \
--with-zlib=$libDir \
--with-zinc=$includeDir \
--with-iconvlib=$libDir \
--with-iconvinc=$includeDir \
--with-pcrelib=$libDir \
--with-pcreinc=$includeDir
#--with-oniglib=$libDir \
#--with-oniginc=$includeDir
make
}
INSTALL()
{
make install
fixPkgconfig
prepareInstalledDevelLibs libslang
packageEntries devel $developDir
}
PROVIDES_devel="
slang_devel = $portVersion compat >= 2.2
devel:libslang = $portVersion compat >= 2.2
"
REQUIRES_devel="
slang == $portVersion
"