On May 22, 2010, at 7:34 PM, Ryan Schmidt wrote:
>>   if boost is installed
>>       -I/opt/local/include
>>   else
>>       download boost
>>       -Ifiles/whatever-boost-downloads-as/
>>   end if
>> 
>> Is that possible to do?  If it is possible, I will start looking at the docs 
>> for how, unless someone knows a port that does something similar that I can 
>> learn from.  Thanks.
> 
> Sounds possible. I doubt there's documentation on how to do this very 
> specific thing.
> 
> I guess the code would run something like:
> 
> if ${prefix}/include/boost exists, do nothing
> 
> otherwise distfiles-append the boost distfile and configure.cppflags-append 
> -I${worksrcpath}/boost-1.42.0
> 
> And you'd have to add the boost checksums and master_sites.

If there's no runtime dependency on the include files, it might make sense to 
just always download the boost distfile and use a portfile-local version of the 
includes while building.

That way, the build product will always be the same, and the portfile will be 
simpler.

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



_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to