~ubuntu-branches/ubuntu/intrepid/libpng/intrepid-security

« back to all changes in this revision

Viewing changes to INSTALL

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2006-11-21 19:07:43 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20061121190743-wkt0yzs5uq2xoq10
Tags: 1.2.13-4
Removed drop_pass_width patch. Closes: #399499.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
 
Installing libpng version 1.2.8 - December 3, 2004
3
 
 
4
 
Before installing libpng, you must first install zlib.  zlib
5
 
can usually be found wherever you got libpng.  zlib can be
6
 
placed in another directory, at the same level as libpng.
7
 
Note that your system might already have a preinstalled
8
 
zlib, but you will still need to have access to the
9
 
zlib.h and zconf.h include files that correspond to the
10
 
version of zlib that's installed.
 
2
Installing libpng version 1.2.13 - November 14, 2006
 
3
 
 
4
On Unix/Linux and similar systems, you can simply type
 
5
 
 
6
    ./configure [--prefix=$HOME]
 
7
    make check
 
8
    make install
 
9
 
 
10
and ignore the rest of this document.
 
11
 
 
12
If configure does not work on your system and you have a reasonably
 
13
up-to-date set of tools, running ./autogen.sh before running ./configure
 
14
may fix the problem.  You can also run the individual commands in
 
15
autogen.sh with the --force option, if supported by your version of
 
16
the tools.  If you run 'libtoolize --force', though, this will replace
 
17
the distributed, patched, version of ltmain.sh with an unpatched version
 
18
and your shared library builds may fail to produce libraries with the
 
19
correct version numbers.
 
20
 
 
21
Instead, you can use one of the custom-built makefiles in the
 
22
"scripts" directory
 
23
 
 
24
    cp scripts/makefile.system makefile
 
25
    make test
 
26
    make install
 
27
 
 
28
Or you can use one of the "projects" in the "projects" directory.
 
29
 
 
30
Before installing libpng, you must first install zlib, if it
 
31
is not already on your system.  zlib can usually be found
 
32
wherever you got libpng.  zlib can be placed in another directory,
 
33
at the same level as libpng.
 
34
 
 
35
If your system already has a preinstalled zlib you will still need
 
36
to have access to the zlib.h and zconf.h include files that
 
37
correspond to the version of zlib that's installed.
11
38
 
12
39
You can rename the directories that you downloaded (they
13
 
might be called "libpng-1.2.8" or "lpng109" and "zlib-1.2.1"
 
40
might be called "libpng-1.2.13" or "lpng109" and "zlib-1.2.1"
14
41
or "zlib121") so that you have directories called "zlib" and "libpng".
15
42
 
16
43
Your directory structure should look like this:
47
74
distribution of libpng.  It is available in both tar.gz (UNIX style line
48
75
endings) and zip (DOS style line endings) formats.
49
76
 
50
 
 
51
77
If you are building libpng with MSVC, you can enter the
52
78
libpng projects\visualc6 directory and follow the instructions in
53
79
projects\visualc6\README.txt.
59
85
or projects\beos.
60
86
 
61
87
Else enter the zlib directory and follow the instructions in zlib/README,
62
 
then come back here and choose the appropriate makefile.sys in the scripts
63
 
directory.
 
88
then come back here and run "configure" or choose the appropriate
 
89
makefile.sys in the scripts directory.
64
90
 
65
91
The files that are presently available in the scripts directory
66
92
include
67
93
 
68
94
 makefile.std      =>  Generic UNIX makefile (cc, creates static libpng.a)
69
95
 makefile.elf      =>  Linux/ELF makefile symbol versioning,
70
 
                       gcc, creates libpng12.so.0.1.2.8)
 
96
                       gcc, creates libpng12.so.0.1.2.13)
71
97
 makefile.linux    =>  Linux/ELF makefile
72
 
                       (gcc, creates libpng12.so.0.1.2.8)
 
98
                       (gcc, creates libpng12.so.0.1.2.13)
73
99
 makefile.gcmmx    =>  Linux/ELF makefile
74
 
                       (gcc, creates libpng12.so.0.1.2.8,
 
100
                       (gcc, creates libpng12.so.0.1.2.13,
75
101
                       uses assembler code tuned for Intel MMX platform)
76
102
 makefile.gcc      =>  Generic makefile (gcc, creates static libpng.a)
77
103
 makefile.knr      =>  Archaic UNIX Makefile that converts files with
94
120
 makefile.openbsd  =>  OpenBSD makefile
95
121
 makefile.sgi      =>  Silicon Graphics IRIX makefile (cc, creates static lib)
96
122
 makefile.sggcc    =>  Silicon Graphics (gcc,
97
 
                       creates libpng12.so.0.1.2.8)
 
123
                       creates libpng12.so.0.1.2.13)
98
124
 makefile.sunos    =>  Sun makefile
99
125
 makefile.solaris  =>  Solaris 2.X makefile (gcc,
100
 
                       creates libpng12.so.0.1.2.8)
 
126
                       creates libpng12.so.0.1.2.13)
101
127
 makefile.so9      =>  Solaris 9 makefile (gcc,
102
 
                       creates libpng12.so.0.1.2.8)
 
128
                       creates libpng12.so.0.1.2.13)
103
129
 makefile.32sunu   =>  Sun Ultra 32-bit makefile
104
130
 makefile.64sunu   =>  Sun Ultra 64-bit makefile
105
131
 makefile.sco      =>  For SCO OSr5  ELF and Unixware 7 with Native cc
167
193
Further information can be found in the README and libpng.txt
168
194
files, in the individual makefiles, in png.h, and the manual pages
169
195
libpng.3 and png.5.
 
196
 
 
197
 
 
198
Using the ./configure script -- 16 December 2002.
 
199
=================================================
 
200
 
 
201
 
 
202
The ./configure script should work compatibly with what scripts/makefile.*
 
203
did, however there are some options you need to add to configure explicitly,
 
204
which previously was done semi-automatically (if you didn't edit
 
205
scripts/makefile.* yourself, that is)
 
206
 
 
207
 
 
208
CFLAGS="-Wall -O3 -funroll-loops \
 
209
-malign-loops=2 -malign-functions=2" ./configure --prefix=/usr/include \
 
210
--with-pkgconfigdir=/usr/lib/pkgconfig --includedir=/usr/include
 
211
 
 
212
You can alternatively specify --includedir=/usr/include, /usr/local/include,
 
213
/usr/include/png12, or whatever.
 
214
 
 
215