章 15. Using USES Macros

內容目錄
15.1. An Introduction to USES
15.2. ada
15.3. autoreconf
15.4. blaslapack
15.5. bison
15.6. charsetfix
15.7. cmake
15.8. compiler
15.9. cpe
15.10. cran
15.11. desktop-file-utils
15.12. desthack
15.13. display
15.14. dos2unix
15.15. drupal
15.16. execinfo
15.17. fakeroot
15.18. fam
15.19. fmake
15.20. fonts
15.21. fortran
15.22. fuse
15.23. gecko
15.24. gettext
15.25. gettext-runtime
15.26. gettext-tools
15.27. ghostscript
15.28. gmake
15.29. gperf
15.30. gssapi
15.31. horde
15.32. iconv
15.33. imake
15.34. kmod
15.35. lha
15.36. libarchive
15.37. libedit
15.38. libtool
15.39. localbase
15.40. lua
15.41. makeinfo
15.42. makeself
15.43. metaport
15.44. mono
15.45. motif
15.46. ncurses
15.47. ninja
15.48. objc
15.49. openal
15.50. pathfix
15.51. pear
15.52. perl5
15.53. pgsql
15.54. pkgconfig
15.55. pure
15.56. python
15.57. qmail
15.58. qmake
15.59. readline
15.60. scons
15.61. shared-mime-info
15.62. shebangfix
15.63. tar
15.64. tcl
15.65. terminfo
15.66. tk
15.67. twisted
15.68. uidfix
15.69. uniquefiles
15.70. webplugin
15.71. xfce
15.72. zip
15.73. zope

15.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 (,).

範例 15.1. Using Multiple Values
USES=	bison perl

範例 15.2. Adding an Argument
USES=	gmake:lite

範例 15.3. Adding Multiple Arguments
USES=	drupal:7,theme

範例 15.4. Mixing it All Together
USES=	pgsql:9.3+ cpe python:2.7,build

本文及其他文件,可由此下載: ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/

若有 FreeBSD 方面疑問,請先閱讀 FreeBSD 相關文件,如不能解決的話,再洽詢 <questions@FreeBSD.org>。

關於本文件的問題,請洽詢 <doc@FreeBSD.org>。