parent
149d354816
commit
4a69eb83e4
1 changed files with 35 additions and 0 deletions
35
scripts.d/50-gme.sh
Executable file
35
scripts.d/50-gme.sh
Executable file
|
@ -0,0 +1,35 @@
|
|||
#!/bin/bash
|
||||
|
||||
GME_REPO="https://bitbucket.org/mpyne/game-music-emu.git"
|
||||
GME_COMMIT="013d4676c689dc49f363f99dcfb8b88f22278236"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
}
|
||||
|
||||
ffbuild_dockerstage() {
|
||||
to_df "ADD $SELF /stage.sh"
|
||||
to_df "RUN run_stage"
|
||||
}
|
||||
|
||||
ffbuild_dockerbuild() {
|
||||
git-mini-clone "$GME_REPO" "$GME_COMMIT" gme
|
||||
cd gme
|
||||
|
||||
mkdir build && cd build
|
||||
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF -DENABLE_UBSAN=OFF ..
|
||||
make -j$(nproc)
|
||||
make install
|
||||
|
||||
cd ../..
|
||||
rm -rf gme
|
||||
}
|
||||
|
||||
ffbuild_configure() {
|
||||
echo --enable-libgme
|
||||
}
|
||||
|
||||
ffbuild_unconfigure() {
|
||||
echo --disable-libgme
|
||||
}
|
Loading…
Reference in a new issue