RFC: Standardize and improve the PKGNAMESUFFIX handling in all ports

Coleman Kane cokane at FreeBSD.org
Fri May 12 18:44:40 UTC 2006

Hello all,

During some discussion, the existence of two problems in ports
arose today surrounding handling of PKGNAMESUFFIX in the ports collection.

First of all, the ability for it to handle multiple suffixes is broken
in many ports, and not intuitive to accomplish, and the declaration of
such option is not standard.
Currently, if you have a port that has a toggle to reflect in the package
name, you use "packagename+toggle-versioninfo". In many ports, this is 
accomplished via:

If you want to add more than one toggle, you'd do:

To get 'packagename+toggle1+toggle2-versioninfo'.

Unfortunately, this is not done in many ports (such as ruby18), and the
nomenclature swaps plus and hyphen for the 'toggle separator'.

I propose that we do this:
      Add to line 1199 of ports/Mk/bsd.port.mk

Change line 1207:

Change line 2620:

And then, rather than literally specifying the PKGNAMESUFFIX, you would do this:

Which is far more intuitive and more readable.

And the addition at line 1199, specified above, would automagically add the
+ delimiters, order the toggles alphabetically, and weed out the duplicates.

This could be one more step toward a more manageable package infrastructure.

As I said, this is an RFC so give me comments!

Coleman Kane

More information about the freebsd-ports mailing list