summaryrefslogtreecommitdiff
path: root/editors/emacs
diff options
context:
space:
mode:
authorenami <enami@pkgsrc.org>2000-03-26 07:59:30 +0000
committerenami <enami@pkgsrc.org>2000-03-26 07:59:30 +0000
commite310c9a242f446699b4baed8286e2a71e64098ee (patch)
tree9aa98210012447129ea496d50de0f02fac1301f0 /editors/emacs
parenteb6957f23250b9cfacd72de9a5e37f9231820825 (diff)
downloadpkgsrc-e310c9a242f446699b4baed8286e2a71e64098ee.tar.gz
Introduce three control variable for this package; EMACS_USE_{POP,X,X_TOOLKIT}.
The first one defaults to `yes' and latter two aren't defined by default (so, the configure script will configure automagically).
Diffstat (limited to 'editors/emacs')
-rw-r--r--editors/emacs/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/editors/emacs/Makefile b/editors/emacs/Makefile
index 873280dad07..4077558658a 100644
--- a/editors/emacs/Makefile
+++ b/editors/emacs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2000/03/10 15:45:33 minoura Exp $
+# $NetBSD: Makefile,v 1.36 2000/03/26 07:59:30 enami Exp $
# FreeBSD Id: Makefile,v 1.30 1997/12/14 02:03:53 asami Exp
DISTNAME= emacs-20.6
@@ -10,14 +10,25 @@ HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html
GNU_CONFIGURE= yes
USE_GMAKE= yes
-CONFIGURE_ARGS+=--with-pop --with-x --with-x-toolkit=lucid
+EMACS_USE_POP?= yes
+.if (defined(EMACS_USE_POP) && \
+ (${EMACS_USE_POP} == yes || ${EMACS_USE_POP} == YES))
+CONFIGURE_ARGS+=--with-pop
+.endif
+.if defined(EMACS_USE_X)
+CONFIGURE_ARGS+=--with-x=${EMACS_USE_X}
+.endif
+.if defined(EMACS_USE_X_TOOLKIT)
+CONFIGURE_ARGS+=--with-x-toolkit=${EMACS_USE_X_TOOLKIT}
+.endif
.if (defined(USE_INET6) && ${USE_INET6} == NO)
CONFIGURE_ARGS+=--without-ipv6
.else
CONFIGURE_ARGS+=--with-ipv6
.endif
MAKE_ENV+= INSTALL_STRIP=${STRIPFLAG}
-INFO_FILES= emacs vip viper forms gnus mh-e cl sc dired-x ediff ccmode message widget reftex forms
+INFO_FILES= emacs vip viper forms gnus mh-e cl sc dired-x ediff \
+ ccmode message widget reftex forms
INSTALL_PROGRAM=${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}