In the example of how to hint configure at the location of gettext,

allow for complex CPPFLAGS and LDFLAGS made up at more than one place
in port's Makefile.

Pointed out by:	dinoex
This commit is contained in:
Yaroslav Tykhiy 2006-09-22 09:38:20 +00:00
parent c43bd36038
commit fb5b615a24
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=28684

View file

@ -4634,6 +4634,17 @@ PORTVERSION= 1.0</programlisting>
<envar>CPPFLAGS</envar> and <envar>LDFLAGS</envar> as
follows:</para>
<programlisting>USE_GETTEXT= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"</programlisting>
<para>Of course, the code can be more compact if there are no
more flags to pass to <command>configure</command>:</para>
<programlisting>USE_GETTEXT= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \