From owner-freebsd-ports@FreeBSD.ORG Thu Apr 3 09:13:07 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF1761065678 for ; Thu, 3 Apr 2008 09:13:07 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.freebsd.org (Postfix) with ESMTP id 823718FC29 for ; Thu, 3 Apr 2008 09:13:07 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-064-183-238.pools.arcor-ip.net [88.64.183.238]) by mrelayeu.kundenserver.de (node=mrelayeu2) with ESMTP (Nemesis) id 0MKwtQ-1JhLVJ3OvR-0002K3; Thu, 03 Apr 2008 11:13:06 +0200 Received: (qmail 88981 invoked from network); 3 Apr 2008 09:12:07 -0000 Received: from myhost.laiers.local (192.168.4.151) by laiers.local with SMTP; 3 Apr 2008 09:12:07 -0000 From: Max Laier Organization: FreeBSD To: freebsd-ports@freebsd.org Date: Thu, 3 Apr 2008 11:10:53 +0200 User-Agent: KMail/1.9.9 References: <200804021834.43014.max@love2party.net> <20080402181654.3c1ab978@gumby.homeunix.com.> In-Reply-To: <20080402181654.3c1ab978@gumby.homeunix.com.> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804031110.53323.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1/wB2SfVQPJGeXWn9Gd/x4mzkei4c+Z3SkXYzm LYrPFV+izZ8suiOw0YM6LlIizPi/5/ylxCK6z1AbMT4gy6o/Pt XVx1ddb/gO/2zYU3aCQug== Cc: RW Subject: Re: How to set CFLAGS for the build step? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 09:13:07 -0000 On Wednesday 02 April 2008 19:16:54 RW wrote: > On Wed, 2 Apr 2008 18:34:42 +0200 > > Max Laier wrote: > > Hi, > > > > I have some trouble with sysutils/pftop. It seems that if a user > > sets CFLAGS in make.conf the additional "CFLAGS+= -DHAVE_ALTQ=1" I > > have in the port's Makefile doesn't get through to the build step's > > environment. This might be due to the fact that this port uses the > > bsd.*.mk scripts, but I'm puzzled as to how to do this right. Any > > insight? > > It's handled in the pftop Makefile: Please read my message again. > > .if ${OSVERSION} < 502116 > MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=34 > .if defined(WITH_ALTQ) && (${WITH_ALTQ} == "yes") > CFLAGS+= -DHAVE_ALTQ=1 > .endif > .elif ${OSVERSION} < 600025 > MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=35 > CFLAGS+= -DHAVE_ALTQ=1 -DHAVE_RULE_ANCHOR=1 > .elif ${OSVERSION} < 700049 > MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=37 > CFLAGS+= -DHAVE_ALTQ=1 > .else > MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=41 > CFLAGS+= -DHAVE_ALTQ=1 > .endif -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News