Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 2020 09:59:23 +0000 (UTC)
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r54547 - head/en_US.ISO8859-1/books/porters-handbook/special
Message-ID:  <202009290959.08T9xN88074280@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: 0mp
Date: Tue Sep 29 09:59:22 2020
New Revision: 54547
URL: https://svnweb.freebsd.org/changeset/doc/54547

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

Modified:
  head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml

Modified: head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml	Tue Sep 29 09:36:33 2020	(r54546)
+++ head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml	Tue Sep 29 09:59:22 2020	(r54547)
@@ -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>
+	<envar>CPPFLAGS</envar> and <envar>LDFLAGS</envar> using
+	<literal>localbase</literal> as follows:</para>
 
-      <programlisting>USES=	gettext
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
-
+      <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



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