Commit Graph

20 Commits

Author SHA1 Message Date
filux
6ac255095a implemented basic support for SDL2 in cmake files (only); changed a general idea of how and where are showed deprecation warnings 2015-09-18 19:17:52 +02:00
filux
74cbbba6ba improvements for static build and a bit of cleaning 2015-06-14 19:24:08 +02:00
filux
f926285bf6 since now required dynamic libs from non standard locations will be added to the mac packages, #63 2015-06-04 23:26:50 +02:00
filux
d3911ea45e initial version of scripts for macos 2015-02-25 16:48:53 +01:00
filux
966da32472 better support for macos, this also closes #36 2015-02-24 09:45:17 +01:00
filux
92b599a291 Merge pull request #58 from goetzk/buildable-package
Changes to make package build and run on osx
2015-02-17 22:35:19 +01:00
Karl Goetz
c21db67721 Changes to make package build and run on osx
MegaGlest is the correct spelling, the process of building a package upper
cases the binary so I'm removing my modification via an earlier branch.

This also sets CUSTOM_DATA_INSTALL_PATH to /Applications - this is the final
step in getting MegaGlest.app to launch after building and installing.

The previously hard coded path was ok for gnumake but failed when Xcode got
involved as it has build types (release/debug/et al) which the hard coding
didn't support. I've added an if/else catch for the two build types that i've
seen while working on megaglest and it should be trivial to add any others that
may be desirable.

There is still an outstanding issue of embedding dependencies or using system
provided dependancies which I haven't sorted out.
2015-02-15 18:33:56 +11:00
Karl Goetz
06bb4104dc Run dos2unix on COPYRIGHT.source_code.txt
COPYRIGHT.source_code.txt is inlined during the package building stage on OSX
when built using Xcode. To prevent it causing Rez to fail due to CRLF line
endings we unconditionally run dos2unix against the file during build. In the
cases where this wouldn't have caused a problem there is no regression and in
the cases where its necesary the file is fixed without manual intervention
2015-02-14 10:31:24 +11:00
Karl Goetz
70e10c610e Change Mac specific CMakeLists for CPack
This commit includes several fixes and some shuffling of entries to improve
readability. The major changes are Removing MG_VERSION_H_CONTENTS which
*includes* the file with the version in it in favour of VER_* variables and
removing the CPack include at the end of the file.

CPack has to be included after all variables are set and this file is sourced
before all the common options are configured.

One more fixme is added - this and other runtime issues will have to be dealt
with when i test the packaging, so far I've only got it to build.
2014-12-23 07:17:48 +11:00
Mark Vejvoda
17a45c8da3 Merge pull request #40 from goetzk/remove-mac-specific-version-detection-code
Remove mac specific version detection code
2014-12-17 06:47:35 -08:00
Karl Goetz
ada9b55740 Revert change to quoting
Accidentally included a change of quoting which isn't related to the diff at
hand; reverted with this commit.
2014-12-17 20:28:20 +11:00
Karl Goetz
5b4b382d2c Remove unneeded comments
These comments indicated TODO items and are no longer needed in the final change.
2014-12-17 20:25:21 +11:00
Karl Goetz
0ce6fd3c5d Change library search path on MacOS
When using mac ports GL/gl.h ends up outside the cmake search paths for
libraries and includes. By adding them to mk/macos/CMakeLists.txt they are now
available and make it possible to build g3d_viewer along with the rest of
megaglest. To make this work properly I had to move the inclusion of
mk/macos/CMakeLists.txt further up the master CMakeLists.txt so merged both IF
APPLE tests in to one.

This has built successfully through xcode and gnumake.
2014-12-17 20:21:22 +11:00
Karl Goetz
4c10c9c2b3 Remove MEGAGLEST_VERSION for MG_VERSION_H_CONTENTS
I noticed that mk/macos/CMakeLists.txt has special code for extracting the
megaglest version , but its already done in CMakeLists.txt. This removes the
duplicate detection and changes the users of MEGAGLEST_VERSION to
MG_VERSION_H_CONTENTS.
2014-12-17 20:20:34 +11:00
Mark Vejvoda
4b40f19eda - fix for Mac OsX 2013-01-07 02:54:02 +00:00
Mark Vejvoda
77911f2144 get cpack working in macosx 2011-10-28 16:33:57 +00:00
Mark Vejvoda
5b7329594c - merging in changes from weltall for macosx 2011-10-18 01:13:38 +00:00
Forjan Frederic
477679d139 update extraction of the version for the installer 2010-10-24 04:14:16 +00:00
mnaumann
65ec94e22f FreeBSD and Mac OS X support by GeoVah, thanks a bunch! 2010-09-27 20:28:08 +00:00
Mark Vejvoda
b115292ee5 - added GeoVah's initila Mac osX support (via cmake) 2010-09-16 15:15:42 +00:00