From 70bad36e68c49ffd7d45c73516dc1a888cabdf75 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Wed, 24 Nov 2010 12:50:43 +0000
Subject: [PATCH] * disable inline image support etc. * link with our own zlib.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40589 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/software-profiles/w3m.cfg | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/buildout/software-profiles/w3m.cfg b/buildout/software-profiles/w3m.cfg
index e38e9596c4..0be7561203 100644
--- a/buildout/software-profiles/w3m.cfg
+++ b/buildout/software-profiles/w3m.cfg
@@ -3,6 +3,7 @@ extends =
   ../software-profiles/garbage-collector.cfg
   ../software-profiles/ncurses.cfg
   ../software-profiles/openssl.cfg
+  ../software-profiles/zlib.cfg
 
 parts =
   w3m
@@ -14,15 +15,19 @@ url = http://downloads.sourceforge.net/project/w3m/w3m/w3m-0.5.2/w3m-0.5.2.tar.g
 configure-options =
   --with-gc=${garbage-collector:location}
   --with-ssl=${openssl:location}
+  --with-termlib=ncurses
+  --disable-nls
+  --disable-image
+  --disable-dict
+  --disable-xface
+  --disable-mouse
+  --disable-nntp
+  --disable-help-cgi
+  --disable-external-uri-loader
+  --disable-w3mmailer
 
-make-options =
-  install-core
-  install-scripts
+keep-compile-dir = true
 
-make-targets =
-  install-core
-  install-scripts
-  
 environment =
-  CPPFLAGS =-I${ncurses:location}/include/
-  LDFLAGS =-L${ncurses:location}/lib -Wl,-rpath -Wl,${garbage-collector:location}/lib -Wl,-rpath -Wl,${ncurses:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib
+  CPPFLAGS =-I${ncurses:location}/include/ -I${zlib:location}/include/
+  LDFLAGS =-L${ncurses:location}/lib -Wl,-rpath -Wl,${garbage-collector:location}/lib -Wl,-rpath -Wl,${ncurses:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib
-- 
2.30.9