. (Potentially) set USE_EMACS before we include bsd.port.pre.mk, not after,

so that we pick up bsd.emacs.mk.

PR:		109580
This commit is contained in:
Greg Lewis
2007-03-07 20:05:47 +00:00
parent 5ee6cff906
commit acc3cbd07b

View File

@@ -30,8 +30,6 @@ OPTIONS= GD "Enable GD support" on \
MAN1= gnuplot.1 lasergnu.1
INFO= gnuplot
.include <bsd.port.pre.mk>
.if exists(${PREFIX}/bin/emacs) || exists(${PREFIX}/bin/xemacs)
USE_EMACS= yes
EMACS_PORT_NAME= emacs21
@@ -43,6 +41,8 @@ PLIST_SUB+= EMACS_SITE_LISPDIR="@comment "
CONFIGURE_ARGS+= --without-lisp-files
.endif
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_READLINE)
.if ${OSVERSION} < 500018
LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline