Need help to port creation

The following is required:

It is necessary to check up before port installation, whether a certain application is installed.
If the application is not installed, it is necessary to interrupt port installation and type the message "You should install a <CERTAIN APPLICATION> first"

As it to make in port Makefile?

Thanks. Sorry for my English
 
Why does it need to be installed manually? That defeats the purpose of a port.
 
My port is required a PostgreSQL server. I wish to give to the user independently to choose the PostgreSQL server version.
 
If you do
# find /usr/ports -type f -name 'Makefile' -exec grep -H PGSQL {} \;

You'll get a list of other ports that use PostgreSQL, have a look how they do it.
 
Back
Top