1how to install dangen
2$Id: INSTALL,v 1.21 2005/07/11 21:18:58 oohara Exp $
3
4* requirement
5
6To compile dangen, you need:
7
81) a C library (libc) (GNU C Library is known to work)
92) the Simple DirectMedia Layer library (libSDL)
103) SDL_image (libSDL_image)
11
12To hack dangen, you also need:
13
141) autoconf
152) automake
163) flex
174) bison
18
19* installation commands
20
21dangen follows the standard 3-step installation process, that is:
221) ./configure
232) make
243) make install
25
26* ./configure options
27
28** --with
29
30--without-posix
31Don't use _most_ (not all) of the POSIX features, that is:
32  - You must NOT run "make install" --- I don't know where I put necessary
33    files on a non-POSIX system.
34  - Image data are loaded from the directory spqr/image/ in the current
35    directory.
36  - High score data are saved in the directory save/ in the current directory.
37  - The directory where high score data are saved (that is, "save/") is
38    not created by dangen.  You must create it manually before invoking dangen.
39  - All install directory options (see below) are ignored.
40    In short, you should invoke dangen as "./dangen" from the top directory of
41    the source tree.
42DON'T USE THIS OPTION UNLESS YOU KNOW WHAT YOU ARE DOING.  dangen is
43designed for a POSIX system.
44
45** install directories
46
47--prefix
48Everything will be installed here by default.
49
50--bindir
51The executable will be installed in this directory.
52
53--datadir
54The image files (spqr/image/*.png) will be installed in its
55subdirectory games/dangen/ .
56
57--mandir
58The manpage will be installed in its subdirectory man6/ .
59
60
61The FHS way will be something like:
62./configure --prefix=/usr --bindir=/usr/games \
63  --mandir=/usr/share/man
64
65If you have no root privilege and want to install dangen under
66your home directory, try:
67./configure --prefix=/home/oohara/temp/dangen
68Replace /home/oohara/temp/dangen as appropriate.  Note that
69these directories must be specified in their absolute path.
70