Skip to content
Draft
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
20 changes: 10 additions & 10 deletions src/wiki/development/build-instructions-openbsd.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ cd PrismLauncher

## Building

Tested on OpenBSD 7.0-alpha i386. It should also work on older versions.
Tested on OpenBSD 7.5 amd64. It should also work on older versions.

### Build dependencies

- A C++ compiler capable of building C++11 code (included in base system).
- Qt Development tools 5.12 or newer ([meta/qt5](https://openports.se/meta/qt5)).
- cmake 3.1 or newer ([devel/cmake](https://openports.se/devel/cmake)).
- extra-cmake-modules ([devel/kf5/extra-cmake-modules](https://openports.se/devel/kf5/extra-cmake-modules))
- Qt Development tools 6.6 or newer ([meta/qt6](https://openports.pl/meta/qt6)).
- cmake 3.1 or newer ([devel/cmake](https://openports.pl/devel/cmake)).
- extra-cmake-modules ([devel/kf5/extra-cmake-modules](https://openports.pl/devel/kf5/extra-cmake-modules))
- zlib (included in base system).
- Java JDK ([devel/jdk-1.8](https://openports.se/devel/jdk/1.8)).
- Java JDK ([devel/jdk-1.8](https://openports.pl/devel/jdk/1.8)).
- GL headers (included in base system).
- lwjgl ([games/lwjgl](https://openports.se/games/lwjgl) and [games/lwjgl3](https://openports.se/games/lwjgl3)).
- lwjgl ([games/lwjgl](https://openports.pl/games/lwjgl) and [games/lwjgl3](https://openports.pl/games/lwjgl3)).

You can use IDEs, like KDevelop or QtCreator, to open the CMake project if you want to work on the code.

Expand All @@ -44,7 +44,7 @@ You can use IDEs, like KDevelop or QtCreator, to open the CMake project if you w
mkdir install
# configure the project
cmake -S . -B build \
-DCMAKE_INSTALL_PREFIX=./install -DCMAKE_PREFIX_PATH=/usr/local/lib/qt5/cmake -DENABLE_LTO=ON
-DCMAKE_INSTALL_PREFIX=./install -DCMAKE_PREFIX_PATH=/usr/local/lib/qt6/cmake -DENABLE_LTO=ON
# build
cd build
make -j$(nproc) install
Expand All @@ -60,11 +60,11 @@ This is the preferred method of installation, and is suitable for packages.
cmake -S . -B build \
  -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/usr/local" \ # /usr/local is default in OpenBSD and FreeBSD
-DCMAKE_PREFIX_PATH=/usr/local/lib/qt5/cmake # use linux layout and point to qt5 libs
-DCMAKE_PREFIX_PATH=/usr/local/lib/qt6/cmake # use linux layout and point to qt5 libs
-DENABLE_LTO=ON # if you want to enable LTO/IPO
-DLauncher_QT_VERSION_MAJOR="5"
-DLauncher_QT_VERSION_MAJOR="6"
cd build
make -j$(nproc) install # Optionally specify DESTDIR for packages (i.e. DESTDIR=${pkgdir})
```
<!-- no IDEs and Tooling for OpenBSD for now, If someone wants to add any tools here feel free to do so
## IDEs and Tooling -->
## IDEs and Tooling -->