Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jul 2018 18:54:53 -0400
From:      Joseph Ward <jbwlists@hilltopgroup.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: Battle for wesnoth
Message-ID:  <a8e85c3e-e508-a615-1ac1-99eef1667e0b@hilltopgroup.com>
In-Reply-To: <8b28e504-79b9-38cf-e8f9-5e43afd6d1fd@davenulle.org>
References:  <8b28e504-79b9-38cf-e8f9-5e43afd6d1fd@davenulle.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 07/03/2018 17:38, David Marec wrote:
> 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,
>

I can at least help on the pkg-plist file....

in the port directory:

make makeplist
cp work/.staged-plist pkg-plist

you'll have to verify that everything's ok in it, but as long as you
didn't do any plist substitutions, I think it'll be fine.

-Joseph



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a8e85c3e-e508-a615-1ac1-99eef1667e0b>