Subject: Re: installing ess with emacs no-x11
To: None <>
From: George Georgalis <>
List: tech-pkg
Date: 02/08/2006 15:48:22
On Tue, Feb 07, 2006 at 10:41:33AM -0500, George Georgalis wrote:
>On Tue, Feb 07, 2006 at 08:10:04AM +0100, Antoine Reilles wrote:
>>On Tue, Feb 07, 2006 at 12:43:58AM -0500, George Georgalis wrote:
>>> Trying to install math/ess, an emacs plugin, but it is requiring
>>> an x11 version of emacs, doesn't notice the one installed.
>>For this to work, you will need to set
>>in your /etc/mk.conf
>>then cd math/ess && make install will pick and install emacs-nox
>Thanks! worked perfect.
>Is it possible to install math/R without the tk stuff?

Answering my own question... yes with the following hack (sorry
tabs are spaces)

 root@dev:/usr/pkgsrc/math/R # diff -du Makefile.orig Makefile                                      
--- Makefile.orig       2006-02-08 15:39:46.000000000 -0500
+++ Makefile    2006-02-08 15:40:58.000000000 -0500
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.77 2005/12/11 14:37:12 markd Exp $
+# $NetBSD: patch$
 DISTNAME=              R-2.2.0
 CATEGORIES=            math
@@ -24,11 +24,13 @@
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --enable-R-shlib
-CONFIGURE_ARGS+=       --with-x
+#CONFIGURE_ARGS+=      --with-x=no
+CONFIGURE_ARGS+=       --without-x
 CONFIGURE_ARGS+=       --with-readline
-CONFIGURE_ARGS+=       --with-tcltk
-CONFIGURE_ARGS+=       --with-tcl-config=${BUILDLINK_PREFIX.tcl}/lib/
-CONFIGURE_ARGS+=       --with-tk-config=${}/lib/
+#CONFIGURE_ARGS+=      --with-tcltk=no
+CONFIGURE_ARGS+=       --without-tcltk
+#CONFIGURE_ARGS+=      --with-tcl-config=${BUILDLINK_PREFIX.tcl}/lib/
+#CONFIGURE_ARGS+=      --with-tk-config=${}/lib/
 CONFIGURE_ARGS+=       --without-gnome         # not yet stable
 CONFIGURE_ARGS+=       --with-system-zlib
 CONFIGURE_ARGS+=       --with-system-bzlib
@@ -92,7 +94,7 @@
 .include "../../graphics/jpeg/"
 .include "../../graphics/png/"
 .include "../../math/blas/"
-.include "../../x11/tk/"
+#.include "../../x11/tk/"
 # Generate the PLIST dynamically as it changes in each version only in a
 # specific subtree.  This will make maintaining this package a little easier

It should be obvious what the problem is... I've not tested this
workaround; but it seems to install without tk ;) I'll work out
a patch with if/then etc, soon as I work out some similar pre
produciton issues.

// George

George Georgalis, systems architect, administrator <IXOYE>< cell:646-331-2027