From owner-freebsd-ports@FreeBSD.ORG Sat Nov 14 11:36:56 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B80A6106566B for ; Sat, 14 Nov 2009 11:36:56 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 527538FC08 for ; Sat, 14 Nov 2009 11:36:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codelabs.ru; s=two; h=Date:From:To:Cc:Subject:Message-ID: Reply-To:References:MIME-Version:Content-Type:In-Reply-To: Sender; bh=JJIP/5Oikja9s9+RRfMNu3Ih4rtNx2OyFnFx8uZ3dLI=; b=aM8GN QdjQywCy7P28mG+e21PI7QFGKAxS76kgj2F1cBIwLxz3g6RchwaGhZrkBRDxumLT n1zg7XHFwzsfYSpKAv7rOJ3/0jmJGMq85XWzmFYFjk3JCQokP+May0O2XHu9QlK0 +UN54omQU37nFOS4A9fV22/iE9rexorGXlMCyR8PGZnm69tGtI0hAYRcqh+92gCy ShCwIqyCKSg43yOOPgozqAIwvg0FBjrtrMKcNwZeZz+pPk/NsQhkhhhzx92D/1w7 7MaaMRtJtt+lheFCSnw+tCM3SRSPrkK+/BWA94Bo7aFhHZbAzPbIjbYx5uvaMDJo QBynwZNyhyPyouCSA== Received: from shadow.codelabs.ru (cdma-92-36-69-228.msk.skylink.ru [92.36.69.228]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1N9Gvx-0007Hr-Hw; Sat, 14 Nov 2009 14:36:54 +0300 Date: Sat, 14 Nov 2009 14:36:47 +0300 From: Eygene Ryabinkin To: Rainer Hurling Message-ID: References: <4AFD2B5F.3070304@gwdg.de> <4AFE7B66.8000109@gwdg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AFE7B66.8000109@gwdg.de> Sender: rea-fbsd@codelabs.ru Cc: freebsd-ports@freebsd.org Subject: Re: Question about creating a port for saga gis X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rea-fbsd@codelabs.ru List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Nov 2009 11:36:56 -0000 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 {_.-``-' {_/ #