[compat] openbsd port fixes

Signed-off-by: lizzie <lizzie@eden-emu.dev>

[docs] building instructions for openbsd

Signed-off-by: lizzie <lizzie@eden-emu.dev>

[docs] openbsd docs use /usr/obj

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie 2025-08-17 01:54:52 +00:00 committed by crueter
parent 10dd003d0f
commit 0be966deb1
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6
6 changed files with 25 additions and 6 deletions

View file

@ -50,7 +50,9 @@ CMAKE_DEPENDENT_OPTION(ENABLE_SDL2 "Enable the SDL2 frontend" ON "NOT ANDROID" O
set(EXT_DEFAULT ON) set(EXT_DEFAULT ON)
if (PLATFORM_FREEBSD) # See https://github.com/llvm/llvm-project/issues/123946
# OpenBSD va_list doesn't play nice with precompiled headers
if (PLATFORM_FREEBSD OR PLATFORM_OPENBSD)
set(EXT_DEFAULT OFF) set(EXT_DEFAULT OFF)
endif() endif()

View file

@ -63,6 +63,7 @@ If you would like to contribute, we are open to new developers and pull requests
* **Solaris**: [Solaris Building Guide](./docs/build/Solaris.md) * **Solaris**: [Solaris Building Guide](./docs/build/Solaris.md)
* **FreeBSD**: [FreeBSD Building Guide](./docs/build/FreeBSD.md) * **FreeBSD**: [FreeBSD Building Guide](./docs/build/FreeBSD.md)
* **macOS**: [macOS Building Guide](./docs/build/macOS.md) * **macOS**: [macOS Building Guide](./docs/build/macOS.md)
* **OpenBSD**: [OpenBSD Building Guide](./docs/build/OpenBSD.md)
## Download ## Download

View file

@ -6,6 +6,7 @@
* **Solaris**: [Solaris Building Guide](./build/Solaris.md) * **Solaris**: [Solaris Building Guide](./build/Solaris.md)
* **FreeBSD**: [FreeBSD Building Guide](./build/FreeBSD.md) * **FreeBSD**: [FreeBSD Building Guide](./build/FreeBSD.md)
* **macOS**: [macOS Building Guide](./build/macOS.md) * **macOS**: [macOS Building Guide](./build/macOS.md)
* **OpenBSD**: [OpenBSD Building Guide](./build/OpenBSD.md)
# CPM # CPM

15
docs/build/OpenBSD.md vendored Normal file
View file

@ -0,0 +1,15 @@
# Building for OpenBSD
```sh
pkg_add -u
pkg_add cmake nasm git boost unzip--iconv autoconf-2.72p0 bash ffmpeg glslang g++-11.2.0p18 gmake
git --recursive https://git.eden-emu.dev/eden-emu/eden
```
Select g++-11.2. The compiler can then be invoked via `ec++`.
```sh
cmake -DDYNARMIC_USE_PRECOMPILED_HEADERS=OFF -DCMAKE_BUILD_TYPE=Debug -DENABLE_QT=OFF -DENABLE_OPENSSL=OFF -DENABLE_WEB_SERVICE=OFF -B /usr/obj/eden
```
- Modify `externals/ffmpeg/CMakeFiles/ffmpeg-build/build.make` to use `-j$(nproc)` instead of just `-j`.

View file

@ -7,7 +7,7 @@
#include <boost/asio.hpp> #include <boost/asio.hpp>
#include <boost/version.hpp> #include <boost/version.hpp>
#if BOOST_VERSION > 108300 && (!defined(_WINDOWS) && !defined(ANDROID)) || defined(YUZU_BOOST_v1) #if BOOST_VERSION > 108400 && (!defined(_WINDOWS) && !defined(ANDROID)) || defined(YUZU_BOOST_v1)
#define USE_BOOST_v1 #define USE_BOOST_v1
#endif #endif

View file

@ -62,10 +62,10 @@ AddJsonPackage(
# unordered_dense # unordered_dense
# AddJsonPackage( AddJsonPackage(
# NAME unordered-dense NAME unordered-dense
# BUNDLED_PACKAGE ${DYNARMIC_USE_BUNDLED_EXTERNALS} BUNDLED_PACKAGE ${DYNARMIC_USE_BUNDLED_EXTERNALS}
# ) )
# xbyak # xbyak
# uncomment if in an independent repo # uncomment if in an independent repo