Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Apr 2022 20:38:27 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        iio7@tutanota.com
Cc:        Freebsd Questions <freebsd-questions@freebsd.org>
Subject:   Re: How to add compile time options to a port?
Message-ID:  <a6d2-ko64-wny@FreeBSD.org>
In-Reply-To: <MzcsOyy--3-2@tutanota.com> (iio7@tutanota.com's message of "Sat, 2 Apr 2022 08:06:15 %2B0200 (CEST)")
References:  <MzcsOyy--3-2@tutanota.com>

next in thread | previous in thread | raw e-mail | index | archive | help
iio7@tutanota.com writes:

> I have been search the man pages and the manual, but haven't
> been able to locate any specific information.
>
> If there is a port in which the maintainer isn't providing all the
> compile time options, is there a way to add an option without
> manually editing and changing the Makefile?
>
> If not, what is the best practice here?

/usr/ports/*/*/Makefile.local

Makefile.local is read *after* Makefile, so unlike make.conf can
modify all variables, not just those set via "?=" or "+=".

>
> Just as an example, say I want to add the option:
>
>  --without-gpm-mouse
>
> to mc (Midnight Commander).

$ cd /usr/ports/misc/mc
$ echo 'CONFIGURE_ARGS += --without-gpm-mouse' >>Makefile.local
$ make -V CONFIGURE_ARGS
--without-gpm-mouse ...



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