From the sources
Getting the sources
Tarball
Subversion
$ svn co git://git.symlink.me/pub/menareants/0.4.git MenAreAnts
Compile and install
Forget sudo if you install it in a directory where you have the rights to, like your home directory.
$ ./configure
$ make
$ sudo make install
You can use these options when using the configure script:
--prefix=PREFIX install architecture-independent files
in PREFIX [/usr/local]
--enable-server compilation of Men Are Ants' server
--enable-meta-server compilation of Men Are Ants' meta-server
--disable-game compilation without Men Are Ants' game
--enable-warnings enable warnings during compilation
(-Wall -Wextra -ansi and others...)
--enable-debug enable debug
Updating the sources
Use make udate rather than svn in order to, in addition of getting the
latest version (unstable), refresh the ressource file list, and also recompile:
$ make update && sudo make install
Mac OS X
The game is compatible with Mac OS X (tested by Alexandre Pia with Mac OS X 10.4), who I thank for the adaptations he made to the sources and for the following explanations.
For your information, the procedure you have to follow to run the game with Mac OS X is not complex.
First you have to install MacPorts
Then, to install SDL, some of its libraries and subversion:
$ sudo port install libsdl libsdl_image libsdl_gfx libsdl_mixer
$ sudo port install subversion
Then, you have to download the Men Are Ants sources the way you want (see above).
Compile and Install (MacPorts puts its tree in /opt/local, and I put my own installations in /opt):
$ cd MenAreAnts
$ LIBS="-L/opt/local/lib" ./configure --prefix=/opt
$ make
$ sudo make install
Launch the game:
$ /opt/bin/menareants
Gentoo
Available versions: svn (devel)
ebuild version: 2
Changelog:
- 2, 2007-05-16: meta-server flag, removed temp fix became useless, Paludis compatibility
- 1, 2007-02-10: installed as game, no more SDL dependancies if you compile only the server, added some dependancies..
- 0: initial revision
Please read the HOWTO Installing 3rd Party Ebuilds and get menareants-ebuild.tar.bz2.
The ebuild is only for ~x86. You must unmask it in package.keywords, and set the optionnal USE flags in package.use:
- server: compile server (and client)
- disablegame: do not compile the game
- debug: activate the debug mode
For example, with the flagedit tool, to unmask the package and add debug option:
# flagedit games-strategy/menareants-svn +debug -- +~x86
To install and to update the package, you just have to emerge this package (it isn't updated by emerge -u because it's a subversion ebuild).
# emerge menareants-svn
Maintainer: pankkake
.