Re: How to add compile time options to a port?
- In reply to: Jan Beich : "Re: How to add compile time options to a port?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 04 Apr 2022 01:00:42 UTC
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 ... >