forked from kornelski/pngquant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
44 lines (28 loc) · 1.17 KB
/
INSTALL
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
Follow the steps below to build pngquant from source on Linux or UNIX systems.
You can skip first two steps if you have libpng installed on your system
(although you may need to change paths in the Makefile)
1. Download the zlib source code from:
http://www.zlib.net/
$ cd ..
$ wget http://prdownloads.sourceforge.net/libpng/zlib-1.2.5.tar.gz?download
Unpack it into the parent directory of the 'pngquant' directory and rename
it to 'zlib' - e.g.:
$ tar zxf zlib-1.2.5.tar.gz
$ mv zlib-1.2.5 zlib
Build it:
$ make
2. Download the libpng source code from:
http://www.libpng.org/pub/png/libpng.html - e.g.:
$ cd ..
$ wget http://prdownloads.sourceforge.net/libpng/libpng-1.2.44.tar.gz?download
Unpack it into the parent directory of the 'pngquant' directory and rename
it to 'libpng' - e.g.:
$ tar zxf libpng-1.2.44.tar.gz
$ mv libpng-1.2.44 libpng
Build libpng:
$ cd libpng
$ ./configure && make
3. Go back to the pngquant directory and make using the Makefile.unx make file:
$ cd ../pngquant/
$ make
That's it, you should now have a 'pngquant' executable in the current directory.