summaryrefslogtreecommitdiff
path: root/inputmethod/scim-ccinput
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-03-20 05:59:01 +0000
committerobache <obache@pkgsrc.org>2013-03-20 05:59:01 +0000
commit5ed63bda0a461c96b59baefaedb1231266e7053e (patch)
treec919af426fc66fcefa64ddb5fe431dd70afcadca /inputmethod/scim-ccinput
parent87112dc5fb2dfd5186db149f2580b416604e5663 (diff)
downloadpkgsrc-5ed63bda0a461c96b59baefaedb1231266e7053e.tar.gz
fixes hard-coded localedir:
* fixes installation with PKGLOCALEDIR != share * fixes runtime search path of locale data. Bump PKGREVISION.
Diffstat (limited to 'inputmethod/scim-ccinput')
-rw-r--r--inputmethod/scim-ccinput/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/inputmethod/scim-ccinput/Makefile b/inputmethod/scim-ccinput/Makefile
index d47ad8152bb..bfb839253e7 100644
--- a/inputmethod/scim-ccinput/Makefile
+++ b/inputmethod/scim-ccinput/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.18 2013/02/16 11:22:46 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2013/03/20 05:59:01 obache Exp $
#
DISTNAME= scim-ccinput-0.3.1
-PKGREVISION= 14
+PKGREVISION= 15
CATEGORIES= inputmethod chinese
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scim/}
EXTRACT_SUFX= .tar.bz2
@@ -21,6 +21,14 @@ CONFIG_SHELL= ${BASH}
USE_SCIM_GTKUTILS= yes
+SUBST_CLASSES+= localedir
+SUBST_STAGE.localedir= pre-configure
+SUBST_SED.localedir+= -e 's,\$$(datadir)/locale,@prefix@/${PKGLOCALEDIR}/locale,'
+SUBST_SED.localedir+= -e 's,/usr/share/locale,${PREFIX}/${PKGLOCALEDIR}/locale,'
+SUBST_FILES.localedir= po/Makefile.am po/Makefile.in
+SUBST_FILES.localedir+= scim/IMEngine/scim_ccin_imengine.cpp
+SUBST_FILES.localedir+= scim/SetupUI/scim_ccin_imengine_setup.cpp
+
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../inputmethod/scim/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"