Use ${PKGLOCALEDIR} for location of installed locale files.

This commit is contained in:
jlam 2001-03-04 09:12:06 +00:00
parent 5382bbe7c6
commit 0c75592e26
5 changed files with 46 additions and 34 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2001/03/01 14:35:07 wiz Exp $
# $NetBSD: Makefile,v 1.14 2001/03/04 09:12:06 jlam Exp $
#
DISTNAME= gqview-0.10.1
@ -17,10 +17,13 @@ USE_LIBINTL= yes
USE_X11BASE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= ac_cv_path_GNOME_CONFIG=no
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}"
CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
CONFIGURE_ENV+= PKGLOCALEDIR="${PKGLOCALEDIR}"
# for libpng recognition
CFLAGS+= "-I${LOCALBASE}/include"
CPPFLAGS+= "-I${LOCALBASE}/include"
EVAL_PREFIX+= PNGDIR=png
CFLAGS+= -I${PNGDIR}/include
CPPFLAGS+= -I${PNGDIR}/include
.include "../../mk/bsd.pkg.mk"

View file

@ -1,3 +1,3 @@
$NetBSD: patch-sum,v 1.6 2001/02/16 13:19:22 wiz Exp $
$NetBSD: patch-sum,v 1.7 2001/03/04 09:12:07 jlam Exp $
MD5 (patch-ac) = a161888ca59546a7ec368da022090850
MD5 (patch-aa) = 74c65eca3ecef6cf3d2466bd47fdf184

View file

@ -0,0 +1,22 @@
$NetBSD: patch-aa,v 1.7 2001/03/04 09:12:07 jlam Exp $
--- configure.orig Mon Feb 26 15:35:33 2001
+++ configure
@@ -2168,7 +2168,6 @@
FALSE_FALSE=
fi
-localedir='${prefix}/share/locale'
ALL_LINGUAS="de es fr hu it ja pl pt_BR ru sk sl tr zh_CN.GB2312 zh_TW.Big5"
@@ -3999,6 +3998,9 @@
< $srcdir/po/POTFILES.in > po/POTFILES
+# Use ${PKGLOCALEDIR} for the location of installed locale files.
+DATADIRNAME="${PKGLOCALEDIR}"
+localedir='${prefix}/share/locale'

View file

@ -1,13 +0,0 @@
$NetBSD: patch-ac,v 1.1 2000/11/29 20:01:04 wiz Exp $
--- po/Makefile.in.in.orig Sun Sep 10 15:46:38 2000
+++ po/Makefile.in.in
@@ -19,7 +19,7 @@
prefix = @prefix@
exec_prefix = @exec_prefix@
datadir = $(prefix)/@DATADIRNAME@
-localedir = $(datadir)/locale
+localedir = @localedir@
gnulocaledir = $(prefix)/share/locale
gettextsrcdir = $(prefix)/share/gettext/po
subdir = po

View file

@ -1,17 +1,17 @@
@comment $NetBSD: PLIST,v 1.6 2001/03/01 14:35:07 wiz Exp $
@comment $NetBSD: PLIST,v 1.7 2001/03/04 09:12:08 jlam Exp $
bin/gqview
man/man1/gqview.1
share/locale/de/LC_MESSAGES/gqview.mo
share/locale/es/LC_MESSAGES/gqview.mo
share/locale/fr/LC_MESSAGES/gqview.mo
share/locale/hu/LC_MESSAGES/gqview.mo
share/locale/it/LC_MESSAGES/gqview.mo
share/locale/ja/LC_MESSAGES/gqview.mo
share/locale/pt_BR/LC_MESSAGES/gqview.mo
share/locale/pl/LC_MESSAGES/gqview.mo
share/locale/ru/LC_MESSAGES/gqview.mo
share/locale/sk/LC_MESSAGES/gqview.mo
share/locale/sl/LC_MESSAGES/gqview.mo
share/locale/tr/LC_MESSAGES/gqview.mo
share/locale/zh_CN.GB2312/LC_MESSAGES/gqview.mo
share/locale/zh_TW.Big5/LC_MESSAGES/gqview.mo
${PKGLOCALEDIR}/locale/de/LC_MESSAGES/gqview.mo
${PKGLOCALEDIR}/locale/es/LC_MESSAGES/gqview.mo
${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/gqview.mo
${PKGLOCALEDIR}/locale/hu/LC_MESSAGES/gqview.mo
${PKGLOCALEDIR}/locale/it/LC_MESSAGES/gqview.mo
${PKGLOCALEDIR}/locale/ja/LC_MESSAGES/gqview.mo
${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/gqview.mo
${PKGLOCALEDIR}/locale/pl/LC_MESSAGES/gqview.mo
${PKGLOCALEDIR}/locale/ru/LC_MESSAGES/gqview.mo
${PKGLOCALEDIR}/locale/sk/LC_MESSAGES/gqview.mo
${PKGLOCALEDIR}/locale/sl/LC_MESSAGES/gqview.mo
${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/gqview.mo
${PKGLOCALEDIR}/locale/zh_CN.GB2312/LC_MESSAGES/gqview.mo
${PKGLOCALEDIR}/locale/zh_TW.Big5/LC_MESSAGES/gqview.mo