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
 
SirDice said:
Look into *_DEPENDS
No. I know about it.
*_DEPENDS - for automatically install all dependent applications, but I need a manually install one application
 
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