From 5ed63bda0a461c96b59baefaedb1231266e7053e Mon Sep 17 00:00:00 2001 From: obache Date: Wed, 20 Mar 2013 05:59:01 +0000 Subject: fixes hard-coded localedir: * fixes installation with PKGLOCALEDIR != share * fixes runtime search path of locale data. Bump PKGREVISION. --- inputmethod/scim-ccinput/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'inputmethod') 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" -- cgit v1.2.3