Files
haikuports/x11-libs/scintilla/scintilla-4.1.2.recipe
2018-10-07 20:20:05 +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://prdownloads.sf.net/scintilla/scintilla${portVersion//\./}.tgz"
CHECKSUM_SHA256="8c54787600fbefa5240ff3c4ac1c84fa186a445091377dde8194a4f1e1471d52"
SOURCE_DIR="scintilla"
SOURCE_URI_2="https://prdownloads.sf.net/scintilla/scintillahaiku${portVersion//\./}.tgz"
CHECKSUM_SHA256_2="dc846ab45b47dcfa87829babccb50ee3da40301d6de4124ba92417957a5c0bb3"
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
}