pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/30559: rc readline support in options.mk



>Number:         30559
>Category:       pkg
>Synopsis:       rc readline support in options.mk
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 19 13:56:00 +0000 2005
>Originator:     kreuter%progn.net@localhost
>Release:        NetBSD 2.0.2
>Organization:
>Environment:
System: NetBSD landru.localdomain 2.0.2 NetBSD 2.0.2 (LANDRU) #2: Sun May 15 
11:26:28 EDT 2005 kreuter@landru:/usr/src/sys/arch/i386/compile/LANDRU i386
Architecture: i386
Machine: i386
>Description:

pkgsrc/shells/rc can optionally be built with support for GNU
readline.  This patch adds an option using options.mk to enable this
support.
        
>How-To-Repeat:

Not applicable.

>Fix:

diff -purN rc.dist/Makefile rc/Makefile
--- rc.dist/Makefile    2005-06-19 09:46:20.000000000 -0400
+++ rc/Makefile 2005-06-19 07:53:03.000000000 -0400
@@ -14,4 +14,6 @@ CONFIGURE_ARGS=       --with-history
 USE_PKGINSTALL=        yes
 PKG_SHELL=     ${PREFIX}/bin/rc
 
+.include "options.mk"
+
 .include "../../mk/bsd.pkg.mk"
diff -purN rc.dist/options.mk rc/options.mk
--- rc.dist/options.mk  1969-12-31 19:00:00.000000000 -0500
+++ rc/options.mk       2005-06-19 09:40:54.000000000 -0400
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.2 2005/05/31 22:04:06 wiz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.rc
+PKG_SUPPORTED_OPTIONS= with-readline
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mwith-readline)
+.include "../../devel/readline/buildlink3.mk"
+CONFIGURE_ARGS+=        --with-readline
+USE_GNU_READLINE=      YES
+.endif
+




Home | Main Index | Thread Index | Old Index