How 2 Compile 'Ace of Penguins" on Mageia 5

Here you'll find a place for solutions and hints.

Please use one of the support subforums below for questions or if you have any issues and need support.

How 2 Compile 'Ace of Penguins" on Mageia 5

Postby BHReach » Nov 9th, '15, 05:48

Ace of Penguins is a group of simple card and board games. Has a very nice smart version of freecell.

I have a tmp directory in my home directory and that is where I compile stuff.

Code: Select all
cd tmp
mkdir src
cd src


Download the source code from the developer's website.

Code: Select all
wget -c http://www.delorie.com/store/ace/ace-1.4.tar.gz


Borrow the Manifest file from Gentoo (it has the hash codes to verify the source file integrity).

Code: Select all
wget -c http://mirrors.mit.edu/gentoo-portage/games-board/ace/Manifest


Check the hash code:

Code: Select all
grep -e DIST Manifest
sha256sum ace-1.4.tar.gz


Check the hashes to make sure they are equal.

Borrow the source code patches from Gentoo.

Code: Select all
wget --cut-dirs=5 -cr --no-parent -A.patch http://mirrors.mit.edu/gentoo-portage/games-board/ace/files/


The Manifest file has the hashes for the patch files but I just looked at the patch code and there was nothing suspicious there so I did not bother verifying the patch hashes.

Move the patches to src/ and remove the directory wget created.

Code: Select all
mv /home/bhr/tmp/src/mirrors.mit.edu/* .
rm -r /home/bhr/tmp/src/mirrors.mit.edu


untar the source code

Code: Select all
tar xzvf ace-1.4.tar.gz


Apply the patches to the source code.

Note: when the patch program prompts you for the file name to patch, the name is directly above the prompt and it must start with ace-1.4/. If the prefix is not there you need to add it when you enter the file name. One of the files has a suffix .orig, ignore that.

Code: Select all
patch < ace-1.4-CC.patch
patch < ace-1.4-clang.patch
patch < ace-1.4-gold.patch
patch < ace-1.4-libpng15.patch
patch < ace-1.4-no-xpm.patch


Install a couple of libraries that Ace of Penguins needs.

Code: Select all
su - -c 'urpmi libx11-devel libpng-devel'


Change to the source directory and use libtoolize to prepare for the configure phase of compiling

Code: Select all
cd ace-1.4/
libtoolize -f
cat /usr/share/aclocal/libtool.m4 >> aclocal.m4
cat /usr/share/aclocal/ltoptions.m4 >> aclocal.m4
cat /usr/share/aclocal/ltversion.m4 >> aclocal.m4
cat /usr/share/aclocal/lt~obsolete.m4 >> aclocal.m4
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.in
libtoolize -f
echo "ACLOCAL_AMFLAGS -I m4" >> Makefile.am


Run configure and deal with the syntax errors

Code: Select all
./configure
Syntax errors, comment out the offending lines:
sed -i -e s/PKG_/#PKG_/ configure
#(line numbers: 12303-12305)
./configure


Compile and install (default install location is /usr/local/)

Code: Select all
make
su -c 'make install'


The games should now be installed, you can run them from a terminal or add them to your menu.

You can delete everything you put in src/.
BHReach
 
Posts: 14
Joined: Nov 3rd, '15, 20:01

Return to The magician suggests...

Who is online

Users browsing this forum: No registered users and 1 guest

cron