Package list libsdl2-mixer / a276d8c
d/tests/libsdl2-mixer-dev: Be cross-compilation-friendly Simon McVittie 1 year, 4 months ago
1 changed file(s) with 8 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1111 trap 'cd /; rm -fr "$WORKDIR"' 0 INT QUIT ABRT PIPE TERM
1212 fi
1313
14 if [ -n "${DEB_HOST_GNU_TYPE:-}" ]; then
15 CROSS_COMPILE="$DEB_HOST_GNU_TYPE-"
16 else
17 CROSS_COMPILE=
18 fi
19
1420 export SDL_AUDIODRIVER=dummy
1521
1622 cp playmus.c "$WORKDIR"
2026
2127 # Deliberately word-splitting pkg-config's output:
2228 # shellcheck disable=SC2046
23 gcc -oplaymus playmus.c $(pkg-config --cflags --libs SDL2_mixer)
29 "${CROSS_COMPILE}gcc" -oplaymus playmus.c $("${CROSS_COMPILE}pkg-config" --cflags --libs SDL2_mixer)
2430 # shellcheck disable=SC2046
25 gcc -oplaywave playwave.c $(pkg-config --cflags --libs SDL2_mixer)
31 "${CROSS_COMPILE}gcc" -oplaywave playwave.c $("${CROSS_COMPILE}pkg-config" --cflags --libs SDL2_mixer)
2632
2733 set -- xvfb-run -a
2834