pkgsrc-WIP-changes archive

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

quickjs: Use subst framework, NFCI



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Sat Jul 13 14:47:37 2019 +0200
Changeset:	ef4372a98dc6d4c3d383edec15fa8a31d0f3bff8

Modified Files:
	quickjs/Makefile

Log Message:
quickjs: Use subst framework, NFCI

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

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

diffstat:
 quickjs/Makefile | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diffs:
diff --git a/quickjs/Makefile b/quickjs/Makefile
index 92837b56fa..dbba5a4602 100644
--- a/quickjs/Makefile
+++ b/quickjs/Makefile
@@ -13,13 +13,14 @@ LICENSE=	mit
 
 USE_TOOLS=	gmake
 
+SUBST_CLASSES+=		makefile
+SUBST_STAGE.makefile=	pre-configure
+SUBST_MESSAGE.makefile=	Adjust hardcoded paths
+SUBST_FILES.makefile=	Makefile
+SUBST_SED.makefile+=	-e 's,/usr/local,${PREFIX},g'
+
 INSTALLATION_DIRS+=	bin lib/quickjs include/quickjs
 
 TEST_TARGET=	test
 
-post-extract:
-	cd ${WRKSRC}; \
-	${SED} -e 's:^prefix=.*:prefix='${PREFIX}':' <Makefile >Makefile.new; \
-	mv Makefile.new Makefile
-
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index