tcl or portfile keyword for alias

Ryan Schmidt ryandesign at macports.org
Mon Feb 9 15:53:46 PST 2009


On Feb 9, 2009, at 14:21, Bradley Giesbrecht wrote:

> Does anyone know a simple way to env alias a command like  
> mysql_config=/opt/local/bin/mysql_config5?
>
> I have a lib I'm porting "libzdb" that uses "mysql_config --libs  
> $LDFLAGS".
>
> I'm trying to find a way to make this build without patching.

You could prepend ${prefix}/lib/mysql5/bin to the PATH. That's where  
the program "mysql_config" lives.


configure.env-append    PATH=${prefix}/lib/mysql5/bin:$env(PATH)






More information about the macports-dev mailing list