summaryrefslogtreecommitdiff
path: root/editors/emacs20-dl
diff options
context:
space:
mode:
authorShigeyuki Fukushima <shige@FreeBSD.org>2001-04-27 15:16:58 +0000
committerShigeyuki Fukushima <shige@FreeBSD.org>2001-04-27 15:16:58 +0000
commitd1fd328e7d2ad8a7386a555f71d085cb795c15c6 (patch)
tree8e36f7d8c21601398e7a93b8b50f3363b4e61fcc /editors/emacs20-dl
parentUpdate to 0.7.1. (diff)
Fix for using OSVERSION variable.
Submitted by: Yoichi Nakayama <yoichi@eken.phys.nagoya-u.ac.jp>
Diffstat (limited to 'editors/emacs20-dl')
-rw-r--r--editors/emacs20-dl/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/editors/emacs20-dl/Makefile b/editors/emacs20-dl/Makefile
index fa9d74f97871..0917975323ac 100644
--- a/editors/emacs20-dl/Makefile
+++ b/editors/emacs20-dl/Makefile
@@ -47,11 +47,11 @@ PLIST_SUB= EMACS_VER=${EMACS_VER} EMACS_ARCH=${CONFIGURE_TARGET} \
SCRIPTS_ENV= SED=${SED} MV=${MV} \
DOC_FILE=${DOC_FILE}
+.include <bsd.port.pre.mk>
+
.if defined(WITH_XPG4)
-.if ${OSVERSION} >= 220000 && ${OSVERSION} < 400020
-CONFIGURE_ARGS+= --with-xpg4
-.endif
-.if ${OSVERSION} >= 500000 && ${OSVERSION} < 500005
+.if ${OSVERSION} >= 220000 && ${OSVERSION} < 400020 || \
+ ${OSVERSION} >= 500000 && ${OSVERSION} < 500005
CONFIGURE_ARGS+= --with-xpg4
.endif
.endif
@@ -64,4 +64,4 @@ do-install:
@${INSTALL} -c -s -m 555 -o root -g wheel ${WRKSRC}/src/emacs ${PREFIX}/bin/emacs-dl-${EMACS_VER}
@${INSTALL_DATA} ${WRKSRC}/etc/DOC ${PREFIX}/share/emacs/${EMACS_VER}/etc/${DOC_FILE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>