unbundling the libraries

Everything related to the code /
Tout ce qui touche au code
Post Reply
User avatar
yoshi314
Posts: 54
Joined: Sat Feb 23, 2008 3:30 pm
Location: PL
Contact:

unbundling the libraries

Post by yoshi314 » Wed Apr 07, 2010 7:34 pm

i'd like to attempt to package the game for gentoo. in order to do that i will need to unbundle the 3rd party stuff from the game and package it separately. so i'd like to ask about a few things.

- will cmake pick up system installation of libyuni and luajit (and possibly some other extra dep) or do i need some extra hacks to do so?
- how can i configure the default resources dir at build time? - gentoo usually uses /usr/share/games/<game name> for default location for game data files - this way there is one global copy of data files.

obviously i'm not talking about binary packages per-se, as gentoo is source based ;)

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: unbundling the libraries

Post by zuzuf » Wed Apr 07, 2010 7:52 pm

CMake won't auto-detect Yuni or LuaJIT (which is currently in beta stage and built statically - we use LuaJIT 2.0.0 because it's the first version compatible with amd64 which is what I am running).

You don't need to tell TA3D where to find its files as long as they are located into a "standard" path because TA3D will try several paths:
  • /usr/local/games/ta3d/
  • /usr/local/games/ta3d/resources/
  • /usr/local/share/ta3d/
  • /usr/local/share/ta3d/resources/
  • /opt/local/share/ta3d/
  • /opt/local/share/ta3d/resources/
  • /usr/local/share/games/ta3d/
  • /usr/local/share/games/ta3d/resources/
  • /opt/local/share/games/ta3d/
  • /opt/local/share/games/ta3d/resources/
  • /usr/games/ta3d/
  • /usr/games/ta3d/resources/
  • /usr/share/ta3d/
  • /usr/share/ta3d/resources/
  • /opt/share/ta3d/
  • /opt/share/ta3d/resources/
  • /usr/share/games/ta3d/
  • /usr/share/games/ta3d/resources/
  • /opt/share/games/ta3d/
  • /opt/share/games/ta3d/resources/
=>;-D Penguin Powered

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest