pkgsrc-WIP-changes archive

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

sfeed-git: Avoid SUBST-fu and use MAKE_FLAGS instead (NFC)



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Tue Feb 26 19:10:36 2019 +0100
Changeset:	fb570e8cc89ff29c2c85a09f09734468c0af62e5

Modified Files:
	sfeed-git/Makefile

Log Message:
sfeed-git: Avoid SUBST-fu and use MAKE_FLAGS instead (NFC)

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=fb570e8cc89ff29c2c85a09f09734468c0af62e5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 sfeed-git/Makefile | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diffs:
diff --git a/sfeed-git/Makefile b/sfeed-git/Makefile
index 996e0869b2..6db751cdec 100644
--- a/sfeed-git/Makefile
+++ b/sfeed-git/Makefile
@@ -15,17 +15,9 @@ WRKSRC=			${WRKDIR}/sfeed
 
 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