Files
haikuports/x11-libs/scintilla/scintilla-3.6.2.recipe
2015-11-13 17:25:27 +00:00

74 lines
2.1 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="http://scintilla.org"
SOURCE_URI="https://prdownloads.sf.net/scintilla/scintilla362.tgz"
CHECKSUM_SHA256="c279f52298adbbd098d7033e538f0dfd4ed814330b34cf71e30545821dd50e1d"
SOURCE_URI_001="https://prdownloads.sf.net/scintilla/scintillahaiku362.tgz"
CHECKSUM_SHA256_001="8452435d4d523e5b26c0e34f10f4cde7f68c888a41c723646b14187f1dcc8cd7"
SOURCE_DIR="scintilla"
REVISION="1"
LICENSE="Scintilla"
COPYRIGHT="1998-2015 Neil Hodgson"
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
scintilla$secondaryArchSuffix = $portVersion
"
PROVIDES_devel="
scintilla${secondaryArchSuffix}_devel = $portVersion
devel:libscintilla$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
REQUIRES_devel="
haiku${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:ar
cmd:make
cmd:g++$secondaryArchSuffix
"
BUILD()
{
mkdir -p haiku
cp -R ../../sources-001/haiku/ .
cd haiku
make $jobArgs
}
INSTALL()
{
INCLUDE_DIR=$includeDir/scintilla
mkdir -p $libDir
mkdir -p $INCLUDE_DIR
cp -a bin/scintilla.a $libDir/libscintilla.a
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
}