Re: How to add compile time options to a port?
Date: Sun, 03 Apr 2022 18:38:27 UTC
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 ...