diff options
author | uebayasi <uebayasi@pkgsrc.org> | 2004-11-02 00:41:30 +0000 |
---|---|---|
committer | uebayasi <uebayasi@pkgsrc.org> | 2004-11-02 00:41:30 +0000 |
commit | 18174b3f6b67a1809acaac4c90911aeeb8bae82f (patch) | |
tree | ee1a01d001ee37c3a586c6ce3181cb56a757317b /inputmethod | |
parent | 8b6509c1913653402487da871d22b5a49c107e6e (diff) | |
download | pkgsrc-18174b3f6b67a1809acaac4c90911aeeb8bae82f.tar.gz |
Use SUBST_*.
Diffstat (limited to 'inputmethod')
-rw-r--r-- | inputmethod/skk/Makefile | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/inputmethod/skk/Makefile b/inputmethod/skk/Makefile index d168b55914b..fd459dbca2b 100644 --- a/inputmethod/skk/Makefile +++ b/inputmethod/skk/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2003/09/13 08:30:38 minoura Exp $ +# $NetBSD: Makefile,v 1.5 2004/11/02 00:41:30 uebayasi Exp $ # DISTNAME= ddskk-12.2.0 @@ -31,11 +31,16 @@ ALL_TARGET= elc INFO_FILES= skk.info -do-configure: +# SKK-CFG was copied from ${FILESDIR} during post-extract. +SUBST_CLASSES= cfg +SUBST_STAGE.cfg= do-configure +SUBST_FILES.cfg= SKK-CFG +SUBST_SED.cfg= -e 's|@PREFIX@|${PREFIX}|g' \ + -e 's|@EMACS_LISPPREFIX@|${EMACS_LISPPREFIX}|g' + +# Substitute directory definitions during do-configure. +post-extract: @${MV} ${WRKSRC}/SKK-CFG ${WRKSRC}/SKK-CFG.orig - @${SED} \ - -e 's|@PREFIX@|${PREFIX}|g' \ - -e 's|@EMACS_LISPPREFIX@|${EMACS_LISPPREFIX}|g' \ - ${FILESDIR}/SKK-CFG >${WRKSRC}/SKK-CFG + @${CP} ${FILESDIR}/SKK-CFG ${WRKSRC} .include "../../mk/bsd.pkg.mk" |