File: INSTALL

package info (click to toggle)
curseofwar 1.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,596 kB
  • sloc: ansic: 3,315; makefile: 151
file content (73 lines) | stat: -rw-r--r-- 2,079 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73

How to build and install "Curse of War" using make on Linux
===========================================================

Build
-----

  Ncurses version:
    $ make

  SDL version:
    $ make SDL=yes

Install ncurses version
-----------------------

  To install, "make install" with DESTDIR defined:
    # make DESTDIR=/path install

  It copies:
  * the executable curseofwar to $DESTDIR/usr/bin/ 
  * the manpage curseofwar.6.gz to $DESTDIR/usr/share/man/man6/
  * the changelog.gz to $DESTDIR/usr/share/doc/curseofwar/

  To uninstall:
    # make DESTDIR=/path uninstall

Install SDL version
-------------------
  
  To install:
    # make SDL=yes DESTDIR=/path install

  It copies:
  * the executable curseofwar-sdl to $DESTDIR/usr/bin/ 
  * the manpage curseofwar-sdl.6.gz to $DESTDIR/usr/share/man/man6/
  * images to $DESTDIR/usr/share/curseofwar

  The SDL executable is searching for the game data (directory "images") in the 
  following places:
  
    1) ./                           (Your current directory)
    2) $XDG_DATA_HOME/curseofwar    (Defaults to ~/.local/share/curseofwar)
    3) ~/.curseofwar                (If possible, use ~/.local/share/curseofwar)
    4) /usr/local/share/curseofwar 
    5) /usr/share/curseofwar
    5) /usr/share/curseofwar-sdl
    5) /usr/share/curseofwar-common
  
  Make sure that "images" is one of those folders. 
  
  You can make use of the variable INSTALL_DATA to install images to a specific
  place in your filesystem, instead of $(DESTDIR)/usr/share/curseofwar:
    # make SDL=yes DESTDIR=/path INSTALL_DATA=/game/data/path install

Example, how to build and install everything
============================================

  It installs both executables to /usr/bin/, and all game data to 
  /usr/share/curseofwar/

  To build and install:
    $ make
    $ make SDL=yes 
    # make DESTDIR=/ install
    # make SDL=yes DESTDIR=/ install
    
  Then to uninsitall, if necessary:
    # make SDL=yes DESTDIR=/ uninstall
    # make DESTDIR=/ uninstall

  "DESTDIR=/" can be omitted here, but it's kept for completeness.