Trouble installing powerDNS
Daniel J. Luke
dluke at geeklair.net
Sun May 23 08:17:45 PDT 2010
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
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
| Opinions expressed are mine and do not necessarily |
| reflect the opinions of my employer. |
+========================================================+
More information about the macports-dev
mailing list