Eddy Petrișor a écrit :
> On 28/01/2008, Bartek Weclewski <[EMAIL PROTECTED]> wrote:
> I suspect you refer to the Windows port of the game.
> Most likely, yes. The Windows porter (Kurosu, iirc) has to look over this.

Yes. There are several OS targets that would need to copy only the
proper files:
- MacOSX bundle
- Window zip or installer

In every case, the code is patched for the corresponding binaries to
look to some particular relative paths for the different types of data
(.mo and stuff from data that is usually installed in share/wormux)

Now, we need in all those cases to prepare the files in a suitable
fashion. Maybe "DESTDIR=somewhere/particular make install" might be
abused for each folder (src, data, and po). This requires configure not
to be run with --prefix

I haven't thought much about it, because I'm probably the world only
user of make install under windows (which in fact runs a script to build
the installer).

There already was such a request for a zip only file, and the project
would probably happily trade more work for some more users on the
packaging stuff, but I find it currently cumbersome.

I rate the "also produce a zip file" as a very low priority unless very
automated.

> Notes to the person that will implement this:
> - probably you should look at the make run target for an example of a
> really portable way of running the game;

Is that an autotools or a cmake generated target?

> - localization doesn't work if the .mo files are not in the proper
> place (make run also fails to localize), so the code needs to be
> patched to look for the .mo files in a relative path (not sure if
> gettext supports that).

As said in the above paragraphs, it is handled by all the OS targets.
The windows script is somewhat complex and would greatly benefit from
the above DESTDIR trick. More specifically:
- $prefix/share/locale is replaced by $install/locale
- $prefix/share/wormux is replaced by $install/data

Best regards,
-- 
Kurosu

_______________________________________________
Wormux-dev mailing list
Wormux-dev@gna.org
https://mail.gna.org/listinfo/wormux-dev

Répondre à