Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Feb 2001 10:54:33 -0800 (PST)
From:      Alex Varju <varju@ca.webct.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/24973: [maintainer update] add plugin support for port/palm/jpilot
Message-ID:  <200102091854.f19IsXt94706@snapple.webct.com>

next in thread | raw e-mail | index | archive | help

>Number:         24973
>Category:       ports
>Synopsis:       [maintainer update] add plugin support for port/palm/jpilot
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 09 11:00:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Alex Varju
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
WebCT
>Environment:
>Description:
The current version of the port does not enable plugins, even though
they are compiled.  This stems from a problem in the configure script
that forces the enable_plugins value to always be false, whether or
not --enable-plugins is specified.

The solution is a bit of a hack, as all it does is force the value of
enable_plugins to be true ... if somebody knows how to make configure
do the right thing, I'd love to learn what I'm doing wrong.

>How-To-Repeat:
Install jpilot and run it ... there should be a Plugins menu if things
go right.

>Fix:

Index: Makefile
===================================================================
RCS file: /webct2/Admin/cvsroot/ports/palm/jpilot/Makefile,v
retrieving revision 1.15
diff -u -w -r1.15 Makefile
--- Makefile	2001/02/09 16:14:28	1.15
+++ Makefile	2001/02/09 18:45:09
@@ -21,6 +21,7 @@
 USE_LIBTOOL=	yes
 CONFIGURE_ARGS+=--with-pilot-prefix=${PREFIX}
 INSTALLS_SHLIB=	yes
+USE_AUTOCONF=	yes
 
 post-install:
 .if !defined(NOPORTDOCS)
Index: files/patch-configure.in
===================================================================
RCS file: /webct2/Admin/cvsroot/ports/palm/jpilot/files/patch-configure.in,v
retrieving revision 1.1
diff -u -w -r1.1 patch-configure.in
--- files/patch-configure.in	2001/02/09 16:14:28	1.1
+++ files/patch-configure.in	2001/02/09 18:26:08
@@ -1,9 +1,28 @@
---- configure.in.orig	Fri Feb  9 23:52:19 2001
-+++ configure.in	Fri Feb  9 23:53:32 2001
-@@ -233,4 +233,6 @@
+--- configure.in.orig	Tue Feb  6 11:26:38 2001
++++ configure.in	Fri Feb  9 10:24:46 2001
+@@ -170,15 +170,12 @@
+ 
+ 
+ AC_ARG_ENABLE(plugins, [  --disable-plugins       Do not compile plugin support]\
+-, enable_plugins=no, enable_plugins=yes)
++, enable_plugins=yes, enable_plugins=yes)
+ 
+ if test "x$enable_plugins" = "xyes"; then
+    dnl Check for shared library calls
+    AC_MSG_CHECKING(for dlopen)
+-   save_LIBS="$LIBS"
+-   LIBS="$LIBS -ldl"
+    AC_TRY_LINK([#include <dlfcn.h>], [dlopen("huh",0);] , have_dlopen=yes, , )
+-   LIBS="$save_LIBS"
+ 
+    if test "x$have_dlopen" = "xyes"; then
+       AC_DEFINE(ENABLE_PLUGINS)
+@@ -232,5 +229,8 @@
+ 
  AC_OUTPUT([Makefile intl/Makefile po/Makefile.in],
  [sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile])
- 
-+AC_OUTPUT_SUBDIRS(Expense)
++
 +AC_OUTPUT_SUBDIRS(SyncTime)
++AC_OUTPUT_SUBDIRS(Expense)
+ 
  dnl AC_OUTPUT(Makefile)

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102091854.f19IsXt94706>