Files
haikuports/dev-lang/lazarus/lazarus_bin-3.2.recipe
2024-03-22 08:05:48 +01:00

80 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-2024 Lazarus and Free Pascal Team"
LICENSE="GNU GPL v2
GNU LGPL v2"
REVISION="1"
srcGitRev="81ba4eafd381dffe289dbd4d1ef9a74528aef9dc"
SOURCE_URI="https://codeberg.org/Begasus/Lazarus_Haiku/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="41715877a89dcc9a143239b5320b796bff971081c8ecffef474fc25791837351"
SOURCE_FILENAME="lazarus_bin-$portVersion.tar.gz"
SOURCE_DIR="lazarus_haiku"
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 $dataDir $libDir $manDir
cp -a bin/* $binDir
cp -a data/* $dataDir
cp -a lib/* $libDir
cp -a documentation/man/* $manDir
# cleanup
rm -rf $dataDir/{applications,icons,mime,pixmaps}
# add resources
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2 | cut -d_ -f1`"
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 \
$dataDir/lazarus
}