pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/news/sfeed sfeed: Avoid SUBST and directly adjust vari...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e525e04290e0
branches:  trunk
changeset: 392288:e525e04290e0
user:      leot <leot%pkgsrc.org@localhost>
date:      Tue Feb 26 18:13:54 2019 +0000

description:
sfeed: Avoid SUBST and directly adjust variables via MAKE_FLAGS (NFC)

diffstat:

 news/sfeed/Makefile |  16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

diffs (30 lines):

diff -r 39126170bf57 -r e525e04290e0 news/sfeed/Makefile
--- a/news/sfeed/Makefile       Tue Feb 26 17:33:19 2019 +0000
+++ b/news/sfeed/Makefile       Tue Feb 26 18:13:54 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2019/02/17 21:19:53 leot Exp $
+# $NetBSD: Makefile,v 1.5 2019/02/26 18:13:54 leot Exp $
 
 DISTNAME=      sfeed-0.9.8
 CATEGORIES=    news
@@ -11,17 +11,9 @@
 
 USE_LANGUAGES= c99
 
-# Adjust config.mk
-SUBST_CLASSES+=                makefile
-SUBST_STAGE.makefile=  pre-configure
-SUBST_MESSAGE.makefile=        Fixing config.mk
-SUBST_FILES.makefile=  config.mk
-SUBST_SED.makefile=    -e 's,/usr/local,${PREFIX},g'
-SUBST_SED.makefile+=   -e 's,man,${PKGMANDIR},g'
-SUBST_SED.makefile+=   -e 's/cc/${CC:Q}/'
-SUBST_SED.makefile+=   -e 's,^CFLAGS *= ,CFLAGS += ,'
-SUBST_SED.makefile+=   -e 's,^CPPFLAGS *= ,CPPFLAGS += ,'
-SUBST_SED.makefile+=   -e 's,^LDFLAGS *= ,LDFLAGS += ,'
+MAKE_FLAGS+=           PREFIX=${PREFIX:Q}
+MAKE_FLAGS+=           MANPREFIX=${PREFIX:Q}/${PKGMANDIR:Q}
+MAKE_FLAGS+=           CC=${CC:Q}
 
 REPLACE_SH+=           sfeed_opml_export sfeed_update
 



Home | Main Index | Thread Index | Old Index