1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/multimedia/kooha/files/patch-build-aux_cargo.sh
Tobias Kortkamp eeb4b50dde
Uses/cargo: Unbreak ports with CARGO_BUILD_TARGET set
While here fix their WITH_DEBUG builds too.
2021-09-19 11:03:22 +02:00

19 lines
623 B
Bash

--- build-aux/cargo.sh.orig 2021-09-10 08:14:31 UTC
+++ build-aux/cargo.sh
@@ -8,13 +8,13 @@ export CARGO_HOME="$MESON_BUILD_ROOT"/cargo-home
if [ "$4" = "Devel" ]
then
echo "DEBUG MODE"
cargo build --manifest-path \
"$MESON_SOURCE_ROOT"/Cargo.toml && \
- cp "$CARGO_TARGET_DIR"/debug/$5 $3
+ cp "$CARGO_TARGET_DIR"/$CARGO_BUILD_TARGET/debug/$5 $3
else
echo "RELEASE MODE"
cargo build --manifest-path \
"$MESON_SOURCE_ROOT"/Cargo.toml --release && \
- cp "$CARGO_TARGET_DIR"/release/$5 $3
+ cp "$CARGO_TARGET_DIR"/$CARGO_BUILD_TARGET/release/$5 $3
fi