Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Nov 2009 14:36:47 +0300
From:      Eygene Ryabinkin <rea-fbsd@codelabs.ru>
To:        Rainer Hurling <rhurlin@gwdg.de>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Question about creating a port for saga gis
Message-ID:  <tydISk%2B1dhteIXg6O9HwdKGVxFc@7ANLw7WpNQUEViOFvqmcIRbmcl4>
In-Reply-To: <4AFE7B66.8000109@gwdg.de>
References:  <4AFD2B5F.3070304@gwdg.de> <4AFE7B66.8000109@gwdg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Sat, Nov 14, 2009 at 10:41:58AM +0100, Rainer Hurling wrote:
> The original configure script of SAGA GIS expects 'wx-config', but in
> newer FreeBSD systems there only is e.g. wxgtk2-2.8-config.
> 
> The porters handbook shows how to configure the ports Makefile to let
> the port know what wxWidget version to use. I patched the original
> configure script but obviously that's not enough. The attached files
> are saved under math/saga and show what I have tried.

Seems like spawning REINPLACE_CMD over the whole horde of Makefile.in
files will do the trick:
-----
post-patch:
	@for f in `${FIND} '${WRKSRC}' -name Makefile.in` \
	  ${WRKSRC}/configure; do \
		${REINPLACE_CMD} -e's|wx-config |${WX_CONFIG} |g' "$$f"; \
	done
-----

> It would be nice if someone with more experience could give me a hint
> how to do it right.

I am not sure for 100% that the above is the Only Right Way (tm), but
the Porter's Handbook suggests that in such cases (when "wx-config" is
hardcoded), the best thing is to patch the sources and that's what I did.

BTW, there is absolutely no need to specify WX_CONFIG in your Makefile,
bsd.wx.mk will take care of it.  WX_CONF_ARGS seems redundant too:
SAGA's configure understands no --with-wx-config option, so it is just
a no-op.
-- 
Eygene
 _                ___       _.--.   #
 \`.|\..----...-'`   `-._.-'_.-'`   #  Remember that it is hard
 /  ' `         ,       __.--'      #  to read the on-line manual
 )/' _/     \   `-_,   /            #  while single-stepping the kernel.
 `-'" `"\_  ,_.-;_.-\_ ',  fsc/as   #
     _.-'_./   {_.'   ; /           #    -- FreeBSD Developers handbook
    {_.-``-'         {_/            #



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?tydISk%2B1dhteIXg6O9HwdKGVxFc>