Figured out how to add the Perforce item below:
How to do it:
Below is the starting point, in the layer.xml, included in the Git repo above:
<attr name="instanceClass" stringvalue="org.netbeans.perforce.PerforceAdvancedOption"/>
The rest follows from there, see the Git repo above that contains the entry point for configuring Perforce in NetBeans IDE.