Skip to content

Commit

Permalink
Improved OpenBSD supported
Browse files Browse the repository at this point in the history
  • Loading branch information
ooxi committed Oct 31, 2012
1 parent 9cdb3f5 commit 8e5456f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Legend
Upcoming release
----------------

* `[!]` Improved OpenBSD Support
* `[+]` As of [issue 64](https://github.com/ooxi/violetland/pull/64) the control style can be toggled between "classic" and "modern"
* `[*]` Added more available video modes in [issue 63](https://github.com/ooxi/violetland/pull/63), since auto detection doesn't seam to work
* `[!]` Fixed i18n support in [issue 62](https://github.com/ooxi/violetland/pull/62)
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ find_package(SDL_image REQUIRED)
find_package(SDL_ttf REQUIRED)
find_package(SDL_mixer REQUIRED)
find_package(OpenGL REQUIRED)
find_package(Gettext REQUIRED)
find_package(Boost COMPONENTS filesystem system REQUIRED)
add_definitions(-DBOOST_FILESYSTEM_VERSION=2)

if(${MINGW})
set(INTL_LIBRARY intl)
endif(${MINGW})

set(incDirList ${SDL_INCLUDE_DIR} ${SDLIMAGE_INCLUDE_DIR} ${SDLTTF_INCLUDE_DIR} ${SDLMIXER_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR} ${Boost_INCLUDE_DIRS})
set(incDirList ${SDL_INCLUDE_DIR} ${SDLIMAGE_INCLUDE_DIR} ${SDLTTF_INCLUDE_DIR} ${SDLMIXER_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${GETTEXT_INCLUDE_DIR})
set(libList ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} ${SDLTTF_LIBRARY} ${SDLMIXER_LIBRARY} ${OPENGL_LIBRARIES} ${Boost_LIBRARIES} ${INTL_LIBRARY})

if (DEFINED LOCALE_INSTALL_DIR)
Expand Down
2 changes: 1 addition & 1 deletion src/system/utility/FileUtility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ FileUtility::FileUtility(char *argPath) {
m_resPath = m_appPath;
m_usrPath = m_resPath;
#endif //_WIN32
#if defined linux || defined __FreeBSD__
#if defined linux || defined __FreeBSD__ || defined __OpenBSD__
#ifndef INSTALL_PREFIX
#define INSTALL_PREFIX "/usr/local";
#endif //INSTALL_PREFIX
Expand Down

0 comments on commit 8e5456f

Please sign in to comment.