Date: Mon, 4 Apr 2022 03:00:42 +0200 (CEST) From: iio7@tutanota.com To: Freebsd Questions <freebsd-questions@freebsd.org> Subject: Re: How to add compile time options to a port? Message-ID: <Mzm4dnF--3-2@tutanota.com> In-Reply-To: <a6d2-ko64-wny@FreeBSD.org> References: <MzcsOyy--3-2@tutanota.com> <a6d2-ko64-wny@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Thank you very much, exactly what I was looking for. Is this documented somewhere? Where did I miss it? Cheers. Apr 3, 2022, 18:38 by jbeich@FreeBSD.org: > 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?Mzm4dnF--3-2>