forked from kornelski/pngquant
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL
42 lines (27 loc) · 1.09 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
Follow the steps below to build pngquant from source on Linux or UNIX systems
(including Mac OS X):
1. 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.40.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.40.tar.gz
$ mv libpng-1.2.40 libpng
Build libpng:
$ cd libpng
$ ./configure && make libpng.a
2. Download the zlib source code from:
http://www.zlib.net/
$ cd ..
$ wget http://prdownloads.sourceforge.net/libpng/zlib-1.2.3.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.3.tar.gz
$ mv zlib-1.2.3 zlib
Build it:
$ make
3. Go back to the pngquant directory and make using the Makefile.unx make file:
$ cd ../pngquant/
$ make -f Makefile.unx
That's it, you should now have a 'pngquant' executable in the current directory.