From owner-freebsd-current@freebsd.org Sun Mar 5 07:51:23 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 26410CFA921 for ; Sun, 5 Mar 2017 07:51:23 +0000 (UTC) (envelope-from mingorrubioer@gmail.com) Received: from mail-qk0-x22f.google.com (mail-qk0-x22f.google.com [IPv6:2607:f8b0:400d:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D7728122A for ; Sun, 5 Mar 2017 07:51:22 +0000 (UTC) (envelope-from mingorrubioer@gmail.com) Received: by mail-qk0-x22f.google.com with SMTP id n127so233082726qkf.0 for ; Sat, 04 Mar 2017 23:51:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=vJB0caWBO4WdTqMHI13IGTt0TxuB69Idqq9RhbIawn4=; b=NoSdSafvp2AzHLCUOdl4fXUg/UaijQrasUHxXxdrM7bAZ8aQDsIHIW2dStlrmldNJy DHoLGReeTLpn0Jv4Zh0Mnx/eE2e3BoWCqqVzTeq8FsJa6wCCPU4zSCp6Norfh0gBo33a BcMOi9aJxLrZJXIFYZ6AWx4lX6f0tda6BFIgovE1Z9+8uH4sGUpirPknzqmUbUuHnjWY 1AXXRMglLZfygVf922RKhWZdbTFchZ43e2RHvMX/3HgElc0gZXyDDFd48/tmHMwVue7I uSELaVPRDQadtccM1zSAwWUY1gVq9zFCSNGplBAgZ9OrBtrcXc0qdw5OT0tkIT7ZXe2n fYog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=vJB0caWBO4WdTqMHI13IGTt0TxuB69Idqq9RhbIawn4=; b=GelYa5/Kf/jlACYj0Nyw5L3C66YR0aRinGswnqz0vQDvsdgfcgcn0Khi2u3p0I23Hs bGdzR4YdZqy6gJ1V/5aaQHKvWuS0TEma4bUIDl1FKnSAQcXVVrdq/f/aH6Cfe21To1oL 6I75c24VOjSYk8V5/yAaeqgz9VLSy9O4Ouzq3Jm4p3j/4XRytd+znvANsnJSNvU248nb pDeB4Zxla1nxpNl90Fsi7G2JZqgmnVUqyV2m9Vha4+Aelcmmd/O0VdYEqRnCtI3C5BPF UCB3xF3Typ0Re/45A9lv9t44+fbDJIvJRhRs0jAxBMZG5V1afpgT4gBrByqHkJ9OETbd +8Ow== X-Gm-Message-State: AMke39lw0XZ7PIBpwmMh8ad0tFqkxnYzjHhIlLtXFalxPYE6SxX+VnDaLnj7xXuBAmf/esr0NEcgJP4qyDOuoQ== X-Received: by 10.200.52.196 with SMTP id x4mr11456524qtb.276.1488700281887; Sat, 04 Mar 2017 23:51:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.31.72 with HTTP; Sat, 4 Mar 2017 23:51:01 -0800 (PST) In-Reply-To: References: From: Mingo Rrubioer Date: Sun, 5 Mar 2017 10:51:01 +0300 Message-ID: Subject: Re: CFLAGS for certain ports To: freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Mar 2017 07:51:23 -0000 Hi :) On Sat, Mar 4, 2017 at 4:16 AM, Shane Ambler 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 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 ;)