Executing scripts during configure

Daniel J. Luke dluke at geeklair.net
Tue Feb 5 17:44:16 PST 2008


On Feb 5, 2008, at 8:34 PM, Michael Franz wrote:
> Is it possible to put something like this in the configure parameters?

You don't need to do it this way.

> --with-libgcj-jar=`find ${prefix}/share/java -name "libgcj-4\. 
> 2*.jar"` \
>
> This does not work as I get the following error: Error: Unable to  
> open port: extra characters after close-quote

Add a pre-configure phase which finds those files and generates the  
string/path that you want to pass to configure, put it in a portfile- 
local variable and then add it to your configure args by using that  
variable.

--
Daniel J. Luke
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
|   Opinions expressed are mine and do not necessarily   |
|          reflect the opinions of my employer.          |
+========================================================+



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.macosforge.org/pipermail/macports-users/attachments/20080205/5340cc0a/PGP.bin


More information about the macports-users mailing list