File: README.src

package info (click to toggle)
zgv 3.0-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 680 kB
  • ctags: 616
  • sloc: ansic: 6,696; makefile: 109; sh: 23
file content (79 lines) | stat: -rw-r--r-- 2,944 bytes parent folder | download
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
74
75
76
77
78
79
README.src - information about source, compilation etc.
-------------------------------------------------------

Svgalib is required for zgv to compile. The program should work with
any reasonably recent version (but you should not use version 1.2.10
or earlier due to a potential security risk). You can find svgalib on
sunsite.unc.edu in /pub/Linux/libs/graphics.


The Independant JPEG Group's JPEG software is also required for zgv to
compile. The README in v6a of the JPEG software says:

"The "official" archive site for this software is ftp.uu.net (Internet
address 192.48.96.9).  The most recent released version can always be found
there in directory graphics/jpeg.  This particular version will be archived
as graphics/jpeg/jpegsrc.v6a.tar.gz."

...so look there for the source.

Once you've got it, do `./configure', then `make libjpeg.a', and also
make sure JPEGDIR in zgv's Makefile is set to the directory you have
the JPEG software's source in.

(By the way, you must use at least version 5 of the library - version
4 is now not supported, as the library underwent quite a rewrite
between versions 4 and 5. Versions 5, 5a, 6, and 6a have all been
tested and all work.)


If you want PNG support, you'll need:

ftp.uu.net:/graphics/png/code/lpng???.zip	and
ftp.uu.net:/graphics/png/code/zlib???.zip

...where the ?'s are the version number. (The dirs/filenames might be
different now - libpng should be under /graphics/png somewhere though,
and zlib should be either there or in /pub/archiving/zip/zlib.)

If you don't want PNG support, comment out the `PNGDEF' line in the
Makefile and skip ahead to the `When libraries are in place' heading
below. In case you don't know what the PNG format is, here's an
extract from the 10th draft specification:

> The PNG format is intended to provide a portable, legally
> unencumbered, well-compressed, well-specified standard for lossless
> bitmapped image files. 
> 
> Although the initial motivation for developing PNG was to replace GIF,
> the design provides some useful new features not available in GIF, with
> minimal cost to developers. 

The process of building the libpng and zlib libraries goes something
like this, assuming both the zip files are in /usr/src (you need the
Info-ZIP `unzip' program to unpack the zip files):

cd /usr/src
mkdir libpng zlib
cd zlib;unzip -a ../zlib*.zip
make libz.a
cd ../libpng;unzip -a ../lpng*.zip
make libpng.a

Be sure to use the `-a' option to unzip as otherwise the text files
will be left in MS-DOS CR/LF format which will result in suitably
bizarre error messages.


When libraries are in place
---------------------------

When you've done that, the easiest way to install zgv etc. is to just
do `make install' as root. This compiles the programs, copies them to
/usr/bin, and copies the man pages to /usr/man/man1. If you want any
of these files somewhere else change the BINDIR and/or MANDIR line in
the Makefile.

Good luck!

-Rus.