Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Sep 2007 18:00:02 +0200
From:      Martin Tournoij <carpetsmoker@xs4all.nl>
To:        freebsd-ports@freebsd.org
Cc:        Gergely_Santa@tempest.sk, obrien@FreeBSD.org
Subject:   Re: configure editors/vim
Message-ID:  <20070913160001.GB49054@glitch.rwxrwxrwx.net>
In-Reply-To: <46E92692.7020202@tempest.sk>
References:  <46E92692.7020202@tempest.sk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu 13 Sep 2007 14:09, Gergely S=EF=BF=BDnta wrote:
> Hi!
> I'm a developer using gvim with it's tagging through exctags (somehow cta=
gs never worked for me). As vim=20
> port have no configuration options, it can't be configured easyly through=
 'make config'. I'm too lazy for=20
> digging Makefile for options every time I compile new version of vim, I a=
dded configuration options to=20
> Makefile.
> I'm new to FreeBSD, also to it's Ports, so maybe I don't see the reasons,=
 these options aren't in the=20
> Makefile, but maybe they should be there. Anyway, I attach my change, may=
be it will be acceptable to have=20
> it's way to ports. And if not, maybe it will help for someone else too :)
>=20
> EdE
>=20
>=20
> [root@ed /usr/ports/editors/vim]# diff -u Makefile.orig Makefile
> --- Makefile.orig       Thu Sep 13 13:52:20 2007
> +++ Makefile    Thu Sep 13 13:52:27 2007
> @@ -29,6 +29,17 @@
>=20
>  SLAVEDIRS=3D     editors/vim-lite
>=20
> +OPTIONS=3D       PERL "Enable Perl interpreter" off \
> +               PYTHON "Enable Python interpreter" off \
> +               RUBY "Enable Ruby interpreter" off \
> +               CSCOPE "Enable cscope" off \
> +               EXUBERANT_CTAGS "Use exctags instead of ctags" off \
> +               ATHENA "Athena GUI" off \
> +               GTK2 "GTK2 GUI" off \
> +               GNOME "Gnome1 GUI" off \
> +               MOTIF "Motif GUI" off \
> +               XTERM_SAVE "" off
> +
>  .if defined(PACKAGE_BUILDING) && !defined(LITE)
>  #WITH_TCL=3D     yes
>  WITH_PERL=3D     yes

You should send these kind of questions/suggestions to the port
maintainer, not to the ports mailing list.
I've cc-ed the port maintainer in this email.

Some general tips on port knobs:

You can use:
grep WITH Makefile
To get a list of knobs, which is easier than viewing the Makfile with
less.

You can use /etc/make.conf to specify default port knobs, here's my
vim configuration in /etc/make.conf:
=2Eif ${.CURDIR:M*/editors/vim}
WITHOUT_X11=3D    yes
NO_GUI=3D         yes
=2Eif exists(/phong)
WITH_PERL=3D      yes
WITH_PYTHON=3D    yes
WITH_CSCOPE=3D    yes
=2Eelif exists(/glitch)
WITHOUT_PERL=3D   yes
=2Eendif
=2Eendif

The files /glitch and /phong are used to identify which machine we're
running on, and adjust the knobs accordingly.

Regards,
Martin Tournoij



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070913160001.GB49054>