From 7feb48b1daca1ca23cb3cce762c039c71a722679 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 15 Apr 2020 13:54:23 +0100 Subject: [PATCH] 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 :^) --- Ports/.port_include.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index 0f162ba615..a7af9aaa01 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -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