Debian Codegraph @

prboom2/INSTALL

raw
1 Basic Installation (ZIP, tarball, Git)
2 ==================
3 Prerequisites
4
5 1. To compile DSDA-Doom, you need at least SDL2. For various extensions and optional features, the following are also required:
6 - SDL2_image (for high-res textures in OpenGL and PNG screenshots)
7 - For music support, some or all of:
8 * SDL2_mixer (MIDI, TiMidity)
9 * FluidSynth (MIDI)
10 * PortMidi (MIDI)
11 * MAD (MP3)
12 * libxmp (various tracker-style formats)
13 * vorbisfile (OGG)
14
15 You will need `cmake` and `make` if you haven't already installed them.
16
17 On a typical Debian or Ubuntu system, these commands may be sufficient:
18 `sudo apt install build-essential cmake git`
19
20 As well as the following:
21 `sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libfluidsynth-dev libportmidi-dev libmad0-dev libxmp-dev libvorbis-dev libzip-dev zipcmp zipmerge ziptool fluidsynth libglu1-mesa-dev`
22
23 On a typical Fedora system, these commands may be sufficient:
24 `dnf install cmake git gcc gcc-g++`
25
26 As well as the following:
27 `sudo dnf install SDL2_mixer-devel SDL2_image-devel mesa-libGLU-devel libzip-devel libzip-tools zlib-static libvorbis-devel libmad-devel libxmp-devel portmidi-devel fluidsynth-devel`
28
29 2. Clone the repository and navigate to the directory containing the DSDA-Doom distribution (the directory this file is in, prboom2).
30 `git clone https://github.com/kraflab/dsda-doom.git`
31 `cd dsda-doom/prboom2`
32
33 3. Create a new build folder and navigate into it:
34 `mkdir build && cd build`
35
36 4. Run `CMake` to configure the build:
37 - For a release build: `cmake .. -DCMAKE_BUILD_TYPE=Release`
38 - For a debug build: `cmake .. -DCMAKE_BUILD_TYPE=Debug`
39 (Debug builds provide more details in the event of issues but have slightly lower performance.)
40
41 This should end with the message "Build files have been written to: [folderpath]".
42
43 5. Compile DSDA-Doom by typing `make`.
44 This may take some time; while it's compiling I suggest you read the `README`, or maybe go and look for some good doom levels to play when it's finished :-).
45 This should work on all Linux systems, but systems that have a `make` utility other than GNU make may have problems. E.g. you might need to install GNU make, and then use it instead of make for these instructions. I have tested BSD `pmake` and it works fine.
46
47 6. To install the programs, data files, and man pages for DSDA-Doom, run:
48 `sudo make install/strip`
49 If you don't have root access, ask your system administrator to perform this step. If you want to install manually, put the `dsda-doom.wad` in `/usr/local/share/games/doom/` (or create a symlink to it).
50
51 7. Copy your Doom, Doom 2, Ultimate Doom, or Final Doom IWAD (`doom.wad` or `doom2.wad`) to `/usr/local/share/games/doom/` (or create a symlink). If you don't have any of these, you can use the shareware IWAD available from: https://www.doomworld.com/ or https://www.idsoftware.com/
52
53 If you have a system with many users, read the license for your version of Doom and ensure that only authorized users can access the IWAD file.
54
55 8. You can remove the program binaries and object files from the source directory by typing `make clean`. To also remove the files that `cmake` created, type: `make distclean`
56
57 9. DSDA-Doom is now ready for use. If `/usr/local/games` is in your path, you can run `dsda-doom`; otherwise, use the full path.
58
59 Building an RPM
60 ==================
61
62 If you are on a system that uses the RPM packaging format, you might prefer to build an RPM containing the DSDA-Doom binaries rather than installing them directly. Follow steps 2-6 above, then run `make rpm`. This performs the usual procedure for building the RPM in `/usr/src/redhat/`.
63
64 Note that the RPM sets its own parameters for `cmake`; if you want to override them, you'll have to edit the build scripts yourself. To get the correct permissions, you either have to run this process as root or use the wrapper program `fakeroot` (version 0.4.5 or later - usually available from `apt` or `dnf`) and ensure you have permissions to the RPM build area.
65
66 Installation Details
67 ====================
68
69 These are generic installation instructions.
70
71 The `configure' shell script attempts to guess correct values for
72 various system-dependent variables used during compilation. It uses
73 those values to create a `Makefile' in each directory of the package.
74 It may also create one or more `.h' files containing system-dependent
75 definitions. Finally, it creates a shell script `config.status' that
76 you can run in the future to recreate the current configuration, a file
77 `config.cache' that saves the results of its tests to speed up
78 re-configuring, and a file `config.log' containing compiler output
79 (useful mainly for debugging `configure').
80
81 If you need to do unusual things to compile the package, please try
82 to figure out how `configure' could check whether to do them, and mail
83 diffs or instructions to the address given in the `README' so they can
84 be considered for the next release. If at some point `config.cache'
85 contains results you don't want to keep, you may remove or edit it.
86
87 The file `configure.ac' is used to create `configure' by a program
88 called `autoconf'. You only need `configure.ac' if you want to change
89 it or regenerate `configure' using a newer version of `autoconf'.
90
91 Compilers and Options
92 =====================
93
94 Some systems require unusual options for compilation or linking that
95 the `configure' script does not know about. You can give `configure'
96 initial values for variables by setting them in the environment. Using
97 a Bourne-compatible shell, you can do that on the command line like
98 this:
99 `CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure`
100
101 Or on systems that have the `env` program, you can do it like this:
102 `env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure`
103
104 Compiling For Multiple Architectures
105 ====================================
106
107 You can compile the package for more than one kind of computer at the
108 same time, by placing the object files for each architecture in their
109 own directory. To do this, you must use a version of `make` that
110 supports the `VPATH` variable, such as GNU `make`. `cd` to the
111 directory where you want the object files and executable to go and run
112 the `configure` script. `configure` automatically checks for the
113 source code in the directory that `configure` is in and in `..`.
114
115 If you have to use a `make` that does not supports the `VPATH`
116 variable, you have to compile the package for one architecture at a time
117 in the source code directory. After you have installed the package for
118 one architecture, use `make distclean` before reconfiguring for another
119 architecture.
120
121 Installation Names
122 ==================
123
124 By default, `make install` will install the package's files in
125 `/usr/local/bin`, `/usr/local/man`, etc. You can specify an
126 installation prefix other than `/usr/local` by giving `configure` the
127 option `--prefix=PATH`.
128
129 You can specify separate installation prefixes for
130 architecture-specific files and architecture-independent files. If you
131 give `configure` the option `--exec-prefix=PATH`, the package will use
132 PATH as the prefix for installing programs and libraries.
133 Documentation and other data files will still use the regular prefix.
134
135 In addition, if you use an unusual directory layout you can give
136 options like `--bindir=PATH` to specify different values for particular
137 kinds of files. Run `configure --help` for a list of the directories
138 you can set and what kinds of files go in them.
139
140 If the package supports it, you can cause programs to be installed
141 with an extra prefix or suffix on their names by giving `configure` the
142 option `--program-prefix=PREFIX` or `--program-suffix=SUFFIX`.
143
144 Optional Features
145 =================
146
147 Some packages pay attention to `--enable-FEATURE` options to
148 `configure`, where FEATURE indicates an optional part of the package.
149 They may also pay attention to `--with-PACKAGE` options, where PACKAGE
150 is something like `gnu-as` or `x` (for the X Window System). The
151 `README` should mention any `--enable-` and `--with-` options that the
152 package recognizes.
153
154 For packages that use the X Window System, `configure` can usually
155 find the X include and library files automatically, but if it doesn't,
156 you can use the `configure` options `--x-includes=DIR` and
157 `--x-libraries=DIR` to specify their locations.
158
159 Specifying the System Type
160 ==========================
161
162 There may be some features `configure` can not figure out
163 automatically, but needs to determine by the type of host the package
164 will run on. Usually `configure` can figure that out, but if it prints
165 a message saying it can not guess the host type, give it the
166 `--host=TYPE` option. TYPE can either be a short name for the system
167 type, such as `sun4`, or a canonical name with three fields:
168 `CPU-COMPANY-SYSTEM`
169
170 See the file `config.sub` for the possible values of each field. If
171 `config.sub` isn't included in this package, then this package doesn't
172 need to know the host type.
173
174 If you are building compiler tools for cross-compiling, you can also
175 use the `--target=TYPE` option to select the type of system they will
176 produce code for and the `--build=TYPE` option to select the type of
177 system on which you are compiling the package.
178
179 Sharing Defaults
180 ================
181
182 If you want to set default values for `configure` scripts to share,
183 you can create a site shell script called `config.site` that gives
184 default values for variables like `CC`, `cache_file`, and `prefix`.
185 `configure` looks for `PREFIX/share/config.site` if it exists, then
186 `PREFIX/etc/config.site` if it exists. Or, you can set the
187 `CONFIG_SITE` environment variable to the location of the site script.
188 A warning: not all `configure` scripts look for a site script.
189
190 Operation Controls
191 ==================
192
193 `configure` recognizes the following options to control how it
194 operates:
195
196 `--cache-file=FILE`
197 Use and save the results of the tests in FILE instead of
198 `./config.cache`. Set FILE to `/dev/null` to disable caching, for
199 debugging `configure`.
200
201 `--help`
202 Print a summary of the options to `configure`, and exit.
203
204 `--quiet`
205 `--silent`
206 `-q`
207 Do not print messages saying which checks are being made. To
208 suppress all normal output, redirect it to `/dev/null` (any error
209 messages will still be shown).
210
211 `--srcdir=DIR`
212 Look for the package's source code in directory DIR. Usually
213 `configure` can determine that directory automatically.
214
215 `--version`
216 Print the version of Autoconf used to generate the `configure`
217 script, and exit.
218
219 `configure` also accepts some other, not widely useful, options.
220