Files
haikuports/x11-libs/scintilla/scintilla-4.1.1.recipe
2018-09-11 21:22:01 +02:00

76 lines
2.2 KiB
Bash

SUMMARY="A free source code editing component"
DESCRIPTION="Scintilla is a free source code editing component. It comes with \
complete source code and a license that permits use in any free project or \
commercial product.
As well as features found in standard text editing components, \
Scintilla includes features especially useful when editing and debugging \
source code. These include support for syntax styling, error indicators, code \
completion and call tips. The selection margin can contain markers like those \
used in debuggers to indicate breakpoints and the current line. Styling \
choices are more open than with many editors, allowing the use of \
proportional fonts, bold and italics, multiple foreground and background \
colours and multiple fonts."
HOMEPAGE="https://scintilla.org"
COPYRIGHT="1998-2018 Neil Hodgson"
LICENSE="Scintilla"
REVISION="1"
SOURCE_URI="https://scintilla.org/scintilla411.tgz"
CHECKSUM_SHA256="8484ab7ca37a130e6811ffcdaf3f86c7971435fc2a1fa6bcafab6ee46a311980"
SOURCE_DIR="scintilla"
SOURCE_URI_2="https://downloads.sf.net/scintilla/scintillahaiku411.tgz"
CHECKSUM_SHA256_2="ed8ee746c2613ceb296e8d42c707086d7bfb8cc8ca7588c66349ad109e07cee6"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
scintilla$secondaryArchSuffix = $portVersion
lib:libscintilla$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
scintilla${secondaryArchSuffix}_devel = $portVersion
devel:libscintilla$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
scintilla$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:ar
cmd:g++$secondaryArchSuffix
cmd:make
"
BUILD()
{
mkdir -p haiku
cp -R $sourceDir2/haiku/ .
cd haiku
make $jobArgs
}
INSTALL()
{
INCLUDE_DIR=$includeDir/scintilla
mkdir -p $libDir
mkdir -p $INCLUDE_DIR
cp -a bin/libscintilla.so $libDir/libscintilla.so
cp include/ILoader.h $INCLUDE_DIR
cp include/*Lexer.h $INCLUDE_DIR
cp include/Sci_Position.h $INCLUDE_DIR
cp include/Scintilla.h $INCLUDE_DIR
cp haiku/ScintillaView.h $INCLUDE_DIR
prepareInstalledDevelLibs libscintilla
packageEntries devel $developDir
}