summaryrefslogtreecommitdiff
path: root/inputmethod
diff options
context:
space:
mode:
authoruebayasi <uebayasi@pkgsrc.org>2004-11-02 00:41:30 +0000
committeruebayasi <uebayasi@pkgsrc.org>2004-11-02 00:41:30 +0000
commitc67b115beaf8c54cad8a9ce53561c15e663e3cd3 (patch)
treeee1a01d001ee37c3a586c6ce3181cb56a757317b /inputmethod
parenteb79db9904d7de02ea2d76df05092dbbe0120bf7 (diff)
downloadpkgsrc-c67b115beaf8c54cad8a9ce53561c15e663e3cd3.tar.gz
Use SUBST_*.
Diffstat (limited to 'inputmethod')
-rw-r--r--inputmethod/skk/Makefile17
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"