From 6463e6ab94cd14466c08f10b11c20ef98e397869 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Thu, 17 Mar 2011 14:45:23 -0700 Subject: [PATCH] add some install instructions, and fix intel-mac flags patch by Christian Duvivier Change-Id: I8e38f98c6738c3d89917cd3eb88f6c095335a428 --- makefile.unix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/makefile.unix b/makefile.unix index 498c6f2c..09c09deb 100644 --- a/makefile.unix +++ b/makefile.unix @@ -10,10 +10,23 @@ #### Customizable part #### -# These flag assume you have libpng and libjpeg installed. If not, -# just comment out both lines. +# These flag assume you have libpng and libjpeg installed. If not, either +# follow below install instructions or just comment out the next lines. EXTRA_FLAGS= -DWEBP_HAVE_PNG -DWEBP_HAVE_JPEG EXTRA_LIBS= -lpng -ljpeg +ifeq ("$(HOSTTYPE)", "intel-mac") + EXTRA_FLAGS += -I/opt/local/include + EXTRA_LIBS += -L/opt/local/lib +endif + +# To install libraries on Mac OS X: +# 1. Install MacPorts (http://www.macports.org/install.php) +# 2. Run "sudo port install jpeg" +# 3. Run "sudo port install libpng" + +# To install libraries on Linux: +# 1. Run "sudo apt-get install libjpeg62-dev" +# 2. Run "sudo apt-get install libpng12-dev" # Uncomment for build for 32bit platform # Alternatively, you can just use the command