diff options
author | vins <vins@pkgsrc.org> | 2022-12-06 19:27:30 +0000 |
---|---|---|
committer | vins <vins@pkgsrc.org> | 2022-12-06 19:27:30 +0000 |
commit | bcdecaffad075690d635b7fe1a6ec7efdc335599 (patch) | |
tree | da8564d4f7ffe20c823e87d395c80526d9a4055e /shells | |
parent | 4f6d5caa206af535ff5f174231fe5ad84955e3de (diff) | |
download | pkgsrc-bcdecaffad075690d635b7fe1a6ec7efdc335599.tar.gz |
shells/etsh: Makefile revision.
* Replace the SUBST routine with REPLACE_INTERPRETER.
* Replace MAKEFLAGS with MAKE_FLAGS.
* Corrently set INSTALL_ENV in the post-install target.
Diffstat (limited to 'shells')
-rw-r--r-- | shells/etsh/Makefile | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/shells/etsh/Makefile b/shells/etsh/Makefile index a927fb0dd96..75282e1eb1e 100644 --- a/shells/etsh/Makefile +++ b/shells/etsh/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2022/12/06 14:41:38 vins Exp $ +# $NetBSD: Makefile,v 1.3 2022/12/06 19:27:30 vins Exp $ DISTNAME= etsh-5.4.0 CATEGORIES= shells @@ -17,23 +17,25 @@ PKG_SHELL= bin/etsh EXPDIR:= ${PREFIX}/share/examples/etsh DOCDIR:= ${PREFIX}/share/doc/etsh -MAKEFLAGS+= PREFIX=${PREFIX} -MAKEFLAGS+= DESTDOCDIR=${DESTDIR}${DOCDIR} -MAKEFLAGS+= DESTEXPDIR=${DESTDIR}${EXPDIR} -MAKEFLAGS+= MANGRP:='' BINGRP:='' +REPLACE_INTERPRETER+= tsh +REPLACE.tsh.old= .*/bin/env etsh +REPLACE.tsh.new= ${PREFIX}/bin/etsh +REPLACE_FILES.tsh+= libexec.etsh/etshdir +REPLACE_FILES.tsh+= libexec.etsh/history +REPLACE_FILES.tsh+= libexec.etsh/pev -SUBST_CLASSES+= paths -SUBST_STAGE.paths= pre-configure -SUBST_FILES.paths+= libexec.etsh/etshdir -SUBST_FILES.paths+= libexec.etsh/history -SUBST_FILES.paths+= libexec.etsh/pev -SUBST_SED.paths= -e 's|/usr/bin/env |${PREFIX}/bin/|' +MAKE_FLAGS+= PREFIX=${PREFIX} +MAKE_FLAGS+= DESTDOCDIR=${DESTDIR}${DOCDIR} +MAKE_FLAGS+= DESTEXPDIR=${DESTDIR}${EXPDIR} + +INSTALL_ENV+= MANGRP='' +INSTALL_ENV+= BINGRP='' post-build: - cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} exp + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM:Q} exp post-install: - cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} install-exp \ - install-doc + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${INSTALL_ENV} \ + ${MAKE_PROGRAM:Q} install-exp install-doc .include "../../mk/bsd.pkg.mk" |