Subject: pkg/16269: let www/w3m display image in xterm
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rxg@ms25.url.com.tw>
List: netbsd-bugs
Date: 04/09/2002 20:55:31
>Number:         16269
>Category:       pkg
>Synopsis:       let www/w3m display image in xterm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 09 06:00:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Rui-Xiang Guo
>Release:        NetBSD 1.5ZC
>Organization:
	
>Environment:
	
	
System: NetBSD rxgpc.sparqnet.net 1.5ZC NetBSD 1.5ZC (HIVE) #0: Mon Mar 25 02:04:14 CST 2002 rxg@rxgpc.sparqnet.net:/usr/src/sys/arch/i386/compile/HIVE i386
Architecture: i386
Machine: i386
>Description:
	let www/w3m display image in xterm
>How-To-Repeat:
	1. fix the Makefile with this:
--- /usr/pkgsrc/www/w3m/Makefile        Sun Mar 17 17:49:54 2002
+++ Makefile    Sun Apr  7 01:23:50 2002
@@ -44,6 +44,8 @@
 W3M_USE_MOUSE?=                        YES
 # set this to YES if you want color support.
 W3M_USE_COLOR?=                        YES
+# set this to YES if you want inline image support.
+W3M_USE_IMAGE?=                        YES
 
 CONFIGURE_ENV+=        use_m17n=y
 .if ${W3M_USE_UNICODE} == YES
@@ -59,6 +61,13 @@
 CONFIGURE_ARGS+=       --lang=en
 HELP_LANG=                     _en
 .endif
+.if ${W3M_USE_IMAGE} == YES
+CONFIGURE_ENV+=        use_image=y
+PLIST_SUBST+=  IMAGE_SUPPORT=""
+.else
+CONFIGURE_ENV+=        use_image=n
+PLIST_SUBST+=  IMAGE_SUPPORT="@comment "
+.endif
 .if ${W3M_USE_COLOR} == YES
 CONFIGURE_ENV+=        use_color=y
 .else
@@ -141,11 +150,18 @@
        ${INSTALL_DATA_DIR} ${LOCALBASE}/${HELPERDIR}
        ${INSTALL_PROGRAM} ${WRKSRC}/w3mbookmark ${LOCALBASE}/${HELPERDIR}
        ${INSTALL_PROGRAM} ${WRKSRC}/w3mhelperpanel ${LOCALBASE}/${HELPERDIR}
+.if ${W3M_USE_IMAGE} == YES
+       ${INSTALL_PROGRAM} ${WRKSRC}/w3mimgdisplay ${LOCALBASE}/${HELPERDIR}
+       ${INSTALL_PROGRAM} ${WRKSRC}/w3mimgsize ${LOCALBASE}/${HELPERDIR}
+.endif
 
 post-install:
        (cd ${LOCALBASE}/${HELPDIR}; \
            ${RM} -f w3mhelp.html; \
            ${LN} -s w3mhelp${HELP_W3M}${HELP_LANG}.html w3mhelp.html)
 
+.if ${W3M_USE_IMAGE} == YES
+.include "../../graphics/imlib/buildlink.mk"
+.endif
 .include "../../devel/boehm-gc/buildlink.mk"
 .include "../../mk/bsd.pkg.mk"

	2. fix the PLIST with this:
--- /usr/pkgsrc/www/w3m/PLIST   Sat Mar  2 15:46:49 2002
+++ PLIST       Sun Apr  7 01:25:29 2002
@@ -49,4 +49,6 @@
 @dirrm share/doc/w3m
 lib/w3m/w3mbookmark
 lib/w3m/w3mhelperpanel
+${IMAGE_SUPPORT}lib/w3m/w3mimgdisplay
+${IMAGE_SUPPORT}lib/w3m/w3mimgsize
 @dirrm lib/w3m

	3. I noted that w3m-0.3-m17n-20020316.tar.gz has released,
	   if it is possible, please also update it to the new version,
	   thanks!
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: