Files
haikuports/x11-libs/scintilla/scintilla-3.6.3.recipe
2016-01-17 23:00:57 +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/scintilla363.tgz"
CHECKSUM_SHA256="7a9f11a5da0cf755715ff6ec1464a15eabab8ba95f4a6da41e56513171705636"
SOURCE_URI_001="https://prdownloads.sf.net/scintilla/scintillahaiku363.tgz"
CHECKSUM_SHA256_001="d966f040378049361f797ec1100624c55e2e3969092e62f7555b9a676389e20a"
SOURCE_DIR="scintilla"
REVISION="1"
LICENSE="Scintilla"
COPYRIGHT="1998-2016 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
}