From owner-freebsd-ports@FreeBSD.ORG Thu Jul 12 18:09:35 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7A23D16A400 for ; Thu, 12 Jul 2007 18:09:35 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.60.158]) by mx1.freebsd.org (Postfix) with ESMTP id 1CF6B13C46C for ; Thu, 12 Jul 2007 18:09:34 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: by syn.atarininja.org (Postfix, from userid 1001) id 62ADD5C5A; Thu, 12 Jul 2007 14:16:31 -0400 (EDT) Date: Thu, 12 Jul 2007 14:16:31 -0400 From: Wesley Shields To: Marcin Simonides Message-ID: <20070712181631.GH87426@atarininja.org> References: <4696562F.4050505@studio4plus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4696562F.4050505@studio4plus.com> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Pedro Castro , freebsd-ports@freebsd.org Subject: Re: GMSGFMT variable not defined X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2007 18:09:35 -0000 On Thu, Jul 12, 2007 at 06:26:23PM +0200, Marcin Simonides wrote: > I'm the maintainer of multimedia/gnome-subtitles port. The new version adds > language translations. > > I have added USE_GETTEXT=yes to the port's Makefile. > > There is a problem with building language translation files, variable > GMSGFMT is not being defined and so the rule below doesn't work: > > .po.gmo: > file=`echo $* | sed 's,.*/,,'`.gmo \ > && rm -f $$file && $(GMSGFMT) -o $$file $< > > I've checked with the program's aclocal.m4, it contains a line: > > AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) > > which looks right to me - GMSGFMT should be set to $MSGFMT if the program > is not found. msgfmt is being recognised by configure *but* both MSFGMT and > GMSGFMT are set to "nothing" in the program's po/Makefile. > > There is a check for msgfmt (successful) in the configure's output, but > none for gmsgfmt (the configure.am. > > My question is: are there any knobs, settings, dependencies etc. I should > use (the Porter's Handbook doesn't seem to mention anything like that) or > is this probably the program's configure issue? > > config.log available for request (unfortunately I have no idea how to > analyze it, I just saw that INTLTOOL_MSGFMT is being set to correct path > and G?MSGFMT to ''). > > This mail is also being sent to the author of the program. > Sorry that it's so chaotic, but I have no idea where to start looking for > the root of the problem and what information to provide. I ran into a similar problem when porting empathy (will be done soon, $JOB has been busy lately). I ended up finding science/gramps/files/patch-gmsgfmt and using a similar one. Maybe it will work for you too? -- WXS