pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

devel/gdb6/Makefile locale patch (Re: Correct location of .mo files? locales?)



Thanks for your help!  This patch installs them in the correct location.

--- devel/gdb6/Makefile.orig  2006-10-17 19:57:24.000000000 -0400
+++ devel/gdb6/Makefile 2006-10-17 19:51:47.000000000 -0400
@@ -16,6 +16,7 @@
USE_TOOLS+=            gmake makeinfo msgfmt
USE_LIBTOOL=           yes
USE_PKGLOCALEDIR=      yes
+REPLACE_LOCALEDIR_PATTERNS=    Make-in
GNU_CONFIGURE=         yes
CONFIGURE_ARGS+=       --libdir=${PREFIX}/lib/gdb6
CONFIGURE_ARGS+=       --includedir=${PREFIX}/include/gdb6


On 10/17/06, Jeremy C. Reed <reed%reedmedia.net@localhost> wrote:
> even stranger, gdb6's PLIST indicated the files will be installed in
> share/locale,  yet it fails during the install phase because it thinks
> they go in lib/locale...
>
> devel/gdb6# cat PLIST | grep locale
> ...
> share/locale/da/LC_MESSAGES/bfd.mo
> share/locale/da/LC_MESSAGES/opcodes.mo
> share/locale/de/LC_MESSAGES/opcodes.mo
> share/locale/es/LC_MESSAGES/bfd.mo
> ...
> devel/gdb6# bmake install
> ...
> ===========================================================================
> pkg_create: can't stat `/usr/local/lib/locale/da/LC_MESSAGES/bfd.mo'
...

Try setting USE_PKGLOCALEDIR=YES in your Makefile.

Not sure where documented. See PKGLOCALEDIR in pkgsrc/mk/platform/SunOS.mk
for default location. And see mk/configure/replace-localedir.mk and other
code in mk/ directory for behind the scenes.




Home | Main Index | Thread Index | Old Index