Ports: Improve configure script

Just a small modification so that ports that are configured e.g.
using cmake don't need a dummy configure file anymore.
This commit is contained in:
TheMorc 2021-01-22 17:09:40 +01:00 committed by Andreas Kling
parent ffc51853bf
commit d4668507d4
Notes: sideshowbarker 2024-07-18 22:51:28 +09:00

View File

@ -151,6 +151,7 @@ func_defined pre_configure || pre_configure() {
:
}
func_defined configure || configure() {
chmod +x "${workdir}"/"$configscript"
run ./"$configscript" --host=i686-pc-serenity $configopts
}
func_defined build || build() {
@ -252,7 +253,6 @@ do_configure() {
if [ "$useconfigure" = "true" ]; then
echo "Configuring $port!"
pre_configure
chmod +x "${workdir}"/"$configscript"
configure
else
echo "This port does not use a configure script. Skipping configure step."