bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] FreeBSD 10.0 GNUBG build instructions


From: Michael Petch
Subject: [Bug-gnubg] FreeBSD 10.0 GNUBG build instructions
Date: Tue, 11 Feb 2014 18:14:09 -0700
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

FreeBSD 10.0 GNUBG build instructions
=====================================

As user root:

Minimum packages needed to build command line version
    pkg install wget python
    pkg install bison flex libtool automake pkgconf glib gcc gmake

Packages required for graphics including 3D boards
    pkg install gtkglarea gtk2 gtkglext

Packages required for sqlite3 match database support:
    pkg install sqlite3 databases/py-sqlite3

Packages required for postgresql match database support:
    pkg install databases/py-PyGreSQL

Packages required for mysql match database support:
    pkg install databases/py-MySQLdb

Packages required for sound:
    pkg install libcanberra

Packages required for long seed support:
    pkg install gmp

If you want to retrieve GNUBG sources via CVS:
    pkg install cvs

* Note: If you receive the message:
        "The package management tool is not yet installed on your
         system. Do you want to fetch and install it now? [y/N]:"

        Respond with Y

------
Configuration & Compiling

To compile a basic unoptimized version you can do
    ./autogen.sh
    ./configure CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
    gmake
    gmake install

As Philippe Michel pointed out a more optimized version could be built via:
    ./configure CPPFLAGS="-I/usr/local/include -O3 -funroll-loops
-march=native -mtune=native" LDFLAGS="-L/usr/local/lib"
    gmake
    gmake install

Special note: You MUST use gmake, and not FreeBSD's default make system

------
Other Notes:
I recommend you run this for each account you run GNUBG under to prevent
errors when GNUBG exits
    mkdir -p ~/.local/share

To retrieve the latest (HEAD) sources from CVS you can use this command:
    cvs -d:pserver:address@hidden:/sources/gnubg co gnubg

For versions of FreeBSD prior to 10.0, you install packages via:
    pkg_add -r <packagename>

    Some packages on older versions of FreeBSD may be named differently

-- 
Michael Petch
GNU Backgammon Maintainer / Developer
OpenPGP FingerPrint=D81C 6A0D 987E 7DA5 3219 6715 466A 2ACE 5CAE 3304



reply via email to

[Prev in Thread] Current Thread [Next in Thread]