How to set CFLAGS for the build step?
Max Laier
max at love2party.net
Thu Apr 3 09:13:07 UTC 2008
On Wednesday 02 April 2008 19:16:54 RW wrote:
> On Wed, 2 Apr 2008 18:34:42 +0200
>
> Max Laier <max at 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 at freebsd.org
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier at EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
More information about the freebsd-ports
mailing list