X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=INSTALL;h=6c408b494db2190b24601895d1e13b4b62b8790b;hp=aa22cc8154ee797c598cbeeb6a817b616fed264c;hb=bb8c494ed48df53e05d317ca1a6b88885f9f3ea8;hpb=e3ee5ceeccdd8f3b82c7ec2df50e3a9f2c77914d diff --git a/INSTALL b/INSTALL index aa22cc8..6c408b4 100644 --- a/INSTALL +++ b/INSTALL @@ -4,13 +4,64 @@ REQUIREMENTS sdl http://www.libsdl.org/download-1.2.php sdl_mixer http://www.libsdl.org/projects/SDL_mixer/ sdl_image http://www.libsdl.org/projects/SDL_image/ - And the following to create the graphics: + + If you are building from git, (or editing the graphics) you will also + need: + povray http://www.povray.org/ netpbm http://netpbm.sourceforge.net/ + autoconf version 2.63 or greater + + +BUILDING A RELEASE + + (see BUILDING FROM GIT if you don't have a release tarball) + + change to the source directory and run this: + + ./configure && make + + Unless there are errors, you should be able to run the game from the + source directory like this: + + ./vor + + +BUILDING FROM GIT + + 1) Make sure you have the extra dependencies first. If you want to avoid + installing povray and/or netpbm, you can simply the data/ directory from a + recent release. + + Run "autoconf". + + Continue as normal with the BUILDING A RELEASE section above. + + +BUILDING FOR WINDOWS + + Using mingw32 packages, you can use Linux to cross-compile a binary for + Windows. Below is the recommended way to achieve this: + + 1) Install Fedora 11, and get up to date with "yum upgrade" + + 2) run as root: yum install mingw32-SDL_mixer mingw32-SDL_image + + 3) change to the VoR source directory + + 4) If you need to build the graphics (eg if you edited them, or if you're + not using a release tarball) then run: ./configure && make graphics + + 5) run: mingw32-configure && make + + 6) make a directory with vor.exe, data/ and the following files from + /usr/i686-pc-mingw32/sys-root/mingw/bin/: SDL.dll SDL_image.dll + SDL_mixer.dll libjpeg-62.dll libpng12-0.dll zlib1.dll + + 7) (optional) change to that directory, and test like so: wine ./vor.exe + + 8) zip up that new directory and try it out on a Windows install. -BUILDING - - "cd" to the vor source directory and type "make" at the command prompt. RUNNING @@ -21,11 +72,10 @@ RUNNING INSTALLING - Just type "make install" at the command prompt. - - By default it puts executable in /usr/games/bin and the data in - /usr/share/vor. If you'd like to change either, edit the Makefile - before building. If you change these settings in the Makefile after - building, you'll have to "make clean" and build again before - installing. + You can run "make install" to install vor. If you're installing + system-wide (for example, to the default install location of /usr/local) + you'll need to run this as root. + You can specify an alternative install location with the --prefix= + argument to ./configure. See the output of: ./configure --help for more + information.