Skip to content

Commit

Permalink
Add Woof! (#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
d10sfan authored Feb 24, 2024
1 parent 4fd8bbd commit 7f8a34c
Show file tree
Hide file tree
Showing 5 changed files with 187 additions and 1 deletion.
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"
}
]
}
}

0 comments on commit 7f8a34c

Please sign in to comment.