deb: env opts for linux arm64

This commit is contained in:
mattias 2024-09-30 15:33:37 +02:00
parent 093f489b9b
commit 94b543ea66
2 changed files with 46 additions and 1 deletions

View File

@ -134,6 +134,11 @@ LazDestDir=$LazBuildDir/usr/share/lazarus/${LazVersion}
LazDestDirInstalled=/usr/share/lazarus/${LazVersion}
Pas2jsVer=
EnvOpts=$EtcSrcDir/environmentoptions-$Arch.xml
if [ ! -f $EnvOpts ]; then
EnvOpts=$EtcSrcDir/environmentoptions.xml
fi
echo "ppcbin=$ppcbin"
echo "LazVersion=$LazVersion"
echo "FPCVersion=$FPCVersion"
@ -262,7 +267,7 @@ done
# default configs
mkdir -p $LazBuildDir/etc/lazarus
cat $EtcSrcDir/environmentoptions.xml | \
cat $EnvOpts | \
sed -e "s#__LAZARUSDIR__#$LazDestDirInstalled/#" \
-e "s#__FPCSRCDIR__#/usr/share/fpcsrc/\$(FPCVER)/#" \
> $LazBuildDir/etc/lazarus/environmentoptions.xml

View File

@ -0,0 +1,40 @@
<?xml version="1.0"?>
<CONFIG>
<EnvironmentOptions>
<Version Value="110" Lazarus="3.99.0"/>
<LazarusDirectory Value="__LAZARUSDIR__">
<History Count="1">
<Item1 Value="/usr/lib/lazarus/"/>
</History>
</LazarusDirectory>
<CompilerFilename Value="/usr/bin/fpc">
<History Count="3">
<Item1 Value="/usr/local/bin/fpc"/>
<Item2 Value="/usr/bin/fpc"/>
<Item3 Value="/opt/fpc/fpc"/>
</History>
</CompilerFilename>
<FPCSourceDirectory Value="__FPCSRCDIR__">
<History Count="2">
<Item1 Value="/usr/share/fpcsrc/"/>
<Item2 Value="/usr/share/fpcsrc/$(FPCVER)/"/>
</History>
</FPCSourceDirectory>
<MakeFilename>
<History Count="1">
<Item1 Value="/usr/bin/make"/>
</History>
</MakeFilename>
<TestBuildDirectory Value="~/tmp/">
<History Count="2">
<Item1 Value="/tmp/"/>
<Item2 Value="/var/tmp/"/>
</History>
</TestBuildDirectory>
<Debugger>
<Configs>
<Config ConfigName="Gdb" ConfigClass="TGDBMIDebugger" Active="True" DebuggerFilename="/usr/bin/gdb"/>
</Configs>
</Debugger>
</EnvironmentOptions>
</CONFIG>