Ports: Support pre_configure script

This is useful if we want to do something after patching but before
running the configure script - e.g. creating the configure script using
another script :^)
This commit is contained in:
Linus Groh 2020-04-15 13:54:23 +01:00 committed by Andreas Kling
parent 6b513ca97e
commit 7feb48b1da
Notes: sideshowbarker 2024-07-19 07:34:52 +09:00

View File

@ -144,6 +144,9 @@ func_defined patch_internal || patch_internal() {
done
fi
}
func_defined pre_configure || pre_configure() {
:
}
func_defined configure || configure() {
run ./"$configscript" --host=i686-pc-serenity $configopts
}
@ -242,6 +245,7 @@ do_patch() {
do_configure() {
if [ "$useconfigure" = "true" ]; then
echo "Configuring $port!"
pre_configure
chmod +x "${workdir}"/"$configscript"
configure
else