Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Apr 2008 11:10:53 +0200
From:      Max Laier <max@love2party.net>
To:        freebsd-ports@freebsd.org
Cc:        RW <fbsd06@mlists.homeunix.com>
Subject:   Re: How to set CFLAGS for the build step?
Message-ID:  <200804031110.53323.max@love2party.net>
In-Reply-To: <20080402181654.3c1ab978@gumby.homeunix.com.>
References:  <200804021834.43014.max@love2party.net> <20080402181654.3c1ab978@gumby.homeunix.com.>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 02 April 2008 19:16:54 RW wrote:
> On Wed, 2 Apr 2008 18:34:42 +0200
>
> Max Laier <max@love2party.net> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804031110.53323.max>