mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:47:44 +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:
parent
e507cfcdb0
commit
c07f91474d
149 changed files with 352 additions and 345 deletions
|
@ -2,10 +2,10 @@
|
|||
port=openttd
|
||||
version=1.11.0
|
||||
auth_type=sha256
|
||||
depends="freetype SDL2 libicu libpng zlib xz openttd-opengfx openttd-opensfx"
|
||||
depends=("freetype" "SDL2" "libicu" "libpng" "zlib" "xz" "openttd-opengfx" "openttd-opensfx")
|
||||
files="https://cdn.openttd.org/openttd-releases/${version}/openttd-${version}-source.tar.xz openttd-${version}.tar.xz 5e65184e07368ba1afa62dbb3e35abaee6c4da6730ff4bc9eb4447d53363c7a8"
|
||||
useconfigure=true
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
|
||||
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
|
||||
launcher_name=OpenTTD
|
||||
launcher_category=Games
|
||||
launcher_command=/usr/local/games/openttd
|
||||
|
@ -22,7 +22,7 @@ configure() {
|
|||
mkdir -p $workdir/build
|
||||
(
|
||||
cd $workdir/build
|
||||
cmake .. $configopts -DHOST_BINARY_DIR=$(pwd)/../host-build
|
||||
cmake .. "${configopts[@]}" -DHOST_BINARY_DIR=$(pwd)/../host-build
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -30,13 +30,13 @@ build() {
|
|||
host_env
|
||||
(
|
||||
cd $workdir/host-build
|
||||
make $makeopts
|
||||
make "${makeopts[@]}"
|
||||
)
|
||||
|
||||
target_env
|
||||
(
|
||||
cd $workdir/build
|
||||
make $makeopts
|
||||
make "${makeopts[@]}"
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue