Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jul 2018 23:38:59 +0200
From:      David Marec <david.marec@davenulle.org>
To:        ports@freebsd.org
Subject:   Battle for wesnoth
Message-ID:  <8b28e504-79b9-38cf-e8f9-5e43afd6d1fd@davenulle.org>

next in thread | raw e-mail | index | archive | help
Hello,


Some days ago, the port games/wesnoth was removed from my poudriere 
builds, because of boost libraries mismatches I guess.

So that, I decided to port a newer version of the game (1.14.%) to 
FreeBSD. If the port "works for me", it 'be better to provide a 
port-tree compliant installation.

If I'm running FreeBSD for years, it's the first time I am writing a 
Makefile for the port tree.

Thanks to the porters-handbook, (and the original wesnoth Makefile)
I was able to write a Makefile and provides a couple of patches.
One can find the files below:
https://gitlab.com/TurtleCrazy/wesnoth_1_14_freebsd

Now, as a beginner, I have some questions regarding the Makefile to be 
included in the port tree.

First, the CMake file provides one option to disable the installation of 
the game itself.
This might be use to run game servers only. It also avoid the 
installation of SDL2 libs.
This option was not defined on the previous port, so I wonder if there 
is a need for it.


It could be done by adding  the following lines:

GAME_DESC=    The game client
GAME_CMAKE_OFF=-DENABLE_GAME=off
GAME_USE_SDL= image2 mixer2 net2 ttf2 sdl2



Second, the pkg-plist is missing. - what makes poudriere testport to 
fail. -

I did not find suitable information in the handbook that explains
how to fill it. Any clue may be helpful.


Next, some sets of options requires additional boost libraries.
as
* unit_test_framework
* iostreams program_options regex system thread random

The Makefile need some reworks to allow fine-grained  dependencies


Finally, what about the entry name in the port tree ?



Feel free to correct the code, moreover: be "-pedantic".

regards,

-- 
David Marec
https://lapinbilly.eu/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8b28e504-79b9-38cf-e8f9-5e43afd6d1fd>