Skip to content

Commit

Permalink
ALL: Add aliases to help building ScummVM
Browse files Browse the repository at this point in the history
The aliases are added to /etc/bash.bashrc in order to let the user mount
something else on the root directory.
  • Loading branch information
lephilousophe committed Sep 7, 2024
1 parent c7f9c96 commit 50509e4
Show file tree
Hide file tree
Showing 27 changed files with 92 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toolchains/amigaos4/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,5 @@ local_package(libsdl2)
local_package(libsdl2_net)

# No fluidsynth

define_aliases(ppc-amigaos, amigaosdist, --enable-plugins --default-dynamic --enable-detection-dynamic)
5 changes: 5 additions & 0 deletions toolchains/android/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ m4_include(`android/packages_list.m4')
ENV ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
# Install SDK using settings above
local_sdk_package(sdk)

define_aliases(android-arm-v7a, androiddistdebug, , , arm)
define_aliases(android-arm64-v8a, androiddistdebug, , , arm64)
define_aliases(android-x86, androiddistdebug, , , x86)
define_aliases(android-x86_64, androiddistdebug, , , x86_64)
2 changes: 2 additions & 0 deletions toolchains/appletv/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ m4_define(`XOS_SDK_BASE',AppleTVOS)m4_dnl
m4_define(`XOS_PLATFORM',tv)m4_dnl

m4_include(`apple/xos.m4')m4_dnl

define_aliases(appletv, tvosbundle, --enable-static --with-staticlib-prefix=${PREFIX})
2 changes: 2 additions & 0 deletions toolchains/caanoo/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,5 @@ local_package(sdl-net1.2)
# TODO: openssl and curl

# fluidsynth is unlikely to be fast enough.

define_aliases(caanoo, caanoo-bundle, --enable-plugins --default-dynamic --enable-vkeybd)
2 changes: 2 additions & 0 deletions toolchains/devkit3ds/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,5 @@ local_package(freetype)
# fribidi is already installed in original toolchain

helpers_package(fluidlite, -DCMAKE_TOOLCHAIN_FILE=${DEVKITPRO}/cmake/3DS.cmake)

define_aliases(3ds, dist_3ds, --enable-plugins --default-dynamic)
2 changes: 2 additions & 0 deletions toolchains/devkitnds/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ ENV \
# zlib is already installed in original toolchain

helpers_package(libmad, --enable-fpm=arm --enable-speed --enable-sso)

define_aliases(ds, dsdist, --enable-plugins --default-dynamic)
3 changes: 3 additions & 0 deletions toolchains/devkitppc/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,6 @@ helpers_package(libvpx, --disable-multithread)
# fribidi is already installed in original-toolchain

# No fluidsynth

define_aliases(gamecube, wiidist, --enable-plugins --default-dynamic --enable-vkeybd, , gamecube)
define_aliases(wii, wiidist, --enable-plugins --default-dynamic --enable-vkeybd, , wii)
2 changes: 2 additions & 0 deletions toolchains/devkitswitch/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,5 @@ helpers_package(libmpcdec)
# sdl2_net is already installed in original toolchain

helpers_package(fluidlite, -DCMAKE_TOOLCHAIN_FILE=${DEVKITPRO}/cmake/Switch.cmake)

define_aliases(switch, switch_release)
2 changes: 2 additions & 0 deletions toolchains/dreamcast/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ ENV \
# zlib is already installed in original toolchain

helpers_package(libmad)

define_aliases(dreamcast, dcdist, --enable-plugins --default-dynamic --enable-vkeybd)
2 changes: 2 additions & 0 deletions toolchains/iphone/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ m4_define(`XOS_SDK_BASE',iPhoneOS)m4_dnl
m4_define(`XOS_PLATFORM',iphone)m4_dnl

m4_include(`apple/xos.m4')m4_dnl

define_aliases(ios7-arm64, ios7bundle, --enable-static --with-staticlib-prefix=${PREFIX})
2 changes: 2 additions & 0 deletions toolchains/m4/android/start.m4
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
m4_dnl For define_aliases macro
m4_include(`paths.m4')m4_dnl
m4_define(`local_sdk_package', COPY packages/$1 lib-helpers/packages/$1/
RUN $3 lib-helpers/packages/$1/build.sh $2)m4_dnl
m4_define(`local_package', COPY packages/$1 lib-helpers/packages/$1/
Expand Down
9 changes: 9 additions & 0 deletions toolchains/m4/paths.m4
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,13 @@ m4_define(`def_pkg_config', `PKG_CONFIG_LIBDIR="`$1'/lib/pkgconfig:`$1'/share/pk
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
4 changes: 4 additions & 0 deletions toolchains/macosx-arm64/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ helpers_package(discord-rpc, -DCMAKE_SYSTEM_NAME=Darwin)
# This package isn't available for i386 so put it here
# It's in macosx-common for any MacOS toolchain
common_package(sparkle)

define_aliases(MACOSX_TARGET_ARCH`'-apple-darwin`'MACOSX_TARGET_VERSION, bundle, \
--enable-static --with-staticlib-prefix=${DESTDIR}/${PREFIX} --with-sparkle-prefix=${DESTDIR}/${PREFIX}/Library/Frameworks --disable-osx-dock-plugin, \
DISCORD_LIBS=\"-framework AppKit\")
2 changes: 2 additions & 0 deletions toolchains/macosx-i386/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ m4_define(`MACOSX_DEPLOYMENT_TARGET',10.6)m4_dnl
m4_define(`MACOSX_ARCHITECTURES',`i386')m4_dnl
m4_define(`MACOSX_PORTS_ARCH_ARG',`--i386')m4_dnl
m4_include(`apple/macosx.m4')m4_dnl

define_aliases(MACOSX_TARGET_ARCH`'-apple-darwin`'MACOSX_TARGET_VERSION, bundle, --enable-static --with-staticlib-prefix=${DESTDIR}/${PREFIX} --disable-osx-dock-plugin)
4 changes: 4 additions & 0 deletions toolchains/macosx-x86_64/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ helpers_package(discord-rpc, -DCMAKE_SYSTEM_NAME=Darwin)
# This package isn't available for i386 so put it here
# It's in macosx-common for any MacOS toolchain
common_package(sparkle)

define_aliases(MACOSX_TARGET_ARCH`'-apple-darwin`'MACOSX_TARGET_VERSION, bundle, \
--enable-static --with-staticlib-prefix=${DESTDIR}/${PREFIX} --with-sparkle-prefix=${DESTDIR}/${PREFIX}/Library/Frameworks --disable-osx-dock-plugin, \
DISCORD_LIBS=\"-framework AppKit\")
2 changes: 2 additions & 0 deletions toolchains/miyoo/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,5 @@ helpers_package(libvpx)
# sdl_net is already installed in original toolchain

helpers_package(fluidlite)

define_aliases(miyoo, sd-root, --disable-detection-full --enable-plugins --default-dynamic)
10 changes: 10 additions & 0 deletions toolchains/mxe/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,13 @@ local_mxe_package(winsparkle)
local_mxe_package(discord-rpc)

local_mxe_package(retrowave)

m4_define(`define_mxe_aliases', `define_aliases(
$1-w64-mingw32.static, win32dist-mingw DESTDIR=win32dist-mingw, , \
CXX=${MXE_PREFIX_DIR}/bin/$1-w64-mingw32.static-c++ \
STRIP=${MXE_PREFIX_DIR}/bin/$1-w64-mingw32.static-strip \
STRINGS=${MXE_PREFIX_DIR}/bin/$1-w64-mingw32.static-strings \
PKG_CONFIG_LIBDIR=${MXE_PREFIX_DIR}/$1-w64-mingw32.static/lib/pkgconfig \
PATH=$PATH:${MXE_PREFIX_DIR}/$1-w64-mingw32.static/bin, $2)')m4_dnl
define_mxe_aliases(i686, x86)
define_mxe_aliases(x86_64, x86_64)
2 changes: 2 additions & 0 deletions toolchains/n64/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ helpers_package(zlib)
helpers_package(libmad)

local_package(libvorbisidec)

define_aliases(n64, , --disable-all-engines --enable-vkeybd)
9 changes: 9 additions & 0 deletions toolchains/opendingux-beta/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,12 @@ helpers_package(fribidi)
# sdl2_net is already installed in original toolchain

# fluidsynth is already installed in original toolchain
m4_define(`define_od_aliases', `define_aliases(
opendingux-$1, od-make-opk, , \
CXX=${OPENDINGUX_ROOT}/$1-toolchain/bin/mipsel-linux-c++ \
PKG_CONFIG_LIBDIR=${OPENDINGUX_ROOT}/$1-toolchain/mipsel-$1-linux-$2/sysroot/usr/lib/pkgconfig \
PKG_CONFIG_SYSROOT_DIR=${OPENDINGUX_ROOT}/$1-toolchain/mipsel-$1-linux-$2/sysroot \
PATH=$PATH:${OPENDINGUX_ROOT}/$1-toolchain/mipsel-$1-linux-$2/sysroot/usr/bin:${OPENDINGUX_ROOT}/$1-toolchain/bin, $1)')m4_dnl
define_od_aliases(gcw0, uclibc)
define_od_aliases(lepus, musl)
define_od_aliases(rs90, musl)
2 changes: 2 additions & 0 deletions toolchains/opendingux/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,5 @@ local_package(sdl-net1.2)
# TODO: openssl and curl

# fluidsynth is unlikely to be fast enough.

define_aliases(dingux, dingux-dist, --enable-plugins --default-dynamic --enable-vkeybd)
2 changes: 2 additions & 0 deletions toolchains/openpandora/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,5 @@ local_package(gnutls)
local_package(curl)

# fluidsynth is unlikely to be fast enough.

define_aliases(openpandora, op-pnd, --enable-plugins --default-dynamic --enable-vkeybd)
2 changes: 2 additions & 0 deletions toolchains/ps3/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ ENV \
def_aclocal(`${PREFIX}') \
def_pkg_config(`${PREFIX}') \
PATH=$PATH:${PS3DEV}/bin:${PS3DEV}/ppu/bin:${PS3DEV}/spu/bin:${PS3DEV}/portlibs/ppu/bin

define_aliases(ps3, ps3pkg)
2 changes: 2 additions & 0 deletions toolchains/psp/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,5 @@ ENV \
helpers_package(giflib,,CFLAGS="${CFLAGS} -fno-PIC")

helpers_package(fribidi)

define_aliases(psp, , --disable-debug --enable-plugins --default-dynamic)
2 changes: 2 additions & 0 deletions toolchains/raspberrypi/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ ENV \
PKG_CONFIG_LIBDIR=${RPI_ROOT}/usr/lib/$HOST/pkgconfig:${RPI_ROOT}/usr/share/pkgconfig \
PKG_CONFIG_SYSROOT_DIR=${RPI_ROOT} \
PATH=$PATH:${RPI_HOME}/bin:${RPI_ROOT}/usr/bin

define_aliases(raspberrypi, dist-generic)
10 changes: 10 additions & 0 deletions toolchains/riscos/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,13 @@ COPY packages/libsdl1.2 lib-helpers/packages/libsdl1.2/
helpers_package(libsdl1.2)

# helpers_package(sdl-net1.2)

m4_define(`define_riscos_aliases', `define_aliases(
$1, riscosdist, --enable-plugins --default-dynamic, \
CFLAGS=\"-isysroot ${PREFIX}/$2include \${CFLAGS} \${CFLAGS_$3}\" \
CPPFLAGS=\"-isysroot ${PREFIX}/$2include \${CPPFLAGS} \${CPPFLAGS_$3}\" \
CXXFLAGS=\"-isysroot ${PREFIX}/$2include \${CXXFLAGS} \${CXXFLAGS_$3}\" \
LDFLAGS=\"-isysroot ${PREFIX}/$2lib \${LDFLAGS} \${LDFLAGS_$3}\" \
PKG_CONFIG_LIBDIR=${PREFIX}/$2lib/pkgconfig`'m4_ifelse(m4_eval($# > 3), 1, `, '$4,))')m4_dnl
define_riscos_aliases(arm-unknown-riscos, , STD)
define_riscos_aliases(arm-vfp-riscos, vfp/, VFP, vfp)
2 changes: 2 additions & 0 deletions toolchains/vita/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,5 @@ vdpm_package(FluidLite)
vdpm_package(sdl2)

vdpm_package(sdl2_net)

define_aliases(psp2, psp2vpk, --enable-plugins)
2 changes: 2 additions & 0 deletions toolchains/windows-9x/Dockerfile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@ RUN ln -s ${PREFIX}/bin/sdl-config ${PREFIX}/../bin/${HOST}-sdl-config

COPY packages/retrowave lib-helpers/packages/retrowave/
helpers_package(retrowave, -DCMAKE_SYSTEM_NAME=Windows)

define_aliases(mingw32, win32dist-mingw, --disable-windows-unicode --disable-enet)

0 comments on commit 50509e4

Please sign in to comment.