aboutsummaryrefslogtreecommitdiffstats
path: root/editors/vim5/Makefile
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-02-15 20:42:35 +0800
committerobrien <obrien@FreeBSD.org>2001-02-15 20:42:35 +0800
commita4e478bf5cc0a13467f23f9b452635b7ac99fdc3 (patch)
tree1896ec0f47f7c98fe128ca26076ec3546823cdc8 /editors/vim5/Makefile
parent8c5bf59afc04f45bd39e87ce12d11fae38d37b11 (diff)
downloadfreebsd-ports-graphics-a4e478bf5cc0a13467f23f9b452635b7ac99fdc3.tar.gz
freebsd-ports-graphics-a4e478bf5cc0a13467f23f9b452635b7ac99fdc3.tar.zst
freebsd-ports-graphics-a4e478bf5cc0a13467f23f9b452635b7ac99fdc3.zip
Only link with libxpg4 if we really need to.
Also build multibyte in the 'lite' case for our Asian sysadmins. Submitted by: clive
Diffstat (limited to 'editors/vim5/Makefile')
-rw-r--r--editors/vim5/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/editors/vim5/Makefile b/editors/vim5/Makefile
index e97762d8ced..f80528cb411 100644
--- a/editors/vim5/Makefile
+++ b/editors/vim5/Makefile
@@ -47,8 +47,14 @@ MLINKS+= vim.1 gvim.1 vim.1 gview.1 vim.1 rgvim.1 vim.1 rgview.1
.include <bsd.port.pre.mk>
+# Determine if we need xpg4.
+# No xpg4 in libc below 400020 and 500005
+.if ${OSVERSION} < 400020 && ${OSVERSION} < 500005
+LIBS=-lxpg4
+.endif
+
.if !defined(LITE)
-MAKE_ARGS+= X_LIBS=-lxpg4 CONF_OPT_MAX="--enable-max-features"
+MAKE_ARGS+= CONF_OPT_MAX="--enable-max-features"
I18N= CONF_OPT_MULTIBYTE="--enable-multibyte --enable-fontset --enable-xim"
.if defined(WITH_ATHENA)
@@ -67,7 +73,7 @@ MAKE_ARGS+= CONF_OPT_PERL="--enable-perlinterp --enable-pythoninterp --enable-tc
.endif
.else # LITE
-MAKE_ARGS+= CONF_OPT_GUI="--enable-gui=no --without-x"
+MAKE_ARGS+= CONF_OPT_GUI="--enable-gui=no --without-x --enable-multibyte"
MAKE_ARGS+= CONF_OPT_PERL="--disable-perlinterp --disable-pythoninterp --disable-tclinterp"
.endif # LITE