From supraexpress@globaleyes.net  Sun Aug  6 21:18:02 2006
Return-Path: <supraexpress@globaleyes.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B0F4516A4DF
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  6 Aug 2006 21:18:02 +0000 (UTC)
	(envelope-from supraexpress@globaleyes.net)
Received: from MX1.ll.net (mail.globaleyes.net [209.131.230.155])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1779943D5C
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  6 Aug 2006 21:18:00 +0000 (GMT)
	(envelope-from supraexpress@globaleyes.net)
Received: from freebsd2.localnet10 (unverified [209.131.253.103]) by MX1.ll.net
  (Vircom SMTPRS 4.35.480.0) with ESMTP id <B0546872033@MX1.ll.net> for <FreeBSD-gnats-submit@freebsd.org>;
  Sun, 6 Aug 2006 16:18:00 -0500
Message-Id: <1154899078.58186@freebsd2.localnet10>
Date: Sun, 6 Aug 2006 16:17:58 -0500
From: "User1001" <supraexpress@globaleyes.net>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: editors/the can be built automatically for full X11 capabilities with a few minor changes
X-Send-Pr-Version: gtk-send-pr 0.4.7 
X-GNATS-Notify:

>Number:         101529
>Category:       ports
>Synopsis:       editors/the can be built automatically for full X11 capabilities with a few minor changes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 06 21:20:13 GMT 2006
>Closed-Date:    Thu Aug 31 19:48:59 GMT 2006
>Last-Modified:  Thu Aug 31 19:48:59 GMT 2006
>Originator:     User1001
>Release:        FreeBSD 5.5-STABLE i386
>Organization:
>Environment:


System: FreeBSD 5.5-STABLE #5: Mon Jul 10 21:19:25 CDT 2006

pdcurses-2.8
Xaw3d-1.5E_1
the-3.2
rexx-imc-1.76_2


>Description:


By default, only the NCURSES version of THE is built (which is not very useful, really). To build the XCurses (X11) version requires the inclusion of devel/pdcurses XCurses.so(.8). Simple changes to the Makefile make this an automatic process with an additional "depends(WITH_XCURSES)" subsection. This builds and installs "xthe" instead of "nthe". "nthe" can still be built by default.

Note: I don't know how to properly adjust the pkg-plist for this conditional object build.




>How-To-Repeat:





>Fix:


*** Makefile.orig       Tue Jan 31 19:03:09 2006
--- Makefile    Sun Aug  6 16:00:09 2006
***************
*** 27,32 ****
--- 27,41 ----

  MAN1=         the.1

+ .if defined(WITH_XAW3D)
+ CONFIGURE_ARGS+=        --with-xaw3d
+ LIB_DEPENDS+=   Xaw3d.8:${PORTSDIR}/x11-toolkits/Xaw3d
+ .endif
+ .if defined(WITH_XCURSES)
+ CONFIGURE_ARGS+=      --with-xcurses
+ LIB_DEPENDS+= XCurses.8:${PORTSDIR}/devel/pdcurses
+ .endif
+
  .if defined(WITH_REXX_REGINA)
  BUILD_DEPENDS+=       regina:${PORTSDIR}/lang/rexx-regina
  RUN_DEPENDS+= regina:${PORTSDIR}/lang/rexx-regina
***************
*** 38,44 ****
--- 47,57 ----
  .endif

  post-install:
+ .if defined(WITH_XCURSES)
+       @${LN} -sf xthe ${PREFIX}/bin/the
+ .else
        @${LN} -sf nthe ${PREFIX}/bin/the
+ .endif
  .if !defined(NOPORTDOCS)
        @${MKDIR} ${PREFIX}/share/doc/THE
        ${INSTALL_DATA} ${WRKSRC}/*.html ${PREFIX}/share/doc/THE


>Release-Note:
>Audit-Trail:

From: User1001 <supraexpress@globaleyes.net>
To: bug-followup@FreeBSD.org,  supraexpress@globaleyes.net
Cc:  
Subject: Re: ports/101529: editors/the can be built automatically for full
 X11 capabilities with a few minor changes
Date: Wed, 09 Aug 2006 01:37:32 -0500

 Please modify the previous changes for WITH_CURSES from
 
 + .if defined(WITH_XCURSES)
 + CONFIGURE_ARGS+=      --with-xcurses
 + LIB_DEPENDS+= XCurses.8:${PORTSDIR}/devel/pdcurses
 + .endif
 
 to
 
 + .if defined(WITH_XCURSES)
 + CONFIGURE_ARGS+=      --with-xcurses \
 +                       --with-cursesincdir=/usr/local/include \
 +                       --with-curseslibdir=/usr/local/lib
 + LIB_DEPENDS+= XCurses.2:${PORTSDIR}/devel/pdcurses
 + .endif
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Thu Aug 31 19:48:45 UTC 2006 
State-Changed-Why:  
Committed, with improvements (plist conditional, OPTIONS menu) 

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