From nobody@FreeBSD.org  Fri Feb 10 08:29:50 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id F097516A420
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Feb 2006 08:29:50 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BDCEE43D46
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Feb 2006 08:29:50 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k1A8TosX056311
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Feb 2006 08:29:50 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k1A8ToV2056310;
	Fri, 10 Feb 2006 08:29:50 GMT
	(envelope-from nobody)
Message-Id: <200602100829.k1A8ToV2056310@www.freebsd.org>
Date: Fri, 10 Feb 2006 08:29:50 GMT
From: Hiroto Kagotani <hiroto.kagotani@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] graphics/djvulibre: browser plugin not working
X-Send-Pr-Version: www-2.3

>Number:         93123
>Category:       ports
>Synopsis:       [PATCH] graphics/djvulibre: browser plugin not working
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    vd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 10 08:30:09 GMT 2006
>Closed-Date:    Mon Apr 17 14:53:36 GMT 2006
>Last-Modified:  Mon Apr 17 14:53:36 GMT 2006
>Originator:     Hiroto Kagotani
>Release:        FreeBSD 6.0-STABLE
>Organization:
Okayama Univ.
>Environment:
FreeBSD myhost.mydomain 6.0-STABLE FreeBSD 6.0-STABLE #0: Thu Jan 26 04:11:57 JST 2006     myname@myhost.mydomain:/usr/obj/usr/src/sys/MYHOST  i386
>Description:
Browser plugin included in graphics/djvulibre does not working because appropriate X11 libraries are not linked to nsdejavu.so plugin module.
>How-To-Repeat:
Install graphics/djvulibre and run "firefox about:plugins".
Then you see:
LoadPlugin: failed to initialize shared library /usr/local/lib/djvulibre/plugins/nsdejavu.so [/usr/local/lib/djvulibre/plugins/nsdejavu.so: Undefined symbol "XtShellStrings"]
>Fix:
Adding a patch file for configure:

diff -ruN djvulibre.orig/files/patch-configure djvulibre/files/patch-configure
--- djvulibre.orig/files/patch-configure        Thu Jan  1 09:00:00 1970
+++ djvulibre/files/patch-configure     Fri Feb 10 16:26:19 2006
@@ -0,0 +1,11 @@
+--- configure.orig     Tue Nov  1 02:34:47 2005
++++ configure  Fri Feb 10 16:26:00 2006
+@@ -26327,7 +26327,7 @@
+ then
+  NSDEJAVU_CFLAGS=${X_CFLAGS}
+  case "$host" in
+- *-cygwin* | *-mingw*)
++ *-cygwin* | *-mingw* | *-freebsd*)
+    NSDEJAVU_LIBS="`echo ${X_LIBS} | sed -e 's/-lXext/-lXt -lXext/'`"
+    NSDEJAVU_LIBS="-no-undefined $NSDEJAVU_LIBS"
+    ;;

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->vd 
Responsible-Changed-By: vd 
Responsible-Changed-When: Mon Apr 17 14:51:08 UTC 2006 
Responsible-Changed-Why:  
Take 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93123 
State-Changed-From-To: open->closed 
State-Changed-By: vd 
State-Changed-When: Mon Apr 17 14:51:29 UTC 2006 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93123 
>Unformatted:
