Suggest the use of USES=localbase to set flags like CFLAGS and LDFLAGS

This commit is contained in:
Mateusz Piotrowski 2020-09-29 09:59:22 +00:00
parent fe6e5a214d
commit 5802b8f818
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=54547

View file

@ -1482,13 +1482,10 @@ GNU_CONFIGURE= yes</programlisting>
<para>If it ever fails to, hints at the location of
<literal>gettext</literal> can be passed in
<envar>CPPFLAGS</envar> and <envar>LDFLAGS</envar> as
follows:</para>
<programlisting>USES= gettext
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
<envar>CPPFLAGS</envar> and <envar>LDFLAGS</envar> using
<literal>localbase</literal> as follows:</para>
<programlisting>USES= gettext localbase:ldflags
GNU_CONFIGURE= yes</programlisting>
</sect2>
@ -2037,11 +2034,9 @@ MASTER_SITES= GNOME
MAINTAINER= kwm@FreeBSD.org
COMMENT= Interactive tool for performing search and replace operations
USES= gettext gmake pathfix pkgconfig tar:xz
USES= gettext gmake localbase:ldflags pathfix pkgconfig tar:xz
GNU_CONFIGURE= yes
USE_GNOME= gnomeprefix intlhack gtksourceviewmm3
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
INSTALLS_ICONS= yes
GLIB_SCHEMAS= org.regexxer.gschema.xml