Changes between Initial Version and Version 1 of SmokinGuns/Building/freebsd


Ignore:
Timestamp:
Dec 24, 2013, 5:03:11 PM (11 years ago)
Author:
barto
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SmokinGuns/Building/freebsd

    v1 v1  
     1= Introduction =
     2In wiki, we will compile the game on a FreeBSD system. This wiki is highly inspired from this [http://forum.smokin-guns.org/viewtopic.php?f=22&t=3318 forum post]. We will use the latest release of [http://www.freebsd.org/ FreeBSD] which is the 9.1 today with the bootonly CD on a amd64 system.
     3
     4= Content =
     5* Why
     6* Getting the tools
     7* Getting the code
     8* Compilation
     9* Update
     10* Troubles
     11
     12== Why ==
     13There are few reasons that may motivate you from compiling SG from source:
     14* You want to do some beta testing on this not so well known platform
     15* You want to discover the new changes in the game code because you are a bsd user.
     16* Or you want to get the game working without the linux-compatible mode on your server/own machine
     17
     18== Getting the tools ==
     19For being sure I haven't missed anything, I'll start with a really empty FreeBSD installation and I will be quite fast in the explanations since those users do know how to type a console command and may have done those steps already
     20
     21So, log in root and type:
     22{{{
     23pw user mod <yourname> -G wheel # being able to become root from your usual user
     24}}}
     25Logout from root. Then in your user account (may need a reload), type:
     26{{{
     27su
     28pkg_add -r xorg vim xfce4 # at least having something proper to use and having the GL libs
     29Xorg -configure && mv ~/xorg.conf.new /etc/X11/xorg.conf
     30}}}
     31Then add in {{{/etc/rc.conf}}} those lines:
     32{{{
     33hald_enable="YES"
     34dbus_enable="YES"
     35}}}
     36Then you can exit the su mode and then type:
     37{{{
     38echo "/usr/local/bin/startxfce4" > ~/.xinitrc
     39}}}
     40Now you need to reboot for applying the changes to {{{rc.conf}}}. When done, log in as a your usual user and then type:
     41{{{
     42startx
     43}}}
     44Set via the interface your keymap, then open the terminal and type:
     45{{{
     46su
     47pkg_add -r sudo firefox scite # well...
     48cd /usr/ports/game/ioquake-devel/
     49make build-depends-list
     50pkg_add -r libvorbis openal-soft gmake pkgconf sdl12 curl fpc-sdl git zip
     51}}}
     52Then add yourself to the sudoers, for that matter launch:
     53{{{
     54visudo
     55}}}
     56and and this line:
     57{{{
     58<yourname> ALL=(ALL) ALL
     59}}}
     60And you are done!
     61
     62== Getting the code ==
     63Open the terminal and type:
     64{{{
     65git clone https://github.com/smokin-guns/SmokinGuns.git
     66}}}
     67
     68== Compilation ==
     69Open the terminal and type:
     70{{{
     71cd SmokinGuns/
     72gmake # don't confuse with the BSD make that is totally different, you need to use GNU Make
     73cd build/release-freebsd-amd64/
     74cp *.amd64 /where/you/installed/the/game/
     75cp *.so /where/you/installed/the/game/
     76cd smokinguns/
     77zip -r z_vm.pk3 vm/
     78mv z_vm.pk3 /where/you/installed/the/game/smokinguns/
     79}}}
     80
     81== Update ==
     82If you want to update the code, open the console and type:
     83{{{
     84cd SmokinGuns/
     85git pull
     86}}}
     87and redo the compilation process.
     88
     89== Troubles ==
     90* If it doesn't compile for some reason when you just updated the code, try to remove the build folder and try to compile again. If it doesn't make the trick, contact the developers via the forum.
     91* If you spot any bug while testing, just contact the developers via the forum or make a [http://trac.smokin-guns.org/report/ bug report] (you will still need a forum account to log in here, in small caps).
     92* If you want to play with the sources, I suggest you to learn git (especially the checkout command), there are plenty of tutorials around.
     93* For some other problems, don't be scared to contact any developer or me (#smokinguns on freenode, this forum, email, etc.)