summaryrefslogtreecommitdiff
path: root/inputmethod
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-03-10 16:03:44 +0000
committerjlam <jlam@pkgsrc.org>2006-03-10 16:03:44 +0000
commit32ab3656e8de82ad9c67e7a5725e2d82c3b7b814 (patch)
treeed055872f3bebf81f87f8deb832c681236edd811 /inputmethod
parent3d49f840fba0da08a55e30d3444b741c62454931 (diff)
downloadpkgsrc-32ab3656e8de82ad9c67e7a5725e2d82c3b7b814.tar.gz
Use the pkginstall framework to generate the INSTALL script from the
supplied template in ${FILESDIR}/INSTALL, and remove the unnecessary additional targets for manual generation of the same.
Diffstat (limited to 'inputmethod')
-rw-r--r--inputmethod/ja-freewnn-lib/Makefile.common11
-rw-r--r--inputmethod/ja-freewnn-lib/files/INSTALL2
2 files changed, 4 insertions, 9 deletions
diff --git a/inputmethod/ja-freewnn-lib/Makefile.common b/inputmethod/ja-freewnn-lib/Makefile.common
index 1057d7d9dbf..68aa1867c2e 100644
--- a/inputmethod/ja-freewnn-lib/Makefile.common
+++ b/inputmethod/ja-freewnn-lib/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.9 2005/05/05 19:37:22 kei Exp $
+# $NetBSD: Makefile.common,v 1.10 2006/03/10 16:03:44 jlam Exp $
#
DISTNAME= FreeWnn-1.10
@@ -27,8 +27,8 @@ SEDSCRIPT+= -e 's|$$([CK]*WNNJLIBSRC)/lib\([ck]*wnn\).a|-l\1|'
SEDSCRIPT+= -e 's|\(:.*\)$$(WNNJLIB)|\1|'
.elif defined(WNN_TARGET) && (${WNN_TARGET} == "DICT")
MAKE_ENV+= "WNN_TARGET=DICT"
-INSTALL_FILE= ${WRKDIR}/INSTALL
INSTALL_SRC= ${FILESDIR}/INSTALL
+FILES_SUBST+= WNNOWNER=${WNNOWNER}
.else
MAKE_ENV+= "WNN_TARGET=LIBRARY"
.endif
@@ -88,13 +88,6 @@ pre-build:
@${MV} ${WRKSRC}/Wnn/Makefile ${WRKSRC}/Wnn/Makefile.orig2
@${SED} -e 's|\(MKDIRHIER.*=\).*|\1 ${TRUE}|' \
${WRKSRC}/Wnn/Makefile.orig2 > ${WRKSRC}/Wnn/Makefile
-
-post-build:
- @${SED} -e 's|$${WNNOWNER}|${WNNOWNER}|g' \
- ${INSTALL_SRC} > ${INSTALL_FILE}
-
-pre-install:
- @${SETENV} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
.endif
.include "../../mk/bsd.pkg.mk"
diff --git a/inputmethod/ja-freewnn-lib/files/INSTALL b/inputmethod/ja-freewnn-lib/files/INSTALL
index 5b0b37e7686..3515ca59305 100644
--- a/inputmethod/ja-freewnn-lib/files/INSTALL
+++ b/inputmethod/ja-freewnn-lib/files/INSTALL
@@ -1,5 +1,7 @@
#!/bin/sh
+WNNOWNER="@WNNOWNER@"
+
case $2 in
PRE-INSTALL)
uid=`id -u ${WNNOWNER} 2> /dev/null`