aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2010-10-05 18:13:39 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2010-10-05 18:13:39 +0000
commita2a11122fdd986c18f77dee2b5582f25a250b86b (patch)
tree748815f9e42684e855530fa08d3f39f968860402
parent1f38db59bcc57396b8766e10a0fe653523ee6d59 (diff)
downloadports-a2a11122fdd986c18f77dee2b5582f25a250b86b.tar.gz
ports-a2a11122fdd986c18f77dee2b5582f25a250b86b.zip
Notes
-rw-r--r--editors/vim/Makefile19
-rw-r--r--editors/vim/options2
2 files changed, 15 insertions, 6 deletions
diff --git a/editors/vim/Makefile b/editors/vim/Makefile
index 465debf91825..78c9ba67e4a0 100644
--- a/editors/vim/Makefile
+++ b/editors/vim/Makefile
@@ -7,6 +7,9 @@
#
PORTNAME?= vim
+# ! _NEVER_ reduce or lower PATCHLEVEL, even if the PATCHLEVEL
+# ! value # is added to BADPATCHES. Doing otherwise will cause
+# ! PORTEPOCH to be needed, which we do NOT want.
PATCHLEVEL= 446
PORTVERSION= 7.2.${PATCHLEVEL}
RELEASE= vim-${PORTVERSION:C/\.[0-9a-z]*$//}
@@ -38,7 +41,7 @@ SLAVEDIRS= editors/vim-lite
.include "${.CURDIR}/../vim/options"
.endif
-CONFLICTS= vim6* vim*-lite
+CONFLICTS= vim6* vim*-lite vim*-gtk1 vim*-gnome
MAKE_JOBS_SAFE= yes
USE_BZIP2= yes
DIST_SUBDIR= vim
@@ -124,20 +127,20 @@ MAKE_ARGS+= CONF_OPT_TCL="--enable-tclinterp --with-tclsh="${TCLSH:S/${LOCALBASE
.if !defined(WITHOUT_X11)
# for now default the GUI to the GTK+ one
-. if !defined(WITH_X11_ONLY) && !defined(WITH_ATHENA) && !defined(WITH_MOTIF) && !defined(WITH_GNOME) && !defined(WITH_GTK) && !defined(WITH_GTK2)
-WITH_GTK= yes
+. if !defined(WITH_X11_ONLY) && !defined(WITH_ATHENA) && !defined(WITH_MOTIF) && !defined(WITH_GNOME) && !defined(WITH_GTK1) && !defined(WITH_GTK2)
+WITH_GTK2= yes
. endif
. if defined(WITH_ATHENA)
MAKE_ARGS+= CONF_OPT_GUI="--enable-gui=athena" ${I18N}
-. elif defined(WITH_GTK)
+. elif defined(WITH_GTK1)
USE_GNOME= gtk12
MAKE_ARGS+= CONF_OPT_GUI="--enable-gui=gtk --with-gtk-prefix=${LOCALBASE}" ${I18N}
MAKE_ARGS+= X_LIBS="$(X_LIBS) -lXt"
USE_XORG+= xt
+PKGNAMESUFFIX= -gtk1
. elif defined(WITH_GTK2)
USE_GNOME= gtk20
-PKGNAMESUFFIX= -gtk2
MAKE_ARGS+= CONF_OPT_GUI="--enable-gui=gtk2 --with-gtk-prefix=${LOCALBASE}" ${I18N}
MAKE_ARGS+= X_LIBS="$(X_LIBS) -lXt"
USE_XORG+= xt
@@ -255,6 +258,12 @@ post-install:
show-options:
@${MAKE} -DWITH_OPTIONS showconfig
+.if defined(WITH_GTK)
+.BEGIN:
+ @${ECHO_CMD} "WITH_GTK has been renamed WITH_GTK1."
+ @exit 1
+.endif
+
cklatest:
-ncftpls \
ftp://ftp.vim.org/pub/vim/patches/${PORTVERSION:C/\.[0-9a-z]*$//}/ \
diff --git a/editors/vim/options b/editors/vim/options
index e3251fb2f5a1..b3f3b8d42246 100644
--- a/editors/vim/options
+++ b/editors/vim/options
@@ -9,7 +9,7 @@ OPTIONS= PERL "Enable Perl interpreter" off \
X11_ONLY "CLI-only Vim, but with basic X11 support" off \
XTERM_SAVE "Restore xterm screen after exit" off \
ATHENA "Athena GUI" off \
- GTK "GTK+ 1.2 GUI" off \
+ GTK1 "GTK+ 1.2 GUI" off \
GTK2 "GTK2 GUI" off \
GNOME "Gnome1 GUI" off \
MOTIF "Motif GUI" off \