summaryrefslogtreecommitdiff
path: root/inputmethod
diff options
context:
space:
mode:
authorroy <roy@pkgsrc.org>2011-12-07 16:07:14 +0000
committerroy <roy@pkgsrc.org>2011-12-07 16:07:14 +0000
commit6993c0d997d4ce712315ef836efc8ee19196b78d (patch)
tree609fcf665fb9a28ea6189094ad0abd90ac58d0dc /inputmethod
parent41cae8fb9191f9f243429b32153613013ae5b306 (diff)
downloadpkgsrc-6993c0d997d4ce712315ef836efc8ee19196b78d.tar.gz
Canuum stupidly thinks that curses calls are in termcap.
Teach it otherwise.
Diffstat (limited to 'inputmethod')
-rw-r--r--inputmethod/canna-canuum/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/inputmethod/canna-canuum/Makefile b/inputmethod/canna-canuum/Makefile
index 72113c9cac9..131fd4a3e5e 100644
--- a/inputmethod/canna-canuum/Makefile
+++ b/inputmethod/canna-canuum/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2010/05/28 11:06:34 obache Exp $
+# $NetBSD: Makefile,v 1.12 2011/12/07 16:07:14 roy Exp $
PKGREVISION= 3
CANNA_MODULE= canuum
@@ -18,6 +18,13 @@ INSTALL_MAKE_FLAGS+= INSTUGIDFLAGS=
SPECIAL_PERMS+= bin/canuum ${SETUID_ROOT_PERMS}
+.include "../../mk/curses.buildlink3.mk"
+SUBST_CLASSES+= fix_curs
+SUBST_STAGE.fix_curs= post-patch
+SUBST_MESSAGE.fix_curs= Fixing curses
+SUBST_FILES.fix_curs+= canuum/Imakefile
+SUBST_SED.fix_curs+= -e 's/TERMCAP_LIB = .*/TERMCAP_LIB = -l'${BUILDLINK_LIBNAME.curses}'/g'
+
.include "../../inputmethod/canna-lib/buildlink3.mk"
pre-configure:
@@ -26,5 +33,4 @@ pre-configure:
${LN} -fs ${WRKSRC}/cannaconf.h ${WRKSRC}/canuum
${LN} -fs ${WRKSRC}/canna/ccompat.h ${WRKSRC}/canuum
-.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"