Date: Tue, 29 Jul 2008 00:47:22 +0400 From: Dmitry Marakasov <amdmi3@amdmi3.ru> To: Steve Franks <stevefranks@ieee.org> Cc: ports@freebsd.org Subject: Re: newbie porter question: configure expects installed lib (wx-gtk) to have a different name Message-ID: <20080728204722.GG6135@hades.panopticon> In-Reply-To: <539c60b90807281206y3cf2189epbb46416d830d39e8@mail.gmail.com> References: <539c60b90807281206y3cf2189epbb46416d830d39e8@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
* Steve Franks (stevefranks@ieee.org) wrote: > I've figured out how to get the dependenices for wx so it's installed, > but now I get an error when configure is called, because it's looking > for the script wx-config, which is getting installed by the dependancy > as wxgtk2-2.8-config. Should I be making a symlink for this? If so, > how do I get make to create that symlink? When you use wx (with e.g. USE_WX= 2.8+), WX_CONFIG would contain correct name of wx-config. In some cases, configure takes --with-wx-config argument, in which case CONFIGURE_ARGS+= --with-wx-config=${WX_CONFIG} will solve your problem. Otherwise, you should patch configure (possibly some Makefile.in files as well) to replace wx-config with appropriate value: post-patch: @${REINPLACE_CMD} -e 's|wx-config|${WX_CONFIG}|g' \ ${WRKSRC}/configure See /usr/ports/editors/madedit/Makefile and /usr/ports/games/blokish/Makefile as examples for corresponding cases. -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amdmi3@amdmi3.ru ..: jabber: amdmi3@jabber.ru http://www.amdmi3.ru
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080728204722.GG6135>