Subject: Run dependency on gettext?
To: None <>
From: Julio M. Merino Vidal <>
List: tech-pkg
Date: 09/29/2004 20:42:48
Hi all,

I need to add a runtime dependency on gettext (not only gettext-lib) on the
systems that need it.  I've tried the following (based on something similar
in x11/xpm):

CHECK_BUILTIN.gettext=  yes
.include "../../devel/gettext-lib/"
.if !empty(IS_BUILTIN.gettext:M[Nn][Oo])
DEPENDS+=               gettext>=0.11.5:../../devel/gettext

But when I try anything on the package, I get:

dawn:~/NetBSD/pkgsrc/textproc/intltool$ make clean
/usr/lib/libintl.a: permission denied
make: Cannot allocate memory.

Any idea about what's wrong?

Another way to do this could be to do something similar to the BUILD_USES_MSFMT
handling in  But that is ugly, IMHO.

How am I supposed to add the dependency?


Julio M. Merino Vidal <>
The NetBSD Project -