mettli / guichan

Automatically exported from code.google.com/p/guichan
Other
0 stars 0 forks source link

pkg-config/autotools support #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
ATM, guichan does not to provide any means of automatically discovering its
proper build settings or installation status.  It takes very little effort
to add pkg-config support or only slightly more, if that is not acceptable,
to write a m4 macro set for autotools.  This would immensely help other
packages using guichan.

Original issue reported on code.google.com by douso...@gmail.com on 15 Jul 2008 at 10:50

GoogleCodeExporter commented 9 years ago
I totally agree that it should be easier for other projects to use Guichan by
supplying pkg-support or a m4 macro. However, working with autotools it usually 
a
pain in the ass, I'd love to see a community contribution here.  

Original comment by olof.nae...@gmail.com on 15 Jul 2008 at 11:08

GoogleCodeExporter commented 9 years ago
I've written a patch which provides pkgconfig files for guichan.  It only 
supports
the sdl and opengl backends, as I could not test the others, but new pkgconfig 
files
can be added easily by following the ones that exist.  It provides
guichan(_(sdl|opengl))?-0.8.pc files, which include the version number, with the
assumption that ABI/API will be backwards compatible for all 0.8.* versions, 
and the
number will change as compatibilty is broken.  This will theoretically allow
installations of several versions in parallel, as long as the ./configure 
script is
passed different paths and libtool settings are correct, etc.

Patch info:
Author: Unavowed (unavowed at vexillium org)
License: public domain

Original comment by douso...@gmail.com on 16 Jul 2008 at 8:57

Attachments:

GoogleCodeExporter commented 9 years ago
I'm unable to apply the patch. TortioseSVN complains about a missing index line 
and
the unix patch command complains about a file not found (can't find file to 
patch at
input line 4).

Original comment by olof.nae...@gmail.com on 4 Aug 2008 at 9:38

GoogleCodeExporter commented 9 years ago
The patch applies fine for me by doing:

[bjorn@thor guichan]$ patch -p1 < /home/bjorn/guichan-pkgconfig.patch

Shall I commit it or do you think you can figure out how to do the -p1 with
TortoiseSVN? :-)

Original comment by b.lindeijer on 4 Aug 2008 at 11:03

GoogleCodeExporter commented 9 years ago
Oh. I must be very tired or something. I've applied the patch. Thanks for your 
help
Björn!

Original comment by olof.nae...@gmail.com on 4 Aug 2008 at 11:22