1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:47:45 +00:00

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

View file

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