* Steve Franks ([EMAIL PROTECTED]) 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
[EMAIL PROTECTED]  ..:  jabber: [EMAIL PROTECTED]    http://www.amdmi3.ru
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to