Files
haikuports/dev-lang/lazarus/lazarus_bin-3.8.recipe
2025-01-26 09:17:26 +00:00

76 lines
2.3 KiB
Bash

SUMMARY="Feature rich visual programming environment emulating Delphi"
DESCRIPTION="Lazarus is a Rapid Application Development Tool for Free Pascal. It comes with the \
LCL - Lazarus component library, which contains platform independent visual components like \
buttons, windows, checkbox, treeview and many, many more. The LCL is platform independent, so you \
can write an application once and then compile for various platforms without changing code.
Free Pascal https://www.freepascal.org is a fast Object Pascal compiler, that runs on more than \
20 platforms (Linux, Windows, BSD, OS/2, DOS, PowerPC,and many more)."
HOMEPAGE="https://www.lazarus-ide.org/"
COPYRIGHT="1993-2025 Lazarus and Free Pascal Team"
LICENSE="GNU GPL v2
GNU LGPL v2"
REVISION="1"
srcGitRev="9470bff68c0a4c1afbfaf812145c9d9e37a2a541"
SOURCE_URI="https://codeberg.org/Begasus/Lazarus_Haiku/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="943571329f5c616dc09d99bf004cef341bdc5bdc056ab0f84a8b201ad6a5709b"
SOURCE_FILENAME="lazarus_bin-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="lazarus_haiku/64bit"
ADDITIONAL_FILES="lazarus.rdef.in"
ARCHITECTURES="x86_64"
PROVIDES="
lazarus_bin = $portVersion
cmd:lazarus_ide = $portVersion
cmd:lazbuild = $portVersion
cmd:lazres = $portVersion
cmd:lrstolfm = $portVersion
cmd:startlazarus = $portVersion
cmd:updatepofiles = $portVersion
"
REQUIRES="
haiku
fpc_source
cmd:fpc
lib:libiconv
lib:libQt6Pas
"
PROVIDES_examples="
lazarus_bin_examples
"
REQUIRES_examples="
lazarus_bin == $portVersion base
"
INSTALL()
{
mkdir -p $binDir $libDir $manDir
cp -a bin/* $binDir
cp -a lib/* $libDir
cp -a documentation/man/* $manDir
# add resources
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local APP_NAME="Lazarus-IDE"
local LONG_INFO="$SUMMARY"
local APP_SIGNATURE="application/x-vnd.lazarus"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
-e "s|@APP_NAME@|$APP_NAME|" \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
$portDir/additional-files/lazarus.rdef.in > lazarus.rdef
addResourcesToBinaries lazarus.rdef $binDir/lazarus-ide
addAppDeskbarSymlink $binDir/lazarus-ide Lazarus-IDE
packageEntries examples \
$libDir/lazarus/examples
}