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

Ports: Make array-like settings actual arrays

We may need entries with spaces in makeopts, installopts, and
configopts, and at that point we should also convert depends and
auth_opts to avoid confusion.
This commit is contained in:
Tim Schumacher 2021-09-27 00:16:18 +02:00 committed by Andreas Kling
parent e507cfcdb0
commit c07f91474d
149 changed files with 352 additions and 345 deletions

View file

@ -12,20 +12,20 @@ configure() {
run aclocal
run automake --add-missing
run mkdir -p host-build
run sh -c "cd host-build && ../configure $configopts CFLAGS=-I."
run sh -c "cd host-build && ../configure ${configopts[@]} CFLAGS=-I."
target_env
run mkdir -p target-build
run sh -c "cd target-build && ../configure --host="${SERENITY_ARCH}-pc-serenity" --disable-helpers $configopts CFLAGS=-I."
run sh -c "cd target-build && ../configure --host="${SERENITY_ARCH}-pc-serenity" --disable-helpers ${configopts[@]} CFLAGS=-I."
}
build() {
host_env
run sh -c "cd host-build && make $makeopts"
run sh -c "cd host-build && make ${makeopts[@]}"
run cp host-build/src/{mkinit,mksyntax,mknodes,mksignames} src
target_env
run sh -c "cd target-build && make $makeopts"
run sh -c "cd target-build && make ${makeopts[@]}"
}
install() {
run sh -c "cd target-build && make DESTDIR="${SERENITY_INSTALL_ROOT}" $installopts install"
run sh -c "cd target-build && make DESTDIR="${SERENITY_INSTALL_ROOT}" ${installopts[@]} install"
}