Date: Sun, 5 Mar 2017 10:51:01 +0300 From: Mingo Rrubioer <mingorrubioer@gmail.com> To: freebsd-current@freebsd.org Subject: Re: CFLAGS for certain ports Message-ID: <CAB%2BN1g35rwpnUZa1t8iGkTods7qP15hXkb2X=M2gfyRP_JiOXw@mail.gmail.com> In-Reply-To: <cfb9a404-7b38-40c8-2b7c-4252c407c52c@ShaneWare.Biz> References: <CAB%2BN1g3ZFvkKqye45wYQg=JovByFb=wuOXzFvf9nuk2z6SwckQ@mail.gmail.com> <D8CD355B-7B1D-48FF-8C3D-BC483F51F149@FreeBSD.org> <bca0eaca-3655-2e32-a907-6cc4ec088768@freebsd.org> <cfb9a404-7b38-40c8-2b7c-4252c407c52c@ShaneWare.Biz>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi :) On Sat, Mar 4, 2017 at 4:16 AM, Shane Ambler <FreeBSD@shaneware.biz> wrote: > On 04/03/2017 02:17, Julian Elischer wrote: >> >> On 2/3/17 8:58 pm, Dimitry Andric wrote: >>> >>> On 2 Mar 2017, at 12:02, Mingo Rrubioer <mingorrubioer@gmail.com> wrote: >>>> >>>> I would like to see how well FreeBSD does as a workstation OS in the >>>> HPC world due to its stability and reliability, as well as LLVM/clang. >>>> I would like to know if FreeBSD has something similar to Gentoo's >>>> /etc/portage/make.conf file and /etc/portage/package.use/* files in >>>> order to compile certain ports with certain compiler flags. >>> >>> It doesn't, though it would certainly be nice to have something like it >>> at some point. The current idiom is to put something similar to the >>> following in your /etc/make.conf: >>> >>> .if ${.CURDIR:M/usr/ports/foo/bar} >>> CFLAGS+= [... flags for the foo/bar port ...] >>> .endif >>> >>> .if ${.CURDIR:M/usr/ports/what/ever} >>> CFLAGS+= [... flags for the what/ever port ...] >>> .endif >>> > > We can also put a Makefile.local in the port directory. There can also > be arch and system specific makefiles. > > See /usr/ports/Mk/bsd.port.mk from about line 1211 > > https://svnweb.freebsd.org/ports/head/Mk/bsd.port.mk?view=markup#l1211 Thanks to everyone and sorry for the late reply. Great help and pointers !!! This is going to be a slow process (you know how users love change ;) I have to get things well sorted aout, benchmarks, ... before I can convince anyone ... But, it's worth it ;) Back to reading man pages ;)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB%2BN1g35rwpnUZa1t8iGkTods7qP15hXkb2X=M2gfyRP_JiOXw>