pkgsrc-WIP-changes archive

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

gramscii: Honor user's CFLAGS and avoid hardcoded optimizations



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Thu Jan 21 17:40:26 2021 +0100
Changeset:	ba42037a063bf864631ff03036cd9bce1d7a2939

Modified Files:
	gramscii/Makefile

Log Message:
gramscii: Honor user's CFLAGS and avoid hardcoded optimizations

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

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

diffstat:
 gramscii/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diffs:
diff --git a/gramscii/Makefile b/gramscii/Makefile
index 1105b36a74..08d6390554 100644
--- a/gramscii/Makefile
+++ b/gramscii/Makefile
@@ -16,4 +16,11 @@ MAKE_FLAGS+=	MANDIR="${PREFIX}/${PKGMANDIR}"
 
 USE_LANGUAGES=	c99
 
+SUBST_CLASSES+=		config
+SUBST_STAGE.config=	pre-configure
+SUBST_MESSAGE.config=	Honor user's CFLAGS and avoid hardcoded optimization
+SUBST_FILES.config=	config.mk
+SUBST_SED.config+=	-e 's,^CFLAGS *= ,CFLAGS += ,'
+SUBST_SED.config+=	-e '/CFLAGS/s,-O3,,'
+
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index