-
Notifications
You must be signed in to change notification settings - Fork 13
/
paths.m4
20 lines (15 loc) · 939 Bytes
/
paths.m4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
m4_divert(`-1')
m4_define(`def_binaries', `m4_foreachq(`binary', `$2',`environmentalize(binary)=`$1'binary ')')
m4_define(`def_aclocal', `ACLOCAL_PATH="`$1'/share/aclocal"')
m4_define(`def_pkg_config', `PKG_CONFIG_LIBDIR="`$1'/lib/pkgconfig:`$1'/share/pkgconfig"')
m4_define(`crossgen', ``COPY --from=helpers /lib-helpers/meson-crossgen lib-helpers/meson-crossgen''
RUN $4 ``lib-helpers/meson-crossgen'' -o /usr/local/share/meson/cross/cross.ini --system=$1 --cpu=$2 $3)
m4_changequote(`[', `]')
m4_define([define_aliases],
[RUN printf "\
alias scummvm_configure`'m4_ifelse(m4_eval($# > 4), 1, _$5,)='m4_ifelse(m4_eval($# > 3), 1, $4` ',)/data/scummvm/configure --host=$1`'m4_ifelse(m4_eval($# > 2), 1, ` '$3,)'\n\
alias scummvm_build`'m4_ifelse(m4_eval($# > 4), 1, _$5,)='make -j\$(nproc)'\n\
alias scummvm_package`'m4_ifelse(m4_eval($# > 4), 1, _$5,)='make -j\$(nproc) $2'\n\
" >>/etc/bash.bashrc])
m4_changequote
m4_divert`'m4_dnl