want a makefile for the tmw-branding package

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.

Its current use is for the continued development of the server and game it has always served: TMW Classic.

Post Reply
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

want a makefile for the tmw-branding package

Post by o11c »

In order to make life easier for packagers, the 'tmw-branding' package should have a makefile, with appropriate variables allowing editing the currently hard-coded paths.

I could do this, but as it's completely isolated from everything else, so it would be a good, simple, task for someone else to do.

For the bug request, see https://github.com/themanaworld/tmw-branding/issues/2

For the kind of things it needs to do, see http://sources.gentoo.org/cgi-bin/viewv ... iew=markup
Former programmer for the TMWA server.
Ablu
Manasource
Manasource
Posts: 288
Joined: 23 Jul 2011, 08:31
Location: Germany

Re: want a makefile for the tmw-branding package

Post by Ablu »

Probably a bit easier to understand for human beings:

Code: Select all

install -D -p -m 755 %{name} %{buildroot}%{_bindir}/%{name}
install -D -p -m 644 data/icons/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -D -p -m 644 %{name}.mana %{buildroot}%{_datadir}/%{name}/%{name}.mana
mv data/ %{buildroot}%{_datadir}/%{name}/
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{name}.desktop
desktop-file is basically just an install + validation

However i do not get why this needs a Makefile.
Just do a script that runs those install commands + adds a prefix variable.

Regards
Ablu
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Re: want a makefile for the tmw-branding package

Post by o11c »

The primary problem is that the path to tmw.mana must be hard coded in the script and menu entry, and the paths are different on different distributions.

Also, it's usually only one like of code to package something that is just "make; make install", instead of several.
Former programmer for the TMWA server.
4144
Knight
Knight
Posts: 965
Joined: 03 Aug 2009, 11:57

Re: want a makefile for the tmw-branding package

Post by 4144 »

I pushed make file for tmw branding in manaplus repo.
Also updated some help files
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Re: want a makefile for the tmw-branding package

Post by o11c »

4144 wrote:I pushed make file for tmw branding in manaplus repo.
1. it doesn't work; it leaves ${prefix} in tmw.desktop, automake doesn't like being abused like this.
2. I need a solution in the tmw-branding repository, not in manaplus
Former programmer for the TMWA server.
4144
Knight
Knight
Posts: 965
Joined: 03 Aug 2009, 11:57

Re: want a makefile for the tmw-branding package

Post by 4144 »

o11c wrote:
4144 wrote:I pushed make file for tmw branding in manaplus repo.
1. it doesn't work; it leaves ${prefix} in tmw.desktop, automake doesn't like being abused like this.
2. I need a solution in the tmw-branding repository, not in manaplus
1. if ${prefix} was in path it left it here, if in path was no variables, it will be without variables.
I think ./configure --datadir=/real/path/here will fix ${prefix} issue.

2. In repository some files have mana as binary, wrong servers list, and it overriding some files in help directory with wrong versions.
Post Reply