svn commit: r54547 - head/en_US.ISO8859-1/books/porters-handbook/special

Mateusz Piotrowski <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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=	 [email protected]
 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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.