Chapter 17. Using USES Macros

Table of Contents
17.1. An Introduction to USES
17.2. 7z
17.3. ada
17.4. autoreconf
17.5. blaslapack
17.6. bdb
17.7. bison
17.8. cargo
17.9. charsetfix
17.10. cmake
17.11. compiler
17.12. cpe
17.13. cran
17.14. desktop-file-utils
17.15. desthack
17.16. display
17.17. dos2unix
17.18. drupal
17.19. fakeroot
17.20. fam
17.21. firebird
17.22. fonts
17.23. fortran
17.24. fuse
17.25. gecko
17.26. gem
17.27. gettext
17.28. gettext-runtime
17.29. gettext-tools
17.30. ghostscript
17.31. gl
17.32. gmake
17.33. gnome
17.34. go
17.35. gperf
17.36. grantlee
17.37. groff
17.38. gssapi
17.39. horde
17.40. iconv
17.41. imake
17.42. kde
17.43. kmod
17.44. lha
17.45. libarchive
17.46. libedit
17.47. libtool
17.48. linux
17.49. localbase
17.50. lua
17.51. lxqt
17.52. makeinfo
17.53. makeself
17.54. mate
17.55. meson
17.56. metaport
17.57. mysql
17.58. mono
17.59. motif
17.60. ncurses
17.61. ninja
17.62. objc
17.63. openal
17.64. pathfix
17.65. pear
17.66. perl5
17.67. pgsql
17.68. php
17.69. pkgconfig
17.70. pure
17.71. pyqt
17.72. python
17.73. qmail
17.74. qmake
17.75. readline
17.76. samba
17.77. scons
17.78. shared-mime-info
17.79. shebangfix
17.80. sqlite
17.81. ssl
17.82. tar
17.83. tcl
17.84. terminfo
17.85. tk
17.86. uidfix
17.87. uniquefiles
17.88. varnish
17.89. webplugin
17.90. xfce
17.91. zip
17.92. zope

17.1. An Introduction to USES

USES 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..

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

Example 17.1. Using Multiple Values
USES=	bison perl

Example 17.2. Adding an Argument
USES=	gmake:lite

Example 17.3. Adding Multiple Arguments
USES=	drupal:7,theme

Example 17.4. Mixing it All Together
USES=	pgsql:9.3+ cpe python:2.7,build

All FreeBSD documents are available for download at https://download.freebsd.org/ftp/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.