Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Woof! #1095

Merged
merged 3 commits into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions engines/woof/assets/run-woof.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

cd ./woof

if [[ -z "${SDL_SOUNDFONTS}" ]]; then
echo "Setting default soundfont"
export SDL_SOUNDFONTS="fluid-soundfont-3.1/FluidR3_GM.sf2"
fi

export LD_LIBRARY_PATH="lib:$LD_LIBRARY_PATH"
./woof "$@"
29 changes: 29 additions & 0 deletions engines/woof/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

export LDFLAGS=-L"$VCPKG_INSTALLED_PATH/lib"
export LIBRARY_PATH="$VCPKG_INSTALLED_PATH/lib"

# CLONE PHASE
git clone https://github.com/fabiangreffrath/woof.git source
pushd source
git checkout cf23b4b
popd

# BUILD PHASE
pushd "source"
mkdir -p build
cd build
cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_PREFIX_PATH="$VCPKG_INSTALLED_PATH" \
..
make -j "$(nproc)"
popd

# COPY PHASE
cp -rfv "source/build/src/woof" "$diststart/common/dist/"
cp -rfv "source/autoload" "$diststart/common/dist/"
cp -rfv "source/docs" "$diststart/common/dist/"
cp -rfv "source/soundfonts" "$diststart/common/dist/"

cp -rfv assets/* "$diststart/common/dist/"
6 changes: 6 additions & 0 deletions engines/woof/env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#!/bin/bash

export STEAM_APP_ID_LIST="2280 2300 2290"
export LICENSE_PATH="./source/COPYING"
export COMMON_PACKAGE="1"
7 changes: 7 additions & 0 deletions engines/woof/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"dependencies": [
{ "name": "fluidsynth", "features": ["pulseaudio"] },
{ "name": "sdl2-mixer", "features": ["fluidsynth"] }
]
}
135 changes: 134 additions & 1 deletion metadata/packagessniper_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,29 @@
}
]
},
{
"name": "Woof!",
"engine_name": "Woof!",
"command": "./woof/run-woof.sh",
"command_args": [
"-iwad",
"../base/DOOM.WAD"
],
"download": [
"woof",
"fluid-soundfont"
],
"download_config": [
{
"extract_location": "./woof",
"download_name": "woof"
},
{
"extract_location": "./woof",
"download_name": "fluid-soundfont"
}
]
},
{
"name": "Eternity Engine",
"engine_name": "Eternity Engine",
Expand Down Expand Up @@ -1103,6 +1126,42 @@
}
]
},
{
"name": "Woof!",
"engine_name": "Woof!",
"commands": [
{
"cmd": "./woof/run-woof.sh",
"args": [
"-iwad",
"../base/PLUTONIA.WAD"
],
"command_name": ".*plutoniam?.conf"
},
{
"cmd": "./woof/run-woof.sh",
"args": [
"-iwad",
"../base/TNT.WAD"
],
"command_name": ".*tntm?.conf"
}
],
"download": [
"woof",
"fluid-soundfont"
],
"download_config": [
{
"extract_location": "./woof",
"download_name": "woof"
},
{
"extract_location": "./woof",
"download_name": "fluid-soundfont"
}
]
},
{
"name": "Russian Doom",
"engine_name": "Russian Doom",
Expand Down Expand Up @@ -1839,6 +1898,65 @@
}
]
},
{
"name": "Woof!",
"commands": [
{
"cmd": "./woof/run-woof.sh",
"args": [
"-iwad",
"../base/DOOM2.WAD"
],
"command_name": ".*rerelease"
},
{
"cmd": "./woof/run-woof.sh",
"args": [
"-iwad",
"../base/DOOM2.WAD"
],
"command_name": ".*doom2"
},
{
"cmd": "./woof/run-woof.sh",
"args": [
"-iwad",
"../finaldoombase/TNT.WAD"
],
"command_name": ".*tnt"
},
{
"cmd": "./woof/run-woof.sh",
"args": [
"-iwad",
"../finaldoombase/PLUTONIA.WAD"
],
"command_name": ".*plutonia"
},
{
"cmd": "/bin/sh",
"args": [
"-c",
"echo \"Please use gzdoom for master levels.\" > last_error.txt && exit 10"
],
"command_name": ".*master"
}
],
"download": [
"woof",
"fluid-soundfont"
],
"download_config": [
{
"extract_location": "./woof",
"download_name": "woof"
},
{
"extract_location": "./woof",
"download_name": "fluid-soundfont"
}
]
},
{
"name": "Eternity Engine",
"commands": [
Expand Down Expand Up @@ -9724,6 +9842,21 @@
"controllerSupported": true,
"engine_name": "DOOM Retro"
},
{
"engine_link": "https://github.com/fabiangreffrath/woof",
"version": "14.0.0",
"author": "d10sfan",
"author_link": "https://github.com/d10sfan",
"license": "GPLv2",
"license_link": "https://github.com/fabiangreffrath/woof/blob/master/COPYING",
"notices": [
{
"label": "Downloads FluidR3_GM.sf2 automatically. Can override SDL_SOUNDFONTS in launch options."
}
],
"controllerSupported": true,
"engine_name": "Woof!"
},
{
"engine_link": "https://github.com/odamex/odamex",
"version": "0880dd0",
Expand Down Expand Up @@ -10313,4 +10446,4 @@
"value": "Save Format Not Compatible"
}
]
}
}