[SDL] Somewhat OT: installation question, PCX troubles
marvin at dataway.ch
Fri Jun 9 05:20:39 PDT 2000
Orin K. Tresnjak-Smith <lancekt at wam.umd.edu> schrieb am 08 Jun 2000:
> I'm not sure if this is too off-topic...
> My game is currently divided into several main packages, one for the
> source, one for the media, (images/sounds) and one for script files. I
> need a Makefile that will respond to a "make install" by putting these
> somewhere standardized, like /usr/local/games/angelwars/ or something, but
> I don't even know where to start with this...can anyone help with this, or
> tell me where I can find more information?
I can only tell you what I did in glTron:
First, I put everything in one tar-ball, everything else is just a
support hassle. If you really want seperate packages, make sure they
extract to the right directory and use AC_CHECK_FILE in ./configure.in
to make sure everything is there and tell them they probably forgot
to download all tar balls.
About file locations: What I do is, I wrote a function
char* getFullPath(char *filename) that just checks a few paths
(i.e. ./data, /usr/local/share/games/gltron, /usr/share/games/gltron)
and returns the right path (or NULL), so the calling routine can do fopen().
Check out my 3D lightcycle game: http://www.gltron.org
More than 60'000 Downloads of the latest version (0.53)
More information about the SDL