aboutsummaryrefslogtreecommitdiff
path: root/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
blob: b9ffba1e056f35151cf8965f01e8d449048b304a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
     The FreeBSD Documentation Project

     $FreeBSD$

-->

<!--

  Document up-to date with r441983 revision of the ports tree.

  This file documents the values of the USES make variable.  The
  format is easy to grasp from the already-added entries below (or use
  this scheme below as a skeleton):

  <sect1 xml:id="uses-FEATURE">
    <title><literal>FEATURE</literal></title>

    <para>Possible arguments: ARGUMENTS</para>

    <para>DESCRIPTION</para>
  </sect1>

-->
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink=
  "http://www.w3.org/1999/xlink" version="5.0" xml:id="uses">

  <title>Using <varname>USES</varname> Macros</title>

  <sect1 xml:id="uses-intro">
    <title>An Introduction to <varname>USES</varname></title>

    <para><varname>USES</varname> macros make it easy to declare
      requirements and settings for a port.  They can add
      dependencies, change building behavior, add metadata to
      packages, and so on, all by selecting simple, preset
      values..</para>

    <para>Each section in this chapter describes a possible value for
      <varname>USES</varname>, along with its possible arguments.
      Arguments are appeneded to the value after a colon
      (<literal>:</literal>).  Multiple arguments are separated by
      commas (<literal>,</literal>).</para>

    <example xml:id="uses-intro-ex1">
      <title>Using Multiple Values</title>

      <programlisting>USES=	bison perl</programlisting>
    </example>

    <example xml:id="uses-intro-ex2">
      <title>Adding an Argument</title>

      <programlisting>USES=	gmake:lite</programlisting>
    </example>

    <example xml:id="uses-intro-ex3">
      <title>Adding Multiple Arguments</title>

      <programlisting>USES=	drupal:7,theme</programlisting>
    </example>

    <example xml:id="uses-intro-ex4">
      <title>Mixing it All Together</title>

      <programlisting>USES=	pgsql:9.3+ cpe python:2.7,build</programlisting>
    </example>
  </sect1>

  <sect1 xml:id="uses-7z">
    <title><literal>7z</literal></title>

    <para>Possible arguments: (none), <literal>p7zip</literal>,
      <literal>partial</literal></para>

    <para>Extract using &man.7z.1; instead of &man.bsdtar.1; and sets
      <literal>EXTRACT_SUFX=.7z</literal>.  The
      <literal>p7zip</literal> option forces a dependency on the
      <command>7z</command> from <package
	role="port">archivers/p7zip</package> if the one from the base
      system is not able to extract the files.
      <varname>EXTRACT_SUFX</varname> is not changed if the
      <literal>partial</literal> option is used, this can be used if
      the main distribution file does not have a
      <filename>.7z</filename> extension.</para>
  </sect1>

  <sect1 xml:id="uses-ada">
    <title><literal>ada</literal></title>

    <para>Possible arguments: (none),
      <literal>5</literal>,
      <literal>6</literal></para>

    <para>Depends on an <application>Ada</application>-capable
      compiler, and sets <varname>CC</varname> accordingly.  Defaults
      to use <application>gcc</application> 5 from ports.  Use the
      <literal>:<replaceable>X</replaceable></literal> version option
      to force building with a different version.</para>
  </sect1>

  <sect1 xml:id="uses-autoreconf">
    <title><literal>autoreconf</literal></title>

    <para>Possible arguments: (none), <literal>build</literal></para>

    <para>Runs <command>autoreconf</command>.  It encapsulates the
      <command>aclocal</command>, <command>autoconf</command>,
      <command>autoheader</command>, <command>automake</command>,
      <command>autopoint</command>, and <command>libtoolize</command>
      commands.  Each command applies to
      <filename>${AUTORECONF_WRKSRC}/configure.ac</filename> or its
      old name,
      <filename>${AUTORECONF_WRKSRC}/configure.in</filename>.  If
      <filename>configure.ac</filename> defines subdirectories with
      their own <filename>configure.ac</filename> using
      <literal>AC_CONFIG_SUBDIRS</literal>,
      <command>autoreconf</command> will recursively update those as
      well.  The <literal>:build</literal> argument only adds build
      time dependencies on those tools but does not run
      <command>autoreconf</command>.  A port can set
      <varname>AUTORECONF_WRKSRC</varname> if
      <varname>WRKSRC</varname> does not contain the path to
      <filename>configure.ac</filename>.</para>
  </sect1>

  <sect1 xml:id="uses-blaslapack">
    <title><literal>blaslapack</literal></title>

    <para>Possible arguments: (none), <literal>atlas</literal>,
      <literal>netlib</literal> (default),
      <literal>gotoblas</literal>, <literal>openblas</literal></para>

    <para>Adds dependencies on Blas / Lapack libraries.</para>
  </sect1>

  <sect1 xml:id="uses-bdb">
    <title><literal>bdb</literal></title>

    <para>Possible arguments: (none), <literal>48</literal>,
      <literal>5</literal> (default), <literal>6</literal></para>

    <para>Add dependency on the <application>Berkeley DB</application>
      library.  Default to <package
	role="port">databases/db5</package>.  It can also depend on
      <package role="port">databases/db48</package> when using the
      <literal>:48</literal> argument or <package
	role="port">databases/db6</package> with
      <literal>:6</literal>.  It is possible to declare a range of
      acceptable values, <literal>:48+</literal> finds the highest
      installed version, and falls back to 4.8 if nothing else is
      installed.  <varname>INVALID_BDB_VER</varname> can be used to
      specify versions which do not work with this port.  The
      framework exposes the following variables to the port:</para>

    <variablelist>
      <varlistentry>
	<term><varname>BDB_LIB_NAME</varname></term>

	<listitem>
	  <para>The name of the <application>Berkeley DB</application>
	    library.  For example, when using <package
	      role="port">databases/db5</package>, it contains
	    <literal>db-5.3</literal>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>BDB_LIB_CXX_NAME</varname></term>

	<listitem>
	  <para>The name of the <application>Berkeley DB</application>
	    <application>C++</application> library.  For example, when
	    using <package role="port">databases/db5</package>, it
	    contains <literal>db_cxx-5.3</literal>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>BDB_INCLUDE_DIR</varname></term>

	<listitem>
	  <para>The location of the <application>Berkeley
	      DB</application> include directory.  For example, when
	    using <package role="port">databases/db5</package>, it
	    will contain
	    <literal>${LOCALBASE}/include/db5</literal>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>BDB_LIB_DIR</varname></term>

	<listitem>
	  <para>The location of the <application>Berkeley
	      DB</application> library directory.  For example, when
	    using <package role="port">databases/db5</package>, it
	    contains <literal>${LOCALBASE}/lib</literal>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>BDB_VER</varname></term>

	<listitem>
	  <para>The detected <application>Berkeley DB</application>
	    version.  For example, if using
	    <literal>USES=bdb:48+</literal> and <application>Berkeley
	      DB</application> 5 is installed, it contains
	    <literal>5</literal>.</para>
	</listitem>
      </varlistentry>
    </variablelist>


    <important>
      <para><package role="port">databases/db48</package> is
	deprecated and unsupported.  It must not be used by any
	port.</para>
    </important>
  </sect1>

  <sect1 xml:id="uses-bison">
    <title><literal>bison</literal></title>

    <para>Possible arguments: (none), <literal>build</literal>,
      <literal>run</literal>, <literal>both</literal></para>

    <para>Uses <package role="port">devel/bison</package> By default,
      with no arguments or with the <literal>build</literal> argument,
      it implies <command>bison</command> is a build-time dependency,
      <literal>run</literal> implies a run-time dependency, and
      <literal>both</literal> implies both run-time and build-time
      dependencies.</para>
  </sect1>

  <sect1 xml:id="uses-cargo">
    <title><literal>cargo</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Uses Cargo for configuring, building, and testing.
      It can be used to port Rust applications that use the Cargo
      build system. For more information see <xref
        linkend="using-cargo" />.</para>
  </sect1>

  <sect1 xml:id="uses-charsetfix">
    <title><literal>charsetfix</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Prevents the port from installing
      <filename>charset.alias</filename>.  This must be installed only
      by <package role="port">converters/libiconv</package>.
      <varname>CHARSETFIX_MAKEFILEIN</varname> can be set to a path
      relative to <varname>WRKSRC</varname> if
      <filename>charset.alias</filename> is not installed by
      <filename>${WRKSRC}/Makefile.in</filename>.</para>
  </sect1>

  <sect1 xml:id="uses-cmake">
    <title><literal>cmake</literal></title>

    <para>Possible arguments: (none), <literal>outsource</literal>,
      <literal>run</literal></para>

    <para>Uses <application>CMake</application> for configuring and
      building.  With the <literal>outsource</literal> argument, an
      out-of-source build will be performed.  With the
      <literal>run</literal> argument, a run-time dependency is
      registered.  For more information see <xref
	linkend="using-cmake"/>.</para>
  </sect1>

  <sect1 xml:id="uses-compiler">
    <title><literal>compiler</literal></title>

    <para>Possible arguments: (none), <literal>env</literal>
      (default, implicit), <literal>c++14-lang</literal>,
      <literal>c++11-lang</literal>, <literal>gcc-c++11-lib</literal>,
      <literal>c++11-lib</literal>, <literal>c++0x</literal>,
      <literal>c11</literal>, <literal>openmp</literal>,
      <literal>nestedfct</literal>, <literal>features</literal></para>

    <para>Determines which compiler to use based on any given wishes.
      Use <literal>c++14-lang</literal> if the port needs a
      C++14-capable compiler, <literal>c++11-lang</literal>
      if the port needs a C++11-capable compiler,
      <literal>gcc-c++11-lib</literal> if the
      port needs the <command>g++</command> compiler with a C++11
      library, or <literal>c++11-lib</literal> if the port needs
      a C++11-ready standard library.  If the port needs a compiler
      understanding C++0X, C11, OpenMP, or nested functions,
      the corresponding parameters should be used.</para>

    <para>Use
      <literal>features</literal> to request a list of features
      supported by the default compiler.  After including
      <filename>bsd.port.pre.mk</filename> the port can inspect the
      results using these variables:</para>

    <itemizedlist>
      <listitem>
	<para><varname>COMPILER_TYPE</varname>: the default compiler
	  on the system, either gcc or clang</para>
      </listitem>

      <listitem>
	<para><varname>ALT_COMPILER_TYPE</varname>: the alternative
	  compiler on the system, either gcc or clang.  Only set if
	  two compilers are present in the base system.</para>
      </listitem>

      <listitem>
	<para><varname>COMPILER_VERSION</varname>: the first two
	  digits of the version of the default compiler.</para>
      </listitem>

      <listitem>
	<para><varname>ALT_COMPILER_VERSION</varname>: the first two
	  digits of the version of the alternative compiler, if
	  present.</para>
      </listitem>

      <listitem>
	<para><varname>CHOSEN_COMPILER_TYPE</varname>: the chosen
	  compiler, either gcc or clang</para>
      </listitem>

      <listitem>
	<para><varname>COMPILER_FEATURES</varname>: the features
	  supported by the default compiler.  It currently lists the
	  C++ library.</para>
      </listitem>
    </itemizedlist>
  </sect1>

  <sect1 xml:id="uses-cpe">
    <title><literal>cpe</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Include Common Platform Enumeration
      (<acronym>CPE</acronym>) information in package manifest as a
      <acronym>CPE</acronym> 2.3 formatted string.  See the <link
	xlink:href="http://scap.nist.gov/specifications/cpe/"><acronym>CPE</acronym>
	specification</link> for details.  To add
      <acronym>CPE</acronym> information to a port, follow these
      steps:</para>

    <procedure>
      <step>
	<para>Search for the official CPE para for the software
	  product either by using the NVD's <link
	    xlink:href="http://web.nvd.nist.gov/view/cpe/search"><acronym>CPE</acronym>
	    search engine</link> or in the <link
	    xlink:href="http://static.nvd.nist.gov/feeds/xml/cpe/dictionary/official-cpe-dictionary_v2.3.xml">official
	    <acronym>CPE</acronym> dictionary</link> (warning, very
	  large <acronym>XML</acronym> file).  <emphasis>Do not ever
	    make up <acronym>CPE</acronym> data.</emphasis></para>
      </step>

      <step>
	<para>Add <literal>cpe</literal> to <varname>USES</varname>
	  and compare the result of <command>make -V CPE_STR</command>
	  to the <acronym>CPE</acronym> dictionary para.  Continue one
	  step at a time until <command>make -V CPE_STR</command> is
	  correct.</para>
      </step>

      <step>
	<para>If the product name (second field, defaults to
	  <varname>PORTNAME</varname>) is incorrect, define
	  <varname>CPE_PRODUCT</varname>.</para>
      </step>

      <step>
	<para>If the vendor name (first field, defaults to
	  <varname>CPE_PRODUCT</varname>) is incorrect, define
	  <varname>CPE_VENDOR</varname>.</para>
      </step>

      <step>
	<para>If the version field (third field, defaults to
	  <varname>PORTVERSION</varname>) is incorrect, define
	  <varname>CPE_VERSION</varname>.</para>
      </step>

      <step>
	<para>If the update field (fourth field, defaults to empty) is
	  incorrect, define <varname>CPE_UPDATE</varname>.</para>
      </step>

      <step>
	<para>If it is still not correct, check
	  <filename>Mk/Uses/cpe.mk</filename> for additional details,
	  or contact the &a.ports-secteam;.</para>
      </step>

      <step>
	<para>Derive as much as possible of the <acronym>CPE</acronym>
	  name from existing variables such as
	  <varname>PORTNAME</varname> and
	  <varname>PORTVERSION</varname>.  Use variable modifiers to
	  extract the relevant portions from these variables rather
	  than hardcoding the name.</para>
      </step>

      <step>
	<para><emphasis>Always</emphasis> run <command>make -V
	    CPE_STR</command> and check the output before committing
	  anything that changes <varname>PORTNAME</varname> or
	  <varname>PORTVERSION</varname> or any other variable which
	  is used to derive <varname>CPE_STR</varname>.</para>
      </step>
    </procedure>
  </sect1>

  <sect1 xml:id="uses-cran">
    <title><literal>cran</literal></title>

    <para>Possible arguments: (none),
      <literal>auto-plist</literal>,
      <literal>compiles</literal></para>

    <para>Uses the Comprehensive R Archive Network.  Specify
      <varname>auto-plist</varname> to automatically generate
      <filename>pkg-plist</filename>.  Specify
      <literal>compiles</literal> if the port has code that need to be
      compiled.</para>
  </sect1>

  <sect1 xml:id="uses-desktop-file-utils">
    <title><literal>desktop-file-utils</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Uses <application>update-desktop-database</application> from
      <package role="port">devel/desktop-file-utils</package>.  An
      extra post-install step will be run without interfering with any
      post-install steps already in the port
      <filename>Makefile</filename>.  A line with <link
	linkend="plist-keywords-desktop-file-utils"><literal>@desktop-file-utils</literal></link>
      will be added to the plist.</para>
  </sect1>

  <sect1 xml:id="uses-desthack">
    <title><literal>desthack</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Changes the behavior of GNU configure to properly support
      <varname>DESTDIR</varname> in case the original software does
      not.</para>
  </sect1>

  <sect1 xml:id="uses-display">
    <title><literal>display</literal></title>

    <para>Possible arguments: (none),
      <replaceable>ARGS</replaceable></para>

    <para>Set up a virtual display environment.  If the environment
      variable <varname>DISPLAY</varname> is not set, then
      <application>Xvfb</application> is added as a build dependency,
      and <varname>CONFIGURE_ENV</varname> is extended with the port
      number of the currently running instance of
      <application>Xvfb</application>.  The
      <replaceable>ARGS</replaceable>
      parameter defaults to <literal>install</literal> and controls
      the phase around which to start and stop the virtual
      display.</para>
  </sect1>

  <sect1 xml:id="uses-dos2unix">
    <title><literal>dos2unix</literal></title>

    <para>Possible arguments: (none)</para>

    <para>The port has files with line endings in
      <acronym>DOS</acronym> format which need to be converted.
      Several variables can be set to control which files will be
      converted.  The default is to convert <emphasis>all</emphasis>
      files, including binaries.  See <xref
	linkend="slow-patch-automatic-replacements"/> for
      examples.</para>

    <itemizedlist>
      <listitem>
	<para><varname>DOS2UNIX_REGEX</varname>: match file names
	  based on a regular expression.</para>
      </listitem>

      <listitem>
	<para><varname>DOS2UNIX_FILES</varname>: match literal file
	  names.</para>
      </listitem>

      <listitem>
	<para><varname>DOS2UNIX_GLOB</varname>: match file names based
	  on a glob pattern.</para>
      </listitem>

      <listitem>
	<para><varname>DOS2UNIX_WRKSRC</varname>: the directory from
	  which to start the conversions.  Defaults to
	  <literal>${WRKSRC}</literal>.</para>
      </listitem>
    </itemizedlist>
  </sect1>

  <sect1 xml:id="uses-drupal">
    <title><literal>drupal</literal></title>

    <para>Possible arguments:
      <literal>7</literal>, <literal>module</literal>,
      <literal>theme</literal></para>

    <para>Automate installation of a port that is a
      <application>Drupal</application> theme or module.  Use with the
      version of Drupal that the port is expecting.  For example,
      <literal>USES=drupal:7,module</literal> says that this port
      creates a Drupal 6 module.  A Drupal 7 theme can be specified
      with <literal>USES=drupal:7,theme</literal>.</para>
  </sect1>

  <sect1 xml:id="uses-fakeroot">
    <title><literal>fakeroot</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Changes some default behavior of build systems to allow
      installing as a user.  See <link
	xlink:href="http://fakeroot.alioth.debian.org/"/>for more
      information on <command>fakeroot</command>.</para>
  </sect1>

  <sect1 xml:id="uses-fam">
    <title><literal>fam</literal></title>

    <para>Possible arguments: (none), <literal>fam</literal>,
      <literal>gamin</literal></para>

    <para>Uses a File Alteration Monitor as a library dependency,
      either <package role="port">devel/fam</package> or <package
	role="port">devel/gamin</package>.  End users can set
      WITH_FAM_SYSTEM to specify their preference.</para>
  </sect1>

  <sect1 xml:id="uses-firebird">
    <title><literal>firebird</literal></title>

    <para>Possible arguments: (none), <literal>25</literal></para>

    <para>Add a dependency to the client library of the Firebird
      database.</para>
  </sect1>

  <sect1 xml:id="uses-fonts">
    <title><literal>fonts</literal></title>

    <para>Possible arguments: (none), <literal>fc</literal>,
      <literal>fcfontsdir</literal> (default),
      <literal>fontsdir</literal>, <literal>none</literal></para>

    <para>Adds a runtime dependency on tools needed to register fonts.
      Depending on the argument, add a <literal><link
	  linkend="plist-keywords-fc">@fc</link> ${FONTSDIR}</literal>
      line, <literal><link
	  linkend="plist-keywords-fcfontsdir">@fcfontsdir</link>
	${FONTSDIR}</literal> line, <literal><link
	  linkend="plist-keywords-fontsdir">@fontsdir</link>
	${FONTSDIR}</literal> line, or no line if the argument is
      <literal>none</literal>, to the plist.
      <varname>FONTSDIR</varname> defaults to
      <filename>${PREFIX}/share/fonts/${FONTNAME}</filename> and
      <varname>FONTNAME</varname> to <literal>${PORTNAME}</literal>.
      Add <literal>FONTSDIR</literal> to <varname>PLIST_SUB</varname>
      and <varname>SUB_LIST</varname></para>
  </sect1>

  <sect1 xml:id="uses-fortran">
    <title><literal>fortran</literal></title>

    <para>Possible arguments: <literal>gcc</literal> (default)</para>

    <para>Uses the GNU Fortran compiler.</para>
  </sect1>

  <sect1 xml:id="uses-fuse">
    <title><literal>fuse</literal></title>

    <para>Possible arguments: <literal>2</literal> (default),
      <literal>3</literal></para>

    <para>The port will depend on the FUSE library and handle the
      dependency on the kernel module depending on the version of
      &os;.</para>
  </sect1>

  <sect1 xml:id="uses-gecko">
    <title><literal>gecko</literal></title>

    <para>Possible arguments: <literal>libxul</literal> (default),
      <literal>firefox</literal>, <literal>seamonkey</literal>,
      <literal>thunderbird</literal>, <literal>build</literal>,
      <literal><replaceable>XY</replaceable></literal>,
      <literal><replaceable>XY</replaceable>+</literal></para>

    <para>Add a dependency on different
      <application>gecko</application> based applications.  If
      <literal>libxul</literal> is used, it is the only argument
      allowed.  When the argument is not <literal>libxul</literal>,
      the <literal>firefox</literal>, <literal>seamonkey</literal>, or
      <literal>thunderbird</literal> arguments can be used, along with
      optional <literal>build</literal> and
      <literal><replaceable>XY</replaceable></literal>/<literal><replaceable>XY</replaceable>+</literal>
      version arguments.</para>
  </sect1>

  <sect1 xml:id="uses-gem">
    <title><literal>gem</literal></title>

    <para>Possible arguments: (none),
      <literal>noautoplist</literal></para>

    <para>Handle building with <application>RubyGems</application>.
      If <literal>noautoplist</literal> is used, the packing list is
      not generated automatically.</para>
  </sect1>

  <sect1 xml:id="uses-gettext">
    <title><literal>gettext</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Deprecated.  Will include both <link
	linkend="uses-gettext-runtime"><literal>gettext-runtime</literal></link>
      and <link
	linkend="uses-gettext-tools"><literal>gettext-tools</literal></link>.</para>
  </sect1>

  <sect1 xml:id="uses-gettext-runtime">
    <title><literal>gettext-runtime</literal></title>

    <para>Possible arguments: (none), <literal>lib</literal>
      (default), <literal>build</literal>,
      <literal>run</literal></para>

    <para>Uses <package role="port">devel/gettext-runtime</package>.
      By default, with no arguments or with the <literal>lib</literal>
      argument, implies a library dependency on
      <filename>libintl.so</filename>.  <literal>build</literal> and
      <literal>run</literal> implies, respectively a build-time and a
      run-time dependency on <filename>gettext</filename>.</para>
  </sect1>

  <sect1 xml:id="uses-gettext-tools">
    <title><literal>gettext-tools</literal></title>

    <para>Possible arguments: (none), <literal>build</literal>
      (default), <literal>run</literal></para>

    <para>Uses <package role="port">devel/gettext-tools</package>.  By
      default, with no argument, or with the <literal>build</literal>
      argument, a build time dependency on <filename>msgfmt</filename>
      is registered.  With the <literal>run</literal> argument, a
      run-time dependency is registered.</para>
  </sect1>

  <sect1 xml:id="uses-ghostscript">
    <title><literal>ghostscript</literal></title>

    <para>Possible arguments: <replaceable>X</replaceable>,
      <literal>build</literal>, <literal>run</literal>,
      <literal>nox11</literal></para>

    <para>A specific version <replaceable>X</replaceable> can be used.
      Possible versions are <literal>7</literal>,
      <literal>8</literal>, <literal>9</literal>, and
      <literal>agpl</literal> (default).  <literal>nox11</literal>
      indicates
      that the <literal>-nox11</literal> version of the port is
      required.  <literal>build</literal> and <literal>run</literal>
      add build- and run-time dependencies on
      <application>Ghostscript</application>.  The default is both
      build- and run-time dependencies.</para>
  </sect1>

  <sect1 xml:id="uses-gmake">
    <title><literal>gmake</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Uses <package role="port">devel/gmake</package> as a
      build-time dependency and sets up the environment to use
      <command>gmake</command> as the default <command>make</command>
      for the build.</para>
  </sect1>

  <sect1 xml:id="uses-gnome">
    <title><literal>gnome</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Provides an easy way to depend on
      <application>GNOME</application> components.  The components
      should be listed in <varname>USE_GNOME</varname>.  The available
      components are:</para>

    <!--
      From any port with USES=gnome, run:
      $ make -V '${_USE_GNOME_ALL:O:u:C,.*,<listitem> <para><literal>&</literal></para> </listitem> ,}'
      replace all spaces with new lines and reindent.
      -->
    <itemizedlist>
      <listitem>
	<para><literal>atk</literal></para>
      </listitem>

      <listitem>
	<para><literal>atkmm</literal></para>
      </listitem>

      <listitem>
	<para><literal>cairo</literal></para>
      </listitem>

      <listitem>
	<para><literal>cairomm</literal></para>
      </listitem>

      <listitem>
	<para><literal>dconf</literal></para>
      </listitem>

      <listitem>
	<para><literal>esound</literal></para>
      </listitem>

      <listitem>
	<para><literal>evolutiondataserver3</literal></para>
      </listitem>

      <listitem>
	<para><literal>gconf2</literal></para>
      </listitem>

      <listitem>
	<para><literal>gconfmm26</literal></para>
      </listitem>

      <listitem>
	<para><literal>gdkpixbuf</literal></para>
      </listitem>

      <listitem>
	<para><literal>gdkpixbuf2</literal></para>
      </listitem>

      <listitem>
	<para><literal>glib12</literal></para>
      </listitem>

      <listitem>
	<para><literal>glib20</literal></para>
      </listitem>

      <listitem>
	<para><literal>glibmm</literal></para>
      </listitem>

      <listitem>
	<para><literal>gnomecontrolcenter3</literal></para>
      </listitem>

      <listitem>
	<para><literal>gnomedesktop3</literal></para>
      </listitem>

      <listitem>
	<para><literal>gnomedocutils</literal></para>
      </listitem>

      <listitem>
	<para><literal>gnomemenus3</literal></para>
      </listitem>

      <listitem>
	<para><literal>gnomemimedata</literal></para>
      </listitem>

      <listitem>
	<para><literal>gnomeprefix</literal></para>
      </listitem>

      <listitem>
	<para><literal>gnomesharp20</literal></para>
      </listitem>

      <listitem>
	<para><literal>gnomevfs2</literal></para>
      </listitem>

      <listitem>
	<para><literal>gsound</literal></para>
      </listitem>

      <listitem>
	<para><literal>gtk-update-icon-cache</literal></para>
      </listitem>

      <listitem>
	<para><literal>gtk12</literal></para>
      </listitem>

      <listitem>
	<para><literal>gtk20</literal></para>
      </listitem>

      <listitem>
	<para><literal>gtk30</literal></para>
      </listitem>

      <listitem>
	<para><literal>gtkhtml3</literal></para>
      </listitem>

      <listitem>
	<para><literal>gtkhtml4</literal></para>
      </listitem>

      <listitem>
	<para><literal>gtkmm20</literal></para>
      </listitem>

      <listitem>
	<para><literal>gtkmm24</literal></para>
      </listitem>

      <listitem>
	<para><literal>gtkmm30</literal></para>
      </listitem>

      <listitem>
	<para><literal>gtksharp20</literal></para>
      </listitem>

      <listitem>
	<para><literal>gtksourceview</literal></para>
      </listitem>

      <listitem>
	<para><literal>gtksourceview2</literal></para>
      </listitem>

      <listitem>
	<para><literal>gtksourceview3</literal></para>
      </listitem>

      <listitem>
	<para><literal>gtksourceviewmm3</literal></para>
      </listitem>

      <listitem>
	<para><literal>gvfs</literal></para>
      </listitem>

      <listitem>
	<para><literal>intlhack</literal></para>
      </listitem>

      <listitem>
	<para><literal>intltool</literal></para>
      </listitem>

      <listitem>
	<para><literal>introspection</literal></para>
      </listitem>

      <listitem>
	<para><literal>libartlgpl2</literal></para>
      </listitem>

      <listitem>
	<para><literal>libbonobo</literal></para>
      </listitem>

      <listitem>
	<para><literal>libbonoboui</literal></para>
      </listitem>

      <listitem>
	<para><literal>libgda5</literal></para>
      </listitem>

      <listitem>
	<para><literal>libgda5-ui</literal></para>
      </listitem>

      <listitem>
	<para><literal>libgdamm5</literal></para>
      </listitem>

      <listitem>
	<para><literal>libglade2</literal></para>
      </listitem>

      <listitem>
	<para><literal>libgnome</literal></para>
      </listitem>

      <listitem>
	<para><literal>libgnomecanvas</literal></para>
      </listitem>

      <listitem>
	<para><literal>libgnomekbd</literal></para>
      </listitem>

      <listitem>
	<para><literal>libgnomeprint</literal></para>
      </listitem>

      <listitem>
	<para><literal>libgnomeprintui</literal></para>
      </listitem>

      <listitem>
	<para><literal>libgnomeui</literal></para>
      </listitem>

      <listitem>
	<para><literal>libgsf</literal></para>
      </listitem>

      <listitem>
	<para><literal>libgtkhtml</literal></para>
      </listitem>

      <listitem>
	<para><literal>libgtksourceviewmm</literal></para>
      </listitem>

      <listitem>
	<para><literal>libidl</literal></para>
      </listitem>

      <listitem>
	<para><literal>librsvg2</literal></para>
      </listitem>

      <listitem>
	<para><literal>libsigc++12</literal></para>
      </listitem>

      <listitem>
	<para><literal>libsigc++20</literal></para>
      </listitem>

      <listitem>
	<para><literal>libwnck</literal></para>
      </listitem>

      <listitem>
	<para><literal>libwnck3</literal></para>
      </listitem>

      <listitem>
	<para><literal>libxml++26</literal></para>
      </listitem>

      <listitem>
	<para><literal>libxml2</literal></para>
      </listitem>

      <listitem>
	<para><literal>libxslt</literal></para>
      </listitem>

      <listitem>
	<para><literal>metacity</literal></para>
      </listitem>

      <listitem>
	<para><literal>nautilus3</literal></para>
      </listitem>

      <listitem>
	<para><literal>orbit2</literal></para>
      </listitem>

      <listitem>
	<para><literal>pango</literal></para>
      </listitem>

      <listitem>
	<para><literal>pangomm</literal></para>
      </listitem>

      <listitem>
	<para><literal>pangox-compat</literal></para>
      </listitem>

      <listitem>
	<para><literal>py3gobject3</literal></para>
      </listitem>

      <listitem>
	<para><literal>pygnome2</literal></para>
      </listitem>

      <listitem>
	<para><literal>pygobject</literal></para>
      </listitem>

      <listitem>
	<para><literal>pygobject3</literal></para>
      </listitem>

      <listitem>
	<para><literal>pygtk2</literal></para>
      </listitem>

      <listitem>
	<para><literal>pygtksourceview</literal></para>
      </listitem>

      <listitem>
	<para><literal>referencehack</literal></para>
      </listitem>

      <listitem>
	<para><literal>vte</literal></para>
      </listitem>

      <listitem>
	<para><literal>vte3</literal></para>
      </listitem>
    </itemizedlist>

    <para>The default dependency is build- and run-time, it can be
      changed with <literal>:build</literal> or
      <literal>:run</literal>.  For example:</para>

    <programlisting>USES=		gnome
USE_GNOME=	gnomemenus3:build intlhack</programlisting>

    <para>See <xref linkend="using-gnome"/> for more
      information.</para>
  </sect1>

  <sect1 xml:id="uses-go">
    <title><literal>go</literal></title>

    <important>
      <para>Ports should not be created for Go libs, see
        <xref linkend="go-libs"/> for more information.</para>
    </important>

    <para>Possible arguments: (none)</para>

    <para>Sets default values and targets used to build
      <application>Go</application> software.  A build-time dependency
      on <package role="port">lang/go</package> is added.  The build
      process is controlled by several variables:</para>

    <variablelist>
      <varlistentry>
	<term><varname>GO_PKGNAME</varname></term>

	<listitem>
	  <para>The name of the <application>Go</application> package.
	    This is the directory that will be created in
	    <literal>GOPATH/src</literal>.  The default value is
	    <varname>${PORTNAME}</varname>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>GO_TARGET</varname></term>

	<listitem>
	  <para>The name of the packages to build.  The default
	    value is <varname>${GO_PKGNAME}</varname>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>CGO_CFLAGS</varname></term>

	<listitem>
	  <para>Additional <varname>CFLAGS</varname> values to be
	    passed to the <application>C</application> compiler by
	    <command>go</command>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>CGO_LDFLAGS</varname></term>

	<listitem>
	  <para>Additional <varname>LDFLAGS</varname> values to be
	    passed to the <application>C</application> compiler by
	    <command>go</command>.</para>
	</listitem>
      </varlistentry>
    </variablelist>
  </sect1>

  <sect1 xml:id="uses-gperf">
    <title><literal>gperf</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Add a buildtime dependency on <package
	role="port">devel/gperf</package> if <command>gperf</command>
      is not present in the base system.</para>
  </sect1>

  <sect1 xml:id="uses-grantlee">
    <title><literal>grantlee</literal></title>

    <para>Possible arguments: <literal>4</literal>,
      <literal>5</literal>, <literal>selfbuild</literal></para>

    <para>Handle dependency on <application>Grantlee</application>.
      Specify <literal>4</literal> to depend on the
      <application>Qt4</application> based version, <package
	role="port">devel/grantlee</package>.  Specify
      <literal>5</literal> to depend on the
      <application>Qt5</application> based version, <package
	role="port">devel/grantlee5</package>.
      <literal>selfbuild</literal> is used internally by <package
	role="port">devel/grantlee</package> and <package
	role="port">devel/grantlee5</package> to get their versions
      numbers.</para>
  </sect1>

  <sect1 xml:id="uses-groff">
    <title><literal>groff</literal></title>

    <para>Possible arguments: <literal>build</literal>,
      <literal>run</literal>, <literal>both</literal></para>

    <para>Registers a dependency on <package
	role="port">textproc/groff</package> if not present in the
      base system.</para>
  </sect1>

  <sect1 xml:id="uses-gssapi">
    <title><literal>gssapi</literal></title>

    <para>Possible arguments: (none), <literal>base</literal>
      (default), <literal>heimdal</literal>, <literal>mit</literal>,
      <literal>flags</literal>, <literal>bootstrap</literal></para>

    <para>Handle dependencies needed by consumers of the
      <acronym>GSS-API</acronym>.  Only libraries that provide the
      <application>Kerberos</application> mechanism are available.  By
      default, or set to <literal>base</literal>, the
      <acronym>GSS-API</acronym> library from the base system is used.
      Can also be set to <literal>heimdal</literal> to use <package
	role="port">security/heimdal</package>, or
      <literal>mit</literal> to use <package
	role="port">security/krb5</package>.</para>

    <para>When the local <application>Kerberos</application>
      installation is not in <varname>LOCALBASE</varname>, set
      <varname>HEIMDAL_HOME</varname> (for <literal>heimdal</literal>)
      or <varname>KRB5_HOME</varname> (for <literal>krb5</literal>) to
      the location of the <application>Kerberos</application>
      installation.</para>

    <para>These variables are exported for the ports to use:</para>

    <itemizedlist>
      <listitem>
	<para><varname>GSSAPIBASEDIR</varname></para>
      </listitem>

      <listitem>
	<para><varname>GSSAPICPPFLAGS</varname></para>
      </listitem>

      <listitem>
	<para><varname>GSSAPIINCDIR</varname></para>
      </listitem>

      <listitem>
	<para><varname>GSSAPILDFLAGS</varname></para>
      </listitem>

      <listitem>
	<para><varname>GSSAPILIBDIR</varname></para>
      </listitem>

      <listitem>
	<para><varname>GSSAPILIBS</varname></para>
      </listitem>

      <listitem>
	<para><varname>GSSAPI_CONFIGURE_ARGS</varname></para>
      </listitem>
    </itemizedlist>

    <para>The <literal>flags</literal> option can be given alongside
      <literal>base</literal>, <literal>heimdal</literal>, or
      <literal>mit</literal> to automatically add
      <varname>GSSAPICPPFLAGS</varname>,
      <varname>GSSAPILDFLAGS</varname>, and
      <varname>GSSAPILIBS</varname> to <varname>CFLAGS</varname>,
      <varname>LDFLAGS</varname>, and <varname>LDADD</varname>,
      respectively.  For example, use
      <literal>base,flags</literal>.</para>

    <para>The <literal>bootstrap</literal> option is a special prefix
      only for use by <package role="port">security/krb5</package> and
      <package role="port">security/heimdal</package>.  For example,
      use <literal>bootstrap,mit</literal>.</para>

    <example xml:id="uses-gssapi-ex1">
      <title>Typical Use</title>

      <programlisting>OPTIONS_SINGLE=	GSSAPI
OPTIONS_SINGLE_GSSAPI=	GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT GSSAPI_NONE

GSSAPI_BASE_USES=	gssapi
GSSAPI_BASE_CONFIGURE_ON=	--with-gssapi=${GSSAPIBASEDIR} ${GSSAPI_CONFIGURE_ARGS}
GSSAPI_HEIMDAL_USES=	gssapi:heimdal
GSSAPI_HEIMDAL_CONFIGURE_ON=	--with-gssapi=${GSSAPIBASEDIR} ${GSSAPI_CONFIGURE_ARGS}
GSSAPI_MIT_USES=	gssapi:mit
GSSAPI_MIT_CONFIGURE_ON=	--with-gssapi=${GSSAPIBASEDIR} ${GSSAPI_CONFIGURE_ARGS}
GSSAPI_NONE_CONFIGURE_ON=	--without-gssapi</programlisting>
    </example>
  </sect1>

  <sect1 xml:id="uses-horde">
    <title><literal>horde</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Add buildtime and runtime dependencies on <package
	role="port">devel/pear-channel-horde</package>.  Other
      <application>Horde</application> dependencies can be added
      with <varname>USE_HORDE_BUILD</varname> and
      <varname>USE_HORDE_RUN</varname>.  See <xref
	linkend="php-horde"/> for more information.</para>
  </sect1>

  <sect1 xml:id="uses-iconv">
    <title><literal>iconv</literal></title>

    <para>Possible arguments: (none), <literal>lib</literal>,
      <literal>build</literal>,
      <literal>patch</literal>, <literal>translit</literal>,
      <literal>wchar_t</literal></para>

    <para>Uses <command>iconv</command> functions, either from the
      port <package role="port">converters/libiconv</package> as a
      build-time and run-time dependency, or from the base system on
      10-CURRENT after a native <command>iconv</command> was committed
      in <revnumber>254273</revnumber>.  By default, with no arguments
      or with the <literal>lib</literal> argument, implies
      <command>iconv</command> with build-time and run-time
      dependencies.  <literal>build</literal> implies a build-time
      dependency, and <literal>patch</literal> implies a patch-time
      dependency.  If the port uses the <literal>WCHAR_T</literal> or
      <literal>//TRANSLIT</literal> iconv extensions, add the relevant
      arguments so that the correct iconv is used.  For more
      information see <xref linkend="using-iconv"/>.</para>
  </sect1>

  <sect1 xml:id="uses-imake">
    <title><literal>imake</literal></title>

    <para>Possible arguments: (none), <literal>env</literal>,
      <literal>notall</literal>, <literal>noman</literal></para>

    <para>Add <package role="port">devel/imake</package> as a
      build-time dependency and run <command>xmkmf -a</command> during
      the <buildtarget>configure</buildtarget> stage.  If the
      <literal>env</literal> argument is given, the
      <buildtarget>configure</buildtarget> target is not set.  If the
      <option>-a</option> flag is a problem for the port, add the
      <literal>notall</literal> argument.  If <command>xmkmf</command>
      does not generate a <buildtarget>install.man</buildtarget>
      target, add the <literal>noman</literal> argument.</para>
  </sect1>

  <sect1 xml:id="uses-kde">
    <title><literal>kde</literal></title>

    <para>Possible arguments: <literal>4</literal></para>

    <para>Add dependency on <application>KDE</application> components.
      See <xref linkend="using-kde"/> for more information.</para>
  </sect1>

  <sect1 xml:id="uses-kmod">
    <title><literal>kmod</literal></title>

    <para>Possible arguments: (none), <literal>debug</literal></para>

    <para>Fills in the boilerplate for kernel module ports,
      currently:</para>

    <itemizedlist>
      <listitem>
	<para>Add <literal>kld</literal> to
	  <varname>CATEGORIES</varname>.</para>
      </listitem>

      <listitem>
	<para>Set <varname>SSP_UNSAFE</varname>.</para>
      </listitem>

      <listitem>
	<para>Set <varname>IGNORE</varname> if the kernel sources are
	  not found in <varname>SRC_BASE</varname>.</para>
      </listitem>

      <listitem>
	<para>Define <varname>KMODDIR</varname> to
	  <filename>/boot/modules</filename> by default, add it to
	  <varname>PLIST_SUB</varname> and
	  <varname>MAKE_ENV</varname>, and create it upon
	  installation.  If <varname>KMODDIR</varname> is set to
	  <filename>/boot/kernel</filename>, it will be rewritten to
	  <filename>/boot/modules</filename>.  This prevents breaking
	  packages when upgrading the kernel due to
	  <filename>/boot/kernel</filename> being renamed to
	  <filename>/boot/kernel.old</filename> in the process.</para>
      </listitem>

      <listitem>
	<para>Handle cross-referencing kernel modules upon
	  installation and deinstallation, using <link
	    linkend="plist-keywords-kld"><literal>@kld</literal></link>.</para>
      </listitem>

      <listitem>
	<para>If the <literal>debug</literal> argument is given, the
	  port can install a debug version of the module into
	  <filename>KERN_DEBUGDIR</filename>/<filename>KMODDIR</filename>.
	  By default, <varname>KERN_DEBUGDIR</varname> is copied from
	  <varname>DEBUGDIR</varname> and set to
	  <filename>/usr/lib/debug</filename>.  The framework will
	  take care of creating and removing any required
	  directories.</para>
      </listitem>
    </itemizedlist>
  </sect1>

  <sect1 xml:id="uses-lha">
    <title><literal>lha</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Set <varname>EXTRACT_SUFX</varname> to
      <literal>.lzh</literal></para>
  </sect1>

  <sect1 xml:id="uses-libarchive">
    <title><literal>libarchive</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Registers a dependency on <package
	role="port">archivers/libarchive</package>.  Any ports
      depending on <application>libarchive</application> must include
      <literal>USES=libarchive</literal>.</para>
  </sect1>

  <sect1 xml:id="uses-libedit">
    <title><literal>libedit</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Registers a dependency on <package
	role="port">devel/libedit</package>.  Any ports depending on
      <application>libedit</application> must include
      <literal>USES=libedit</literal>.</para>
  </sect1>

  <sect1 xml:id="uses-libtool">
    <title><literal>libtool</literal></title>

    <para>Possible arguments: (none), <literal>keepla</literal>,
      <literal>build</literal></para>

    <para>Patches <command>libtool</command> scripts.  This must be
      added to all ports that use <command>libtool</command>.  The
      <literal>keepla</literal> argument can be used to keep
      <filename>.la</filename> files.  Some ports do not ship with
      their own copy of libtool and need a build time dependency on
      <package role="port">devel/libtool</package>, use the
      <literal>:build</literal> argument to add such
      dependency.</para>
  </sect1>

  <sect1 xml:id="uses-linux">
    <title><literal>linux</literal></title>

    <para>Possible arguments: <literal>c6</literal>,
      <literal>c7</literal></para>

    <para>Ports <application>Linux</application> compatibility
      framework.  Specify <literal>c6</literal> to depend on
      <application>CentOS</application> 6 packags.  Specify
      <literal>c7</literal> to depend on
      <application>CentOS</application> 7 packages.  The available
      packages are:</para>

    <!--
    $ sed -ne 's/^linux_\(.*\)_DEP=.*/\1/p' Mk/Uses/linux.mk |sort -u|sed -e 's,.*,<listitem> <para><literal>&</literal></para> </listitem> ,'
    -->
    <itemizedlist>
      <listitem>
	<para><literal>allegro</literal></para>
      </listitem>

      <listitem>
	<para><literal>alsa-plugins-oss</literal></para>
      </listitem>

      <listitem>
	<para><literal>alsa-plugins-pulseaudio</literal></para>
      </listitem>

      <listitem>
	<para><literal>alsalib</literal></para>
      </listitem>

      <listitem>
	<para><literal>atk</literal></para>
      </listitem>

      <listitem>
	<para><literal>avahi-libs</literal></para>
      </listitem>

      <listitem>
	<para><literal>base</literal></para>
      </listitem>

      <listitem>
	<para><literal>cairo</literal></para>
      </listitem>

      <listitem>
	<para><literal>cups-libs</literal></para>
      </listitem>

      <listitem>
	<para><literal>curl</literal></para>
      </listitem>

      <listitem>
	<para><literal>cyrus-sasl2</literal></para>
      </listitem>

      <listitem>
	<para><literal>dbusglib</literal></para>
      </listitem>

      <listitem>
	<para><literal>dbuslibs</literal></para>
      </listitem>

      <listitem>
	<para><literal>devtools</literal></para>
      </listitem>

      <listitem>
	<para><literal>dri</literal></para>
      </listitem>

      <listitem>
	<para><literal>expat</literal></para>
      </listitem>

      <listitem>
	<para><literal>flac</literal></para>
      </listitem>

      <listitem>
	<para><literal>fontconfig</literal></para>
      </listitem>

      <listitem>
	<para><literal>gdkpixbuf2</literal></para>
      </listitem>

      <listitem>
	<para><literal>gnutls</literal></para>
      </listitem>

      <listitem>
	<para><literal>graphite2</literal></para>
      </listitem>

      <listitem>
	<para><literal>gtk2</literal></para>
      </listitem>

      <listitem>
	<para><literal>harfbuzz</literal></para>
      </listitem>

      <listitem>
	<para><literal>jasper</literal></para>
      </listitem>

      <listitem>
	<para><literal>jbigkit</literal></para>
      </listitem>

      <listitem>
	<para><literal>jpeg</literal></para>
      </listitem>

      <listitem>
	<para><literal>libasyncns</literal></para>
      </listitem>

      <listitem>
	<para><literal>libaudiofile</literal></para>
      </listitem>

      <listitem>
	<para><literal>libelf</literal></para>
      </listitem>

      <listitem>
	<para><literal>libgcrypt</literal></para>
      </listitem>

      <listitem>
	<para><literal>libgfortran</literal></para>
      </listitem>

      <listitem>
	<para><literal>libgpg-error</literal></para>
      </listitem>

      <listitem>
	<para><literal>libmng</literal></para>
      </listitem>

      <listitem>
	<para><literal>libogg</literal></para>
      </listitem>

      <listitem>
	<para><literal>libpciaccess</literal></para>
      </listitem>

      <listitem>
	<para><literal>libsndfile</literal></para>
      </listitem>

      <listitem>
	<para><literal>libsoup</literal></para>
      </listitem>

      <listitem>
	<para><literal>libssh2</literal></para>
      </listitem>

      <listitem>
	<para><literal>libtasn1</literal></para>
      </listitem>

      <listitem>
	<para><literal>libthai</literal></para>
      </listitem>

      <listitem>
	<para><literal>libtheora</literal></para>
      </listitem>

      <listitem>
	<para><literal>libv4l</literal></para>
      </listitem>

      <listitem>
	<para><literal>libvorbis</literal></para>
      </listitem>

      <listitem>
	<para><literal>libxml2</literal></para>
      </listitem>

      <listitem>
	<para><literal>mikmod</literal></para>
      </listitem>

      <listitem>
	<para><literal>naslibs</literal></para>
      </listitem>

      <listitem>
	<para><literal>ncurses-base</literal></para>
      </listitem>

      <listitem>
	<para><literal>nspr</literal></para>
      </listitem>

      <listitem>
	<para><literal>nss</literal></para>
      </listitem>

      <listitem>
	<para><literal>openal</literal></para>
      </listitem>

      <listitem>
	<para><literal>openal-soft</literal></para>
      </listitem>

      <listitem>
	<para><literal>openldap</literal></para>
      </listitem>

      <listitem>
	<para><literal>openmotif</literal></para>
      </listitem>

      <listitem>
	<para><literal>openssl</literal></para>
      </listitem>

      <listitem>
	<para><literal>pango</literal></para>
      </listitem>

      <listitem>
	<para><literal>pixman</literal></para>
      </listitem>

      <listitem>
	<para><literal>png</literal></para>
      </listitem>

      <listitem>
	<para><literal>pulseaudio-libs</literal></para>
      </listitem>

      <listitem>
	<para><literal>qt</literal></para>
      </listitem>

      <listitem>
	<para><literal>qt-x11</literal></para>
      </listitem>

      <listitem>
	<para><literal>qtwebkit</literal></para>
      </listitem>

      <listitem>
	<para><literal>scimlibs</literal></para>
      </listitem>

      <listitem>
	<para><literal>sdl12</literal></para>
      </listitem>

      <listitem>
	<para><literal>sdlimage</literal></para>
      </listitem>

      <listitem>
	<para><literal>sdlmixer</literal></para>
      </listitem>

      <listitem>
	<para><literal>sqlite3</literal></para>
      </listitem>

      <listitem>
	<para><literal>tcl85</literal></para>
      </listitem>

      <listitem>
	<para><literal>tcp_wrappers-libs</literal></para>
      </listitem>

      <listitem>
	<para><literal>tiff</literal></para>
      </listitem>

      <listitem>
	<para><literal>tk85</literal></para>
      </listitem>

      <listitem>
	<para><literal>ucl</literal></para>
      </listitem>

      <listitem>
	<para><literal>xorglibs</literal></para>
      </listitem>
    </itemizedlist>

  </sect1>

  <sect1 xml:id="uses-localbase">
    <title><literal>localbase</literal></title>

    <para>Possible arguments: (none),
      <literal>ldflags</literal></para>

    <para>Ensures that libraries from dependencies in
      <varname>LOCALBASE</varname> are used instead of the ones from
      the base system.  Specify <literal>ldflags</literal> to add
      <literal>-L${LOCALBASE}/lib</literal> to
      <varname>LDFLAGS</varname> instead of <varname>LIBS</varname>.
      Ports that depend on libraries that are also
      present in the base system should use this.  It is also used
      internally by a few other <varname>USES</varname>.</para>
  </sect1>

  <sect1 xml:id="uses-lua">
    <title><literal>lua</literal></title>

    <para>Possible arguments: (none),
      <literal><replaceable>XY</replaceable>+</literal>,
      <literal><replaceable>XY</replaceable></literal>,
      <literal>build</literal>, <literal>run</literal></para>

    <para>Adds a dependency on <application>Lua</application>.  By
      default this is a library dependency, unless overridden by the
      <literal>build</literal> or <literal>run</literal> option.  The
      default version is 5.2, unless set by the
      <literal><replaceable>XY</replaceable></literal> parameter (for
      example, <literal>51</literal> or
      <literal>52+</literal>).</para>
  </sect1>

  <sect1 xml:id="uses-lxqt">
    <title><literal>lxqt</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Handle dependencies for the <application>LXQt Desktop
	Environment</application>.  Use <varname>USE_LXQT</varname> to
      select the components needed for the port.  See <xref
	linkend="using-lxqt"/> for more information.</para>
  </sect1>

  <sect1 xml:id="uses-makeinfo">
    <title><literal>makeinfo</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Add a build-time dependency on <command>makeinfo</command>
      if it is not present in the base system.</para>
  </sect1>

  <sect1 xml:id="uses-makeself">
    <title><literal>makeself</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Indicates that the distribution files are makeself archives
      and sets the appropriate dependencies.</para>
  </sect1>

  <sect1 xml:id="uses-mate">
    <title><literal>mate</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Provides an easy way to depend on
      <application>MATE</application> components.  The components
      should be listed in <varname>USE_MATE</varname>.  The available
      components are:</para>

    <itemizedlist>
      <listitem>
	<para><literal>autogen</literal></para>
      </listitem>

      <listitem>
	<para><literal>caja</literal></para>
      </listitem>

      <listitem>
	<para><literal>common</literal></para>
      </listitem>

      <listitem>
	<para><literal>controlcenter</literal></para>
      </listitem>

      <listitem>
	<para><literal>desktop</literal></para>
      </listitem>

      <listitem>
	<para><literal>dialogs</literal></para>
      </listitem>

      <listitem>
	<para><literal>docutils</literal></para>
      </listitem>

      <listitem>
	<para><literal>icontheme</literal></para>
      </listitem>

      <listitem>
	<para><literal>intlhack</literal></para>
      </listitem>

      <listitem>
	<para><literal>intltool</literal></para>
      </listitem>

      <listitem>
	<para><literal>libmatekbd</literal></para>
      </listitem>

      <listitem>
	<para><literal>libmateweather</literal></para>
      </listitem>

      <listitem>
	<para><literal>marco</literal></para>
      </listitem>

      <listitem>
	<para><literal>menus</literal></para>
      </listitem>

      <listitem>
	<para><literal>notificationdaemon</literal></para>
      </listitem>

      <listitem>
	<para><literal>panel</literal></para>
      </listitem>

      <listitem>
	<para><literal>pluma</literal></para>
      </listitem>

      <listitem>
	<para><literal>polkit</literal></para>
      </listitem>

      <listitem>
	<para><literal>session</literal></para>
      </listitem>

      <listitem>
	<para><literal>settingsdaemon</literal></para>
      </listitem>
    </itemizedlist>

    <para>The default dependency is build- and run-time, it can be
      changed with <literal>:build</literal> or
      <literal>:run</literal>.  For example:</para>

    <programlisting>USES=		mate
USE_MATE=	menus:build intlhack</programlisting>
  </sect1>

  <sect1 xml:id="uses-meson">
    <title><literal>meson</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Provide support for Meson based projects.</para>
  </sect1>

  <sect1 xml:id="uses-metaport">
    <title><literal>metaport</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Sets the following variables to make it easier to create a
      metaport: <varname>MASTER_SITES</varname>,
      <varname>DISTFILES</varname>, <varname>EXTRACT_ONLY</varname>,
      <varname>NO_BUILD</varname>, <varname>NO_INSTALL</varname>,
      <varname>NO_MTREE</varname>, <varname>NO_ARCH</varname>.</para>
  </sect1>

  <sect1 xml:id="uses-mysql">
    <title><literal>mysql</literal></title>

    <para>Possible arguments: (none),
      <literal><replaceable>version</replaceable></literal>,
      <literal>client</literal> (default), <literal>server</literal>,
      <literal>embedded</literal></para>

    <para>Provide support for <application>MySQL</application>.  If no
      version is given, try to find the current installed version.
      Fall back to the default version, MySQL-5.6.  The possible
      versions are <literal>55</literal>, <literal>55m</literal>,
      <literal>55p</literal>, <literal>56</literal>,
      <literal>56p</literal>, <literal>56w</literal>,
      <literal>57</literal>, <literal>57p</literal>,
      <literal>80</literal>, <literal>100m</literal>,
      <literal>101m</literal>, and <literal>102m</literal>.  The
      <literal>m</literal> and <literal>p</literal> suffixes are for
      the <application>MariaDB</application> and
      <application>Percona</application> variants of
      <application>MySQL</application>.  <literal>server</literal> and
      <literal>embedded</literal> add a build- and run-time dependency
      on the <application>MySQL</application> server.  When using
      <literal>server</literal> or <literal>embedded</literal>, add
      <literal>client</literal> to also add a dependency on
      <filename>libmysqlclient.so</filename>.  A port can set
      <varname>IGNORE_WITH_MYSQL</varname> if some versions are not
      supported.</para>

    <para>The framework sets <varname>MYSQL_VER</varname> to the
      detected MySQL version.</para>
  </sect1>

  <sect1 xml:id="uses-mono">
    <title><literal>mono</literal></title>

    <para>Possible arguments: (none), <literal>nuget</literal></para>

    <para>Adds a dependency on the <application>Mono</application>
      (currently only C#) framework by setting the appropriate
      dependencies.</para>

    <para>Specify <literal>nuget</literal> when the port uses nuget
      packages.  <varname>NUGET_DEPENDS</varname> needs to be set with
      the names and versions of the nuget packages in the format
      <literal><replaceable>name</replaceable>=<replaceable>version</replaceable></literal>.
      An optional package origin can be added using
      <literal><replaceable>name</replaceable>=<replaceable>version</replaceable>:<replaceable>origin</replaceable></literal>.</para>

    <para>The helper target, <buildtarget>buildnuget</buildtarget>,
      will output the content of the <varname>NUGET_DEPENDS</varname>
      based on the provided
      <filename>packages.config</filename>.</para>
  </sect1>

  <sect1 xml:id="uses-motif">
    <title><literal>motif</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Uses <package role="port">x11-toolkits/open-motif</package>
      as a library dependency.  End users can set
      <varname>WANT_LESSTIF</varname> for the dependency to be on
      <package role="port">x11-toolkits/lesstif</package> instead of
      <package role="port">x11-toolkits/open-motif</package>.</para>
  </sect1>

  <sect1 xml:id="uses-ncurses">
    <title><literal>ncurses</literal></title>

    <para>Possible arguments: (none), <literal>base</literal>,
      <literal>port</literal></para>

    <para>Uses <application>ncurses</application>, and causes some
      useful variables to be set.</para>
  </sect1>

  <sect1 xml:id="uses-ninja">
    <title><literal>ninja</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Uses <application>ninja</application> to build the
      port.</para>
  </sect1>

  <sect1 xml:id="uses-objc">
    <title><literal>objc</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Add objective C dependencies (compiler, runtime library) if
      the base system does not support it.</para>
  </sect1>

  <sect1 xml:id="uses-openal">
    <title><literal>openal</literal></title>

    <para>Possible arguments: <literal>al</literal>,
      <literal>soft</literal> (default), <literal>si</literal>,
      <literal>alut</literal></para>

    <para>Uses <application>OpenAL</application>.  The backend can be
      specified, with the software implementation as the default.  The
      user can specify a preferred backend with
      <varname>WANT_OPENAL</varname>.  Valid values for this knob are
      <literal>soft</literal> (default) and
      <literal>si</literal>.</para>
  </sect1>

  <sect1 xml:id="uses-pathfix">
    <title><literal>pathfix</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Look for <filename>Makefile.in</filename> and
      <filename>configure</filename> in
      <varname>PATHFIX_WRKSRC</varname> (defaults to
      <varname>WRKSRC</varname>)
      and fix common paths to make sure they respect the &os;
      hierarchy.  For example, it fixes the installation directory
      of <command>pkgconfig</command>'s <filename>.pc</filename> files
      to <filename>${PREFIX}/libdata/pkgconfig</filename>.  If
      the port uses <literal>USES=autoreconf</literal>,
      <filename>Makefile.am</filename> will be added to
      <varname>PATHFIX_MAKEFILEIN</varname> automatically.</para>

    <para>If the port <link
	linkend="uses-cmake"><literal>USES=cmake</literal></link> it
      will look for <filename>CMakeLists.txt</filename> in
      <varname>PATHFIX_WRKSRC</varname>.  If needed, that default
      filename can be changed with
      <varname>PATHFIX_CMAKELISTSTXT</varname>.</para>
  </sect1>

  <sect1 xml:id="uses-pear">
    <title><literal>pear</literal></title>

    <para>Possible arguments: <literal>env</literal></para>

    <para>Adds a dependency on <package
	role="port">devel/pear</package>.  It will setup default
      behavior for software using the <application>PHP</application>
      Extension and Application Repository.  Using the
      <literal>env</literal> arguments only sets up the
      <application>PEAR</application> environment variables.  See
      <xref linkend="php-pear"/> for more information.</para>
  </sect1>

  <sect1 xml:id="uses-perl5">
    <title><literal>perl5</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Depends on <application>Perl</application>.  The
      configuration is done using <varname>USE_PERL5</varname>.</para>

    <para><varname>USE_PERL5</varname> can contain the phases in which
      to use <application>Perl</application>, can be
      <literal>extract</literal>, <literal>patch</literal>,
      <literal>build</literal>, <literal>run</literal>, or
      <literal>test</literal>.</para>

    <para><varname>USE_PERL5</varname> can also contain
      <literal>configure</literal>,
      <literal>modbuild</literal>, or <literal>modbuildtiny</literal>
      when <filename>Makefile.PL</filename>,
      <filename>Build.PL</filename>, or
      <application>Module::Build::Tiny</application>'s flavor of
      <filename>Build.PL</filename> is required.</para>

    <para><varname>USE_PERL5</varname> defaults to <literal>build
	run</literal>.  When using <literal>configure</literal>,
      <literal>modbuild</literal>, or <literal>modbuildtiny</literal>,
      <literal>build</literal> and <literal>run</literal> are
      implied.</para>

    <para>See <xref linkend="using-perl"/> for more
	information.</para>
  </sect1>

  <sect1 xml:id="uses-pgsql">
    <title><literal>pgsql</literal></title>

    <para>Possible arguments: (none),
      <literal><replaceable>X.Y</replaceable></literal>,
      <literal><replaceable>X.Y</replaceable>+</literal>,
      <literal><replaceable>X.Y</replaceable>-</literal></para>

    <para>Provide support for PostgreSQL.  Maintainer can set version
      required.  Minimum and maximum versions can be specified; for
      example, 9.0-, 8.4+.</para>

    <para>Add PostgreSQL component dependency, using
      <literal>WANT_PGSQL=component[:target]</literal>.  for example,
      <literal>WANT_PGSQL=server:configure pltcl plperl</literal>  For
      the full list use <command>make -V
	_USE_PGSQL_DEP</command>.</para>
  </sect1>

  <sect1 xml:id="uses-php">
    <title><literal>php</literal></title>

    <para>Possible arguments: (none), <literal>phpize</literal>,
      <literal>ext</literal>, <literal>zend</literal>,
      <literal>build</literal>, <literal>cli</literal>,
      <literal>cgi</literal>, <literal>mod</literal>,
      <literal>web</literal>, <literal>embed</literal>,
      <literal>pecl</literal>, <literal>flavors</literal>,
      <literal>noflavors</literal></para>

    <para>Provide support for <application>PHP</application>.  Add a
      runtime dependency on the default PHP version, <package
	role="port">lang/php56</package>.</para>

    <variablelist>
      <varlistentry>
	<term><literal>phpize</literal></term>
	<listitem>
	  <para>Use to build a <application>PHP</application>
	    extension.  Enables flavors.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>ext</literal></term>
	<listitem>
	  <para>Use to build, install and register a
	    <application>PHP</application> extension.  Enables
	    flavors.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>zend</literal></term>
	<listitem>
	  <para>Use to build, install and register a Zend
	    extension.  Enables flavors.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>build</literal></term>
	<listitem>
	  <para>Set <application>PHP</application> also as a
	    build-time dependency.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>cli</literal></term>
	<listitem>
	  <para>Needs the CLI version of
	    <application>PHP</application>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>cgi</literal></term>
	<listitem>
	  <para>Needs the CGI version of
	    <application>PHP</application>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>mod</literal></term>
	<listitem>
	  <para>Needs the <application>Apache</application> module for
	    <application>PHP</application>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>web</literal></term>
	<listitem>
	  <para>Needs the <application>Apache</application> module or
	    the <acronym>CGI</acronym> version of
	    <application>PHP</application>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>embed</literal></term>
	<listitem>
	  <para>Needs the embedded library version of
	    <application>PHP</application>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>pecl</literal></term>
	<listitem>
	  <para>Provide defaults for fetching
	    <application>PHP</application> extensions from the PECL
	    repository.  Enables flavors.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>flavors</literal></term>
	<listitem>
	  <para>Enable automatic <link
	      linkend="flavors-auto-php"><application>PHP</application>
	      flavors</link> generation.  Flavors will be generated
	    for all PHP versions, except the ones present in
	    <link linkend="uses-php-ignore"><varname>IGNORE_WITH_PHP</varname></link>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>noflavors</literal></term>
	<listitem>
	  <para>Disable automatic <application>PHP</application>
	    flavors generation.  <emphasis>Must only</emphasis> be
	    used with extensions provided by
	    <application>PHP</application> itself.</para>
	</listitem>
      </varlistentry>
    </variablelist>

    <para>Variables are used to specify which
      <application>PHP</application> modules are required, as well as
      which version of <application>PHP</application> are
      supported.</para>

    <variablelist>
      <varlistentry>
	<term><varname>USE_PHP</varname></term>
	<listitem>
	  <para>The list of required <application>PHP</application>
	    extensions at run-time.  Add <literal>:build</literal> to
	    the extension name to add a build-time dependency.
	    Example: <literal>pcre xml:build gettext</literal></para>
	</listitem>
      </varlistentry>

      <varlistentry xml:id="uses-php-ignore">
	<term><varname>IGNORE_WITH_PHP</varname></term>
	<listitem>
	  <para>The port does not work with
	    <application>PHP</application> of the given version.  For
	    possible values look at the content of
	    <varname>_ALL_PHP_VERSIONS</varname> in
	    <filename>Mk/Uses/php.mk</filename>.</para>
	</listitem>
      </varlistentry>
    </variablelist>

    <para>When building a <application>PHP</application> or
      <application>Zend</application> extension with
      <literal>:ext</literal> or <literal>:zend</literal>, these
      variables can be set:</para>

    <variablelist>
      <varlistentry>
	<term><varname>PHP_MODNAME</varname></term>
	<listitem>
	  <para>The name of the <application>PHP</application> or
	    <application>Zend</application> extension.  Default value
	    is <literal>${PORTNAME}</literal>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>PHP_HEADER_DIRS</varname></term>
	<listitem>
	  <para>A list of subdirectories from which to install header
	    files.  The framework will always install the header files
	    that are present in the same directory as the
	    extension.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>PHP_MOD_PRIO</varname></term>
	<listitem>
	  <para>The priority at which to load the extension.  It is a
	    number between <literal>00</literal> and
	    <literal>99</literal>.</para>

	  <para>For extensions that do not depend on any extension,
	    the priority is automatically set to
	    <literal>20</literal>, for extensions that depend on
	    another extension, the priority is automatically set to
	    <literal>30</literal>.  Some extensions may need to be
	    loaded before every other extension, for example <package
	      role="port">www/php56-opcache</package>.  Some may need
	    to be loaded after an extension with a priority of
	    <literal>30</literal>.  In that case, add
	    <literal>PHP_MOD_PRIO=<replaceable>XX</replaceable></literal>
	    in the port's Makefile.  For example:</para>

	  <programlisting>USES=		php:ext
USE_PHP=	wddx
PHP_MOD_PRIO=	40</programlisting>
	</listitem>
      </varlistentry>
    </variablelist>

    <para>These variables are available to use in
      <varname>PKGNAMEPREFIX</varname> or
      <varname>PKGNAMESUFFIX</varname>:</para>

    <variablelist>
      <varlistentry>
	<term><varname>PHP_PKGNAMEPREFIX</varname></term>
	<listitem>
	  <para>Contains
	    <literal>php<replaceable>XY</replaceable>-</literal> where
	    <replaceable>XY</replaceable> is the current flavor's PHP
	    version.  Use with PHP extensions and modules.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>PHP_PKGNAMESUFFIX</varname></term>
	<listitem>
	  <para>Contains
	    <literal>-php<replaceable>XY</replaceable></literal> where
	    <replaceable>XY</replaceable> is the current flavor's PHP
	    version.  Use with PHP applications.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>PECL_PKGNAMEPREFIX</varname></term>
	<listitem>
	  <para>Contains
	    <literal>php<replaceable>XY</replaceable>-pecl-</literal>
	    where <replaceable>XY</replaceable> is the current
	    flavor's PHP version.  Use with
	    <application>PECL</application> modules.</para>
	</listitem>
      </varlistentry>
    </variablelist>

    <important>
      <para>With flavors, all PHP extensions, PECL extensions, PEAR
	modules <emphasis>must have</emphasis> a different package
	name, so they must all use one of these three variables  in
	their <varname>PKGNAMEPREFIX</varname> or
	<varname>PKGNAMESUFFIX</varname>.</para>
    </important>
  </sect1>

  <sect1 xml:id="uses-pkgconfig">
    <title><literal>pkgconfig</literal></title>

    <para>Possible arguments: (none), <literal>build</literal>
      (default), <literal>run</literal>,
      <literal>both</literal></para>

    <para>Uses <package role="port">devel/pkgconf</package>.  With no
      arguments or with the <literal>build</literal> argument, it
      implies <command>pkg-config</command> as a build-time
      dependency.  <literal>run</literal> implies a run-time
      dependency and <literal>both</literal> implies both run-time and
      build-time dependencies.</para>
  </sect1>

  <sect1 xml:id="uses-pure">
    <title><literal>pure</literal></title>

    <para>Possible arguments: (none), <literal>ffi</literal></para>

    <para>Uses <package role="port">lang/pure</package>.  Largely used
      for building related <application>pure</application> ports.
      With the <literal>ffi</literal> argument, it implies <package
	role="port">devel/pure-ffi</package> as a run-time
      dependency.</para>
  </sect1>

  <sect1 xml:id="uses-pyqt">
    <title><literal>pyqt</literal></title>

    <para>Possible arguments: (none), <literal>4</literal>,
      <literal>5</literal></para>

    <para>Uses <application>PyQt</application>.  If the port is part
      of PyQT itself, set <varname>PYQT_DIST</varname>.  Use
      <varname>USE_PYQT</varname> to select the components the port
      needs.  The available components are:</para>

    <itemizedlist>
      <listitem>
	<para><literal>core</literal></para>
      </listitem>

      <listitem>
	<para><literal>dbus</literal></para>
      </listitem>

      <listitem>
	<para><literal>dbussupport</literal></para>
      </listitem>

      <listitem>
	<para><literal>demo</literal></para>
      </listitem>

      <listitem>
	<para><literal>designer</literal></para>
      </listitem>

      <listitem>
	<para><literal>designerplugin</literal></para>
      </listitem>

      <listitem>
	<para><literal>doc</literal></para>
      </listitem>

      <listitem>
	<para><literal>gui</literal></para>
      </listitem>

      <listitem>
	<para><literal>multimedia</literal></para>
      </listitem>

      <listitem>
	<para><literal>network</literal></para>
      </listitem>

      <listitem>
	<para><literal>opengl</literal></para>
      </listitem>

      <listitem>
	<para><literal>qscintilla2</literal></para>
      </listitem>

      <listitem>
	<para><literal>sip</literal></para>
      </listitem>

      <listitem>
	<para><literal>sql</literal></para>
      </listitem>

      <listitem>
	<para><literal>svg</literal></para>
      </listitem>

      <listitem>
	<para><literal>test</literal></para>
      </listitem>

      <listitem>
	<para><literal>webkit</literal></para>
      </listitem>

      <listitem>
	<para><literal>xml</literal></para>
      </listitem>

      <listitem>
	<para><literal>xmlpatterns</literal></para>
      </listitem>
    </itemizedlist>

    <para>These components are only available with
      <application>PyQT4</application>:</para>

    <itemizedlist>
      <listitem>
	<para><literal>assistant</literal></para>
      </listitem>

      <listitem>
	<para><literal>declarative</literal></para>
      </listitem>

      <listitem>
	<para><literal>help</literal></para>
      </listitem>

      <listitem>
	<para><literal>phonon</literal></para>
      </listitem>

      <listitem>
	<para><literal>script</literal></para>
      </listitem>

      <listitem>
	<para><literal>scripttools</literal></para>
      </listitem>
    </itemizedlist>

    <para>These components are only available with
      <application>PyQT5</application>:</para>

    <itemizedlist>
      <listitem>
	<para><literal>multimediawidgets</literal></para>
      </listitem>

      <listitem>
	<para><literal>printsupport</literal></para>
      </listitem>

      <listitem>
	<para><literal>qml</literal></para>
      </listitem>

      <listitem>
	<para><literal>serialport</literal></para>
      </listitem>

      <listitem>
	<para><literal>webkitwidgets</literal></para>
      </listitem>

      <listitem>
	<para><literal>widgets</literal></para>
      </listitem>
    </itemizedlist>

    <para>The default dependency for each component is build- and
      run-time, to select only build or run, add
      <literal>_build</literal> or <literal>_run</literal> to the
      component name.  For example:</para>

    <programlisting>USES=		pyqt
USE_PYQT=	core doc_build designer_run</programlisting>
  </sect1>

  <sect1 xml:id="uses-python">
    <title><literal>python</literal></title>

    <para>Possible arguments: (none),
      <literal><replaceable>X.Y</replaceable></literal>,
      <literal><replaceable>X.Y+</replaceable></literal>,
      <literal><replaceable>-X.Y</replaceable></literal>,
      <literal><replaceable>X.Y-Z.A</replaceable></literal>,
      <literal>patch</literal>,
      <literal>build</literal>, <literal>run</literal>,
      <literal>test</literal></para>

    <para>Uses <application>Python</application>.  A supported version
      or version range can be specified.  If Python is only needed at
      build time, run time or for the tests, it can be set as a build,
      run or test dependency with <literal>build</literal>,
      <literal>run</literal>, or <literal>test</literal>.  If Python
      is also needed during the patch phase, use
      <literal>patch</literal>.  See
      <xref linkend="using-python"/> for more information.</para>

    <para><literal>PYTHON_NO_DEPENDS=yes</literal> can be used when
      the variables exported by the framework are needed but a
      dependency on <application>Python</application> is not.  It can
      happen when using with <link
	linkend="uses-shebangfix"><literal>USES=shebangfix</literal></link>,
      and the goal is only to fix the shebangs but not add a
      dependency on <application>Python</application>.</para>
  </sect1>

  <sect1 xml:id="uses-qmail">
    <title><literal>qmail</literal></title>

    <para>Possible arguments: (none), <literal>build</literal>,
      <literal>run</literal>, <literal>both</literal>,
      <literal>vars</literal></para>

    <para>Uses <package role="port">mail/qmail</package>.  With the
      <literal>build</literal> argument, it implies
      <command>qmail</command> as a build-time dependency.
      <literal>run</literal> implies a run-time dependency.  Using no
      argument or the <literal>both</literal> argument implies both
      run-time and build-time dependencies.  <literal>vars</literal>
      will only set QMAIL variables for the port to use.</para>
  </sect1>

  <sect1 xml:id="uses-qmake">
    <title><literal>qmake</literal></title>

    <para>Possible arguments: (none), <literal>norecursive</literal>,
      <literal>outsource</literal></para>

    <para>Uses <application>QMake</application> for configuring.  For
      more information see <xref linkend="using-qmake"/>.</para>
  </sect1>

  <sect1 xml:id="uses-readline">
    <title><literal>readline</literal></title>

    <para>Possible arguments: (none), <literal>port</literal></para>

    <para>Uses <application>readline</application> as a library
      dependency, and sets <varname>CPPFLAGS</varname> and
      <varname>LDFLAGS</varname> as necessary.  If the
      <literal>port</literal> argument is used or if readline is not
      present in the base system, add a dependency on <package
	role="port">devel/readline</package></para>
  </sect1>

  <sect1 xml:id="uses-samba">
    <title><literal>samba</literal></title>

    <para>Possible arguments: <literal>build</literal>,
      <literal>env</literal>, <literal>lib</literal>,
      <literal>run</literal></para>

    <para>Handle dependency on <application>Samba</application>.
      <literal>env</literal> will not add any dependency and only set
      up the variables.  <literal>build</literal> and
      <literal>run</literal> will add build-time and run-time
      dependency on <filename>smbd</filename>.  <literal>lib</literal>
      will add a dependency on <filename>libsmbclient.so</filename>.
      The variables that are exported are:</para>

    <variablelist>
      <varlistentry>
	<term><varname>SAMBAPORT</varname></term>
	<listitem>
	  <para>The origin of the default
	    <application>Samba</application> port.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>SAMBAINCLUDES</varname></term>
	<listitem>
	  <para>The location of the <application>Samba</application>
	    header files.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>SAMBALIBS</varname></term>
	<listitem>
	  <para>The directory where the
	    <application>Samba</application> shared libraries are
	    available.</para>
	</listitem>
      </varlistentry>
    </variablelist>
  </sect1>

  <sect1 xml:id="uses-scons">
    <title><literal>scons</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Provide support for the use of <package
	role="port">devel/scons</package>.  See <xref
	linkend="using-scons"/> for more information.</para>
  </sect1>

  <sect1 xml:id="uses-shared-mime-info">
    <title><literal>shared-mime-info</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Uses <application>update-mime-database</application> from
      <package role="port">misc/shared-mime-info</package>.  This uses
      will automatically add a post-install step in such a way that
      the port itself still can specify there own post-install step if
      needed.  It also add an <link
	linkend="plist-keywords-shared-mime-info"><literal>@shared-mime-info</literal></link>
      para to the plist.</para>
  </sect1>

  <sect1 xml:id="uses-shebangfix">
    <title><literal>shebangfix</literal></title>

    <para>Possible arguments: (none)</para>

    <para>A lot of software uses incorrect locations for script
      interpreters, most notably <filename>/usr/bin/perl</filename>
      and <filename>/bin/bash</filename>.  The shebangfix macro fixes
      shebang lines in scripts listed in
      <varname>SHEBANG_REGEX</varname>,
      <varname>SHEBANG_GLOB</varname>, or
      <varname>SHEBANG_FILES</varname>.</para>

    <variablelist>
      <varlistentry>
	<term><varname>SHEBANG_REGEX</varname></term>

	<listitem>
	  <para>Contains <emphasis>one</emphasis> extended regular
	    expressions, and is used with the
	    <literal>-iregex</literal> argument of &man.find.1;.  See
	    <xref linkend="uses-shebangfix-ex-regex"/>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>SHEBANG_GLOB</varname></term>

	<listitem>
	  <para>Contains a list of patterns used with the
	    <literal>-name</literal> argument of &man.find.1;.  See
	    <xref linkend="uses-shebangfix-ex-glob"/>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>SHEBANG_FILES</varname></term>

	<listitem>
	  <para>Contains a list of files or &man.sh.1; globs.  The
	    shebangfix macro is run from <literal>${WRKSRC}</literal>,
	    so <varname>SHEBANG_FILES</varname> can contain paths that
	    are relative to <literal>${WRKSRC}</literal>.  It can also
	    deal with absolute paths if files outside of
	    <literal>${WRKSRC}</literal> require patching.  See <xref
	      linkend="uses-shebangfix-ex-files" />.</para>
	</listitem>
      </varlistentry>
    </variablelist>

    <para>Currently
      <application>Bash</application>,
      <application>Java</application>, <application>Ksh</application>,
      <application>Lua</application>,
      <application>Perl</application>, <application>PHP</application>,
      <application>Python</application>,
      <application>Ruby</application>, <application>Tcl</application>,
      and <application>Tk</application> are supported by
      default.</para>

    <para>There are three configuration variables:</para>

    <variablelist>
      <varlistentry>
	<term><varname>SHEBANG_LANG</varname></term>

	<listitem>
	  <para>The list of supported interpreters.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname><replaceable>interp</replaceable>_CMD</varname></term>

	<listitem>
	  <para>The path to the command interpreter on &os;.  The
	    default value is
	    <literal>${LOCALBASE}/bin/<replaceable>interp</replaceable></literal>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname><replaceable>interp</replaceable>_OLD_CMD</varname></term>
	<listitem>
	  <para>The list of wrong invocations of interpreters.  These
	    are typically obsolete paths, or paths used on other
	    operating systems that are incorrect on &os;.  They
	    will be replaced by the correct path in
	    <varname><replaceable>interp</replaceable>_CMD</varname>.</para>

	  <note>
	    <para>These will <emphasis>always</emphasis> be part of
	      <varname><replaceable>interp</replaceable>_OLD_CMD</varname>:
	      <literal>"/usr/bin/env
		<replaceable>interp</replaceable>"
		/bin/<replaceable>interp</replaceable>
		/usr/bin/<replaceable>interp</replaceable>
		/usr/local/bin/<replaceable>interp</replaceable></literal>.</para>
	  </note>

	  <tip>
	    <para><varname><replaceable>interp</replaceable>_OLD_CMD</varname>
	      contain multiple values.  Any entry with spaces must be
	      quoted.  See <xref
		linkend="uses-shebangfix-ex-ksh"/>.</para>
	  </tip>
	</listitem>
      </varlistentry>
    </variablelist>

    <important>
      <para>The fixing of shebangs is done during the
	<buildtarget>patch</buildtarget> phase.  If scripts are
	created with incorrect shebangs during the
	<buildtarget>build</buildtarget> phase, the build process (for
	example, the <filename>configure</filename> script, or the
	<filename>Makefiles</filename>) must be patched or given the
	right path (for example, with
	<varname>CONFIGURE_ENV</varname>,
	<varname>CONFIGURE_ARGS</varname>,
	<varname>MAKE_ENV</varname>, or <varname>MAKE_ARGS</varname>)
	to generate the right shebangs.</para>

      <para>Correct paths for supported interpreters
	are available in
	<literal><replaceable>interp</replaceable>_CMD</literal>.</para>
    </important>

    <tip>
      <para>When used with <link
	  linkend="uses-python"><literal>USES=python</literal></link>,
	and the aim is only to fix the shebangs but a dependency on
	<application>Python</application> itself is not wanted, use
	<literal>PYTHON_NO_DEPENDS=yes</literal>.</para>
    </tip>

    <example xml:id="uses-shebangfix-ex-lua">
      <title>Adding Another Interpreter to
	<literal>USES=shebangfix</literal></title>

      <para>To add another interpreter, set
	<varname>SHEBANG_LANG</varname>.  For example:</para>

      <programlisting>SHEBANG_LANG=	lua</programlisting>
    </example>

    <example xml:id="uses-shebangfix-ex-ksh">
      <title>Specifying all the Paths When Adding an Interpreter to
	<literal>USES=shebangfix</literal></title>

      <para>If it was not already defined, and there were no default
	values for
	<varname><replaceable>interp</replaceable>_OLD_CMD</varname>
	and <varname><replaceable>interp</replaceable>_CMD</varname>
	the <application>Ksh</application> entry could be defined
	as:</para>

      <programlisting>SHEBANG_LANG=	ksh
ksh_OLD_CMD=	"/usr/bin/env ksh" /bin/ksh /usr/bin/ksh
ksh_CMD=	${LOCALBASE}/bin/ksh</programlisting>
    </example>

    <example xml:id="uses-shebangfix-ex-strange">
      <title>Adding a Strange Location for an Interpreter</title>

      <para>Some software uses strange locations for an interpreter.
	For example, an application might expect
	<application>Python</application> to be located in
	<filename>/opt/bin/python2.7</filename>.  The strange path to
	be replaced can be declared in the port
	<filename>Makefile</filename>:</para>

      <programlisting>python_OLD_CMD=	/opt/bin/python2.7</programlisting>
    </example>

    <example xml:id="uses-shebangfix-ex-regex">
      <title><literal>USES=shebangfix</literal> with
	<varname>SHEBANG_REGEX</varname></title>

      <para>To fix all the files in
	<literal>${WRKSRC}/scripts</literal> ending in
	<filename>.pl</filename>, <filename>.sh</filename>, or
	<filename>.cgi</filename> do:</para>

      <programlisting>USES=	shebangfix
SHEBANG_REGEX=	./scripts/.*\.(sh|pl|cgi)</programlisting>

      <note>
	<para><varname>SHEBANG_REGEX</varname> is used by running
	  <command>find -E</command>, which uses modern regular
	  expressions also known as extended regular expressions.  See
	  &man.re.format.7; for more information.</para>
      </note>
    </example>

    <example xml:id="uses-shebangfix-ex-glob">
      <title><literal>USES=shebangfix</literal> with
	<varname>SHEBANG_GLOB</varname></title>

      <para>To fix all the files in <literal>${WRKSRC}</literal>
	ending in <filename>.pl</filename> or
	<filename>.sh</filename>, do:</para>

      <programlisting>USES=	shebangfix
SHEBANG_GLOB=	*.sh *.pl</programlisting>
    </example>

    <example xml:id="uses-shebangfix-ex-files">
      <title><literal>USES=shebangfix</literal> with
	<varname>SHEBANG_FILES</varname></title>

      <para>To fix the files <filename>script/foobar.pl</filename> and
	<filename>script/*.sh</filename> in
	<literal>${WRKSRC}</literal>, do:</para>

      <programlisting>USES=	shebangfix
SHEBANG_FILES=	scripts/foobar.pl scripts/*.sh</programlisting>
    </example>
  </sect1>

  <sect1 xml:id="uses-sqlite">
    <title><literal>sqlite</literal></title>

    <para>Possible arguments: (none), <literal>2</literal>,
      <literal>3</literal></para>

    <para>Add a dependency on <application>SQLite</application>.  The
      default version used is 3, but version 2 is also possible using
      the <literal>:2</literal> modifier.</para>
  </sect1>

  <sect1 xml:id="uses-ssl">
    <title><literal>ssl</literal></title>

    <para>Possible arguments: (none), <literal>build</literal>,
      <literal>run</literal></para>

    <para>Provide support for <application>OpenSSL</application>.
      A build- or run-time only dependency can be specified using
      <literal>build</literal> or <literal>run</literal>.
      These variables are available for the port's use, they are also
      added to <varname>MAKE_ENV</varname>:</para>

    <variablelist>
      <varlistentry>
	<term><varname>OPENSSLBASE</varname></term>

	<listitem>
	  <para>Path to the OpenSSL installation base.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>OPENSSLDIR</varname></term>

	<listitem>
	  <para>Path to <application>OpenSSL</application>'s
	    configuration files.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>OPENSSLLIB</varname></term>

	<listitem>
	  <para>Path to the <application>OpenSSL</application>
	    libraries.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>OPENSSLINC</varname></term>

	<listitem>
	  <para>Path to the <application>OpenSSL</application>
	    includes.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><varname>OPENSSLRPATH</varname></term>

	<listitem>
	  <para>If defined, the path the linker needs to use to find
	    the <application>OpenSSL</application> libraries.</para>
	</listitem>
      </varlistentry>
    </variablelist>

    <tip>
      <para>If a port does not build with an
	<application>OpenSSL</application> flavor, set the
	<varname>BROKEN_SSL</varname> variable, and possibly the
	<varname>BROKEN_SSL_REASON_<replaceable>flavor</replaceable></varname>:</para>

      <programlisting>BROKEN_SSL=	libressl
BROKEN_SSL_REASON_libressl=	needs features only available in OpenSSL</programlisting>
    </tip>
  </sect1>

  <sect1 xml:id="uses-tar">
    <title><literal>tar</literal></title>

    <para>Possible arguments: (none), <literal>Z</literal>,
      <literal>bz2</literal>, <literal>bzip2</literal>,
      <literal>lzma</literal>, <literal>tbz</literal>,
      <literal>tbz2</literal>,
      <literal>tgz</literal>, <literal>txz</literal>,
      <literal>xz</literal></para>

    <para>Set <varname>EXTRACT_SUFX</varname> to
      <literal>.tar</literal>, <literal>.tar.Z</literal>,
      <literal>.tar.bz2</literal>, <literal>.tar.bz2</literal>,
      <literal>.tar.lzma</literal>, <literal>.tbz</literal>,
      <literal>.tbz2</literal>,
      <literal>.tgz</literal>, <literal>.txz</literal> or
      <literal>.tar.xz</literal> respectively.</para>
  </sect1>

  <sect1 xml:id="uses-tcl">
    <title><literal>tcl</literal></title>

    <para>Possible arguments: <replaceable>version</replaceable>,
      <literal>wrapper</literal>, <literal>build</literal>,
      <literal>run</literal>, <literal>tea</literal></para>

    <para>Add a dependency on <application>Tcl</application>.  A
      specific version can be requested using
      <replaceable>version</replaceable>.  The version can be empty,
      one or more exact version numbers (currently
      <literal>84</literal>, <literal>85</literal>, or
      <literal>86</literal>), or a minimal version number (currently
      <literal>84+</literal>, <literal>85+</literal> or
      <literal>86+</literal>).  To only request a non version specific
      wrapper, use <literal>wrapper</literal>.  A build- or run-time
      only dependency can be specified using <literal>build</literal>
      or <literal>run</literal>.  To build the port using the
      <application>Tcl Extension Architecture</application>, use
      <literal>tea</literal>.  After including
      <filename>bsd.port.pre.mk</filename> the port can inspect the
      results using these variables:</para>

    <itemizedlist>
      <listitem>
	<para><varname>TCL_VER</varname>: chosen major.minor version
	  of <application>Tcl</application></para>
      </listitem>

      <listitem>
	<para><varname>TCLSH</varname>: full path of the
	  <application>Tcl</application> interpreter</para>
      </listitem>

      <listitem>
	<para><varname>TCL_LIBDIR</varname>: path of the
	  <application>Tcl</application> libraries</para>
      </listitem>

      <listitem>
	<para><varname>TCL_INCLUDEDIR</varname>: path of the
	  <application>Tcl</application> C header files</para>
      </listitem>

      <listitem>
	<para><varname>TK_VER</varname>: chosen major.minor version of
	  <application>Tk</application></para>
      </listitem>

      <listitem>
	<para><varname>WISH</varname>: full path of the
	  <application>Tk</application> interpreter</para>
      </listitem>

      <listitem>
	<para><varname>TK_LIBDIR</varname>: path of the
	  <application>Tk</application> libraries</para>
      </listitem>

      <listitem>
	<para><varname>TK_INCLUDEDIR</varname>: path of the
	  <application>Tk</application> C header files</para>
      </listitem>
    </itemizedlist>
  </sect1>

  <sect1 xml:id="uses-terminfo">
    <title><literal>terminfo</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Adds <link
	linkend="plist-keywords-terminfo"><literal>@terminfo</literal></link>
      to the <filename>plist</filename>.  Use when the port installs
      <filename><replaceable>*</replaceable>.terminfo</filename> files
      in <filename>${PREFIX}/share/misc</filename>.</para>
  </sect1>

  <sect1 xml:id="uses-tk">
    <title><literal>tk</literal></title>

    <para>Same as arguments for <literal>tcl</literal></para>

    <para>Small wrapper when using both <application>Tcl</application>
      and <application>Tk</application>.  The same variables are
      returned as when using <application>Tcl</application>.</para>
  </sect1>

  <sect1 xml:id="uses-uidfix">
    <title><literal>uidfix</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Changes some default behavior (mostly variables) of
      the build system to allow installing this port as a normal
      user.  Try this in the port before using <link
	linkend="uses-fakeroot">USES=fakeroot</link> or
      patching.</para>
  </sect1>

  <sect1 xml:id="uses-uniquefiles">
    <title><literal>uniquefiles</literal></title>

    <para>Possible arguments: (none), <literal>dirs</literal></para>

    <para>Make files or directories 'unique', by adding a prefix or
      suffix.  If the <literal>dirs</literal> argument is used, the
      port needs a prefix (and only a prefix) based on
      <varname>UNIQUE_PREFIX</varname> for standard directories
      <varname>DOCSDIR</varname>, <varname>EXAMPLESDIR</varname>,
      <varname>DATADIR</varname>, <varname>WWWDIR</varname>,
      <varname>ETCDIR</varname>.  These variables are available for
      ports:</para>

    <itemizedlist>
      <listitem>
	<para><varname>UNIQUE_PREFIX</varname>: The prefix to be used
	  for directories and files.  Default:
	  <varname>${PKGNAMEPREFIX}</varname>.</para>
      </listitem>

      <listitem>
	<para><varname>UNIQUE_PREFIX_FILES</varname>: A list of files
	  that need to be prefixed.  Default: empty.</para>
      </listitem>

      <listitem>
	<para><varname>UNIQUE_SUFFIX</varname>: The suffix to be used
	  for files.  Default:
	  <varname>${PKGNAMESUFFIX}</varname>.</para>
      </listitem>

      <listitem>
	<para><varname>UNIQUE_SUFFIX_FILES</varname>: A list of files
	  that need to be suffixed.  Default: empty.</para>
      </listitem>
    </itemizedlist>
  </sect1>

  <sect1 xml:id="uses-varnish">
    <title><literal>varnish</literal></title>

    <para>Possible arguments: <literal>4</literal>,
      <literal>5</literal></para>

    <para>Handle dependencies on <application>Varnish
	Cache</application>.  <literal>4</literal> will add a
      dependency on <package role="port">www/varnish4</package>.
      <literal>5</literal> will add a dependency on <package
	role="port">www/varnish5</package>.</para>
  </sect1>

  <sect1 xml:id="uses-webplugin">
    <title><literal>webplugin</literal></title>

    <para>Possible arguments: (none), <literal>ARGS</literal></para>

    <para>Automatically create and remove symbolic links for each
      application that supports the webplugin framework.
      <literal>ARGS</literal> can be one of:</para>

    <itemizedlist>
      <listitem>
	<para><literal>gecko</literal>: support plug-ins based on
	  Gecko</para>
      </listitem>

      <listitem>
	<para><literal>native</literal>: support plug-ins for Gecko,
	  Opera, and WebKit-GTK</para>
      </listitem>

      <listitem>
	<para><literal>linux</literal>: support Linux plug-ins</para>
      </listitem>

      <listitem>
	<para><literal>all</literal> (default, implicit): support all
	  plug-in types</para>
      </listitem>

      <listitem>
	<para>(individual entries): support only the browsers
	  listed</para>
      </listitem>
    </itemizedlist>

    <para>These variables can be adjusted:</para>

    <itemizedlist>
      <listitem>
	<para><varname>WEBPLUGIN_FILES</varname>: No default, must be
	  set manually.  The plug-in files to install.</para>
      </listitem>

      <listitem>
	<para><varname>WEBPLUGIN_DIR</varname>: The directory to
	  install the plug-in files to, default
	  <filename><replaceable>PREFIX</replaceable>/lib/browser_plugins/<replaceable>WEBPLUGIN_NAME</replaceable></filename>.
	  Set this if the port installs plug-in files outside of the
	  default directory to prevent broken symbolic links.</para>
      </listitem>

      <listitem>
	<para><varname>WEBPLUGIN_NAME</varname>: The final directory
	  to install the plug-in files into, default
	  <varname>PKGBASE</varname>.</para>
      </listitem>
    </itemizedlist>
  </sect1>

  <sect1 xml:id="uses-xfce">
    <title><literal>xfce</literal></title>

    <para>Possible arguments: (none), <literal>gtk3</literal></para>

    <para>Provide support for <application>Xfce</application> related
      ports.  See <xref linkend="using-xfce"/> for details.</para>

    <para>The <literal>gtk3</literal> argument specifies that the port
      requires <application>GTK3</application> support.  It adds
      additional features provided by some core components, for
      example, <package role="port">x11/libxfce4menu</package> and
      <package role="port">x11-wm/xfce4-panel</package>.</para>
  </sect1>

  <sect1 xml:id="uses-zip">
    <title><literal>zip</literal></title>

    <para>Possible arguments: (none),
      <literal>infozip</literal></para>

    <para>Indicates that the distribution files use the ZIP
      compression algorithm.  For files using the InfoZip algorithm
      the <literal>infozip</literal> argument must be passed to set
      the appropriate dependencies.</para>
  </sect1>

  <sect1 xml:id="uses-zope">
    <title><literal>zope</literal></title>

    <para>Possible arguments: (none)</para>

    <para>Uses
      <filename>www/zope<replaceable>XY</replaceable></filename>.
      Mostly used
      for building <application>zope</application> related ports.
      <varname>ZOPE_VERSION</varname> can be used by a port to
      indicate that a specific version of
      <application>zope</application> shall be used.</para>
  </sect1>
</chapter>