https://www.campisano.org/wiki/Freeciv_(Game)/history?feed=atom&
Freeciv (Game) - Revision history
2024-03-29T06:28:10Z
Revision history for this page on the wiki
MediaWiki 1.41.0
https://www.campisano.org/mediawiki/index.php?title=Freeciv_(Game)&diff=2592&oldid=prev
T1t0: Created page with "= Freeciv = == Install == * from sources (http://www.freeciv.org/download.html): <pre> # shared/opt install schema v1.5.6 #### as common user #### # define applications va..."
2021-07-02T03:19:47Z
<p>Created page with "= Freeciv = == Install == * from sources (http://www.freeciv.org/download.html): <pre> # shared/opt install schema v1.5.6 #### as common user #### # define applications va..."</p>
<p><b>New page</b></p><div>= Freeciv =<br />
<br />
== Install ==<br />
<br />
* from sources (http://www.freeciv.org/download.html):<br />
<br />
<pre><br />
# shared/opt install schema v1.5.6<br />
<br />
#### as common user ####<br />
# define applications vars<br />
export SOFTWARE_PATH="/home/shared/opt/software"<br />
export NAME="freeciv"<br />
export VERSION="3.0.0-beta2"<br />
export URL="http://files.freeciv.org/beta/freeciv-${VERSION}.tar.xz"<br />
su - -w SOFTWARE_PATH,NAME,VERSION<br />
<br />
#### as root ####<br />
# install packages and prepare destination path<br />
apt-get -q -y install wget coreutils findutils < /dev/null<br />
apt-get -q -y install libicu-dev libgtk-3-dev < /dev/null<br />
mkdir -m 777 "${SOFTWARE_PATH}/tmp_install/" "${SOFTWARE_PATH}/${NAME}_${VERSION}/"<br />
exit<br />
<br />
#### as common user ####<br />
umask 0027<br />
cd "${SOFTWARE_PATH}/tmp_install"<br />
wget -c --no-check-certificate "${URL}"<br />
tar -xJf "freeciv-${VERSION}.tar.xz"<br />
cd "freeciv-${VERSION}"<br />
# define compiler flags optimizations (from debian dpkg-buildflags command)<br />
export CFLAGS="-g0 -O2 -fstack-protector-strong -Wformat -Werror=format-security -mtune=native -pipe"<br />
export LDFLAGS="-s -Wl,-z,relro"<br />
# configure, build and install<br />
./configure --prefix="${SOFTWARE_PATH}/${NAME}_${VERSION}" --enable-fcmp=no --enable-client=gtk3<br />
make -s<br />
make install<br />
cd<br />
su - -w SOFTWARE_PATH,NAME,VERSION<br />
<br />
#### as root ####<br />
# ensure permissions to destination path<br />
cd "${SOFTWARE_PATH}"<br />
chown -R root:users "${NAME}_${VERSION}"<br />
find "${NAME}_${VERSION}" -type d -exec chmod a-s,u+rwx,g+rx,g-w,o-rwx {} \;<br />
find "${NAME}_${VERSION}" -type f -exec chmod a-s,u+rw,g+r,g-w,o-rwx {} \;<br />
rm -rf tmp_install<br />
ln -s -f -T "${NAME}_${VERSION}" "${NAME}"<br />
exit<br />
<br />
#### as common user ####<br />
# test the application<br />
"${SOFTWARE_PATH}/${NAME}/bin/freeciv-gtk3"<br />
</pre><br />
<br />
= References =<br />
<br />
* [https://freeciv.fandom.com/wiki/Install-Debian Freeciv fandom Install-Debian]<br />
<br />
[[category:applications]]<br />
[[category:sharedops]]<br />
[[category:games]]</div>
T1t0