newbie porter question: configure expects installed lib (wx-gtk) to have a different name

Dmitry Marakasov amdmi3 at amdmi3.ru
Mon Jul 28 21:19:09 UTC 2008


* Steve Franks (stevefranks at 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 at amdmi3.ru  ..:  jabber: amdmi3 at jabber.ru    http://www.amdmi3.ru


More information about the freebsd-ports mailing list