From 5802b8f8187f06ead06cf565ee49cd18cdb309b4 Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Tue, 29 Sep 2020 09:59:22 +0000 Subject: [PATCH] Suggest the use of USES=localbase to set flags like CFLAGS and LDFLAGS --- .../books/porters-handbook/special/chapter.xml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml index 2bf0d93d89..64b4853a65 100644 --- a/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml @@ -1482,13 +1482,10 @@ GNU_CONFIGURE= yes If it ever fails to, hints at the location of gettext can be passed in - CPPFLAGS and LDFLAGS as - follows: - - USES= gettext -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib + CPPFLAGS and LDFLAGS using + localbase as follows: + USES= gettext localbase:ldflags GNU_CONFIGURE= yes @@ -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