Passing make flags to a dependency

Michael C. Shultz reso3w83 at verizon.net
Sun Feb 6 11:05:12 PST 2005


On Sunday 06 February 2005 10:13 am, Max Baker wrote:
> Hi, I'm a noob to making a port, and am creating a port for my
> project netdisco, which has a truck-load of dependencies.
>
>
> One of those dependencies is apache2 with SSL turned on.  I need to
> know how to pass the "WITH_SSL_MODULES=yes" flag to the apache2 port?
>
> Thanks folks!
> -m
>
> Here's my makefile so far (still has a ways to go):
>
This is going to be a can of worms for you to automate, here are a few 
reasons why:

What if apache2 is all ready installed without SSL turned on?
What if the user wants other features besides SSL?

Suggestion:  Test for a library that will only exist if apache2 has
been installed with WITH_SSL_MODULES=yes and if that library is missing
then have your port refuse to build with a message that apache2 must be 
built with WITH_SSL_MODULES=yes.

If you are using autotools (automake/autoconf) you can place this sort 
of a test in configure.ac.

-Mike


More information about the freebsd-ports mailing list