9fa27ababe
Changelogs: https://github.com/omf2097/openomf/releases/tag/0.7.0 https://github.com/omf2097/openomf/releases/tag/0.7.1 https://github.com/omf2097/openomf/releases/tag/0.8.0 https://github.com/omf2097/openomf/releases/tag/0.8.1-rc2 https://github.com/omf2097/openomf/releases/tag/0.8.1-rc3 https://github.com/omf2097/openomf/releases/tag/0.8.1 https://github.com/omf2097/openomf/releases/tag/0.8.2 https://github.com/omf2097/openomf/releases/tag/0.8.3-fk1 https://github.com/omf2097/openomf/releases/tag/0.8.3 Improve port: - Add github to WWW. - Add LICENSE. - Switch to default cmake build instead of cmake:insource. - Parapetrize "openomf" with "${PORTNAME}" in several places. - Fix warnings from portclippy and portlint. PR: 289093 Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
17 lines
1.0 KiB
C
17 lines
1.0 KiB
C
--- src/resources/pathmanager.c.orig 2016-01-10 17:37:25 UTC
|
|
+++ src/resources/pathmanager.c
|
|
@@ -133,6 +133,13 @@ int pm_init() {
|
|
local_path_build(RESOURCE_PATH, bin_base_dir, "../share/games/openomf/");
|
|
local_path_build(SHADER_PATH, bin_base_dir, "../share/games/openomf/shaders/");
|
|
m_ok = 1;
|
|
+ } else if(strcmp(SDL_GetPlatform(), "FreeBSD") == 0) {
|
|
+ // on FreeBSD, the resources will be in ../share/openomf, relative to the binary
|
|
+ // so if openomf is installed to %%PREFIX%%/bin,
|
|
+ // the resources will be in %%PREFIX%%/share/openomf
|
|
+ local_path_build(RESOURCE_PATH, bin_base_dir, "../share/openomf/");
|
|
+ local_path_build(SHADER_PATH, bin_base_dir, "../share/openomf/shaders/");
|
|
+ m_ok = 1;
|
|
} else if(strcmp(SDL_GetPlatform(), "Mac OS X") == 0) {
|
|
// on OSX, GetBasePath returns the 'Resources' directory
|
|
// if run from an app bundle, so we can use this as-is
|