1
0

freebsd.rst 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. CPack FreeBSD Generator
  2. -----------------------
  3. .. versionadded:: 3.10
  4. The built in (binary) CPack FreeBSD (pkg) generator (Unix only)
  5. Variables affecting the CPack FreeBSD (pkg) generator
  6. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  7. - .. versionadded:: 3.18
  8. :variable:`CPACK_ARCHIVE_THREADS`
  9. Variables specific to CPack FreeBSD (pkg) generator
  10. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  11. The CPack FreeBSD generator may be used to create pkg(8) packages -- these may
  12. be used on FreeBSD, DragonflyBSD, NetBSD, OpenBSD, but also on Linux or OSX,
  13. depending on the installed package-management tools -- using :module:`CPack`.
  14. The CPack FreeBSD generator is a :module:`CPack` generator and uses the
  15. ``CPACK_XXX`` variables used by :module:`CPack`. It tries to re-use packaging
  16. information that may already be specified for Debian packages for the
  17. :cpack_gen:`CPack DEB Generator`. It also tries to re-use RPM packaging
  18. information when Debian does not specify.
  19. The CPack FreeBSD generator should work on any host with libpkg installed. The
  20. packages it produces are specific to the host architecture and ABI.
  21. The CPack FreeBSD generator sets package-metadata through
  22. ``CPACK_FREEBSD_XXX`` variables. The CPack FreeBSD generator, unlike the
  23. CPack Deb generator, does not specially support componentized packages; a
  24. single package is created from all the software artifacts created through
  25. CMake.
  26. All of the variables can be set specifically for FreeBSD packaging in
  27. the CPackConfig file or in CMakeLists.txt, but most of them have defaults
  28. that use general settings (e.g. CMAKE_PROJECT_NAME) or Debian-specific
  29. variables when those make sense (e.g. the homepage of an upstream project
  30. is usually unchanged by the flavor of packaging). When there is no Debian
  31. information to fall back on, but the RPM packaging has it, fall back to
  32. the RPM information (e.g. package license).
  33. .. variable:: CPACK_FREEBSD_PACKAGE_NAME
  34. Sets the package name (in the package manifest, but also affects the
  35. output filename).
  36. * Mandatory: YES
  37. * Default:
  38. - :variable:`CPACK_PACKAGE_NAME` (this is always set by CPack itself,
  39. based on CMAKE_PROJECT_NAME).
  40. .. variable:: CPACK_FREEBSD_PACKAGE_COMMENT
  41. Sets the package comment. This is the short description displayed by
  42. pkg(8) in standard "pkg info" output.
  43. * Mandatory: YES
  44. * Default:
  45. - :variable:`CPACK_PACKAGE_DESCRIPTION_SUMMARY` (this is always set
  46. by CPack itself, if nothing else sets it explicitly).
  47. - :variable:`PROJECT_DESCRIPTION` (this can be set with the DESCRIPTION
  48. parameter for :command:`project`).
  49. .. variable:: CPACK_FREEBSD_PACKAGE_DESCRIPTION
  50. Sets the package description. This is the long description of the package,
  51. given by "pkg info" with a specific package as argument.
  52. * Mandatory: YES
  53. * Default:
  54. - :variable:`CPACK_DEBIAN_PACKAGE_DESCRIPTION` (this may be set already
  55. for Debian packaging, so it is used as a fallback).
  56. .. variable:: CPACK_FREEBSD_PACKAGE_WWW
  57. The URL of the web site for this package, preferably (when applicable) the
  58. site from which the original source can be obtained and any additional
  59. upstream documentation or information may be found.
  60. * Mandatory: YES
  61. * Default:
  62. - :variable:`CMAKE_PROJECT_HOMEPAGE_URL`, or if that is not set,
  63. :variable:`CPACK_DEBIAN_PACKAGE_HOMEPAGE` (this may be set already
  64. for Debian packaging, so it is used as a fallback).
  65. .. versionadded:: 3.12
  66. The ``CMAKE_PROJECT_HOMEPAGE_URL`` variable.
  67. .. variable:: CPACK_FREEBSD_PACKAGE_LICENSE
  68. The license, or licenses, which apply to this software package. This must
  69. be one or more license-identifiers that pkg recognizes as acceptable license
  70. identifiers (e.g. "GPLv2").
  71. * Mandatory: YES
  72. * Default:
  73. - :variable:`CPACK_RPM_PACKAGE_LICENSE`
  74. .. variable:: CPACK_FREEBSD_PACKAGE_LICENSE_LOGIC
  75. This variable is only of importance if there is more than one license.
  76. The default is "single", which is only applicable to a single license.
  77. Other acceptable values are determined by pkg -- those are "dual" or "multi" --
  78. meaning choice (OR) or simultaneous (AND) application of the licenses.
  79. * Mandatory: NO
  80. * Default: single
  81. .. variable:: CPACK_FREEBSD_PACKAGE_MAINTAINER
  82. The FreeBSD maintainer (e.g. [email protected]) of this package.
  83. * Mandatory: YES
  84. * Default: none
  85. .. variable:: CPACK_FREEBSD_PACKAGE_ORIGIN
  86. The origin (ports label) of this package; for packages built by CPack
  87. outside of the ports system this is of less importance. The default
  88. puts the package somewhere under misc/, as a stopgap.
  89. * Mandatory: YES
  90. * Default: misc/<package name>
  91. .. variable:: CPACK_FREEBSD_PACKAGE_CATEGORIES
  92. The ports categories where this package lives (if it were to be built
  93. from ports). If none is set a single category is determined based on
  94. the package origin.
  95. * Mandatory: YES
  96. * Default: derived from ORIGIN
  97. .. variable:: CPACK_FREEBSD_PACKAGE_DEPS
  98. A list of package origins that should be added as package dependencies.
  99. These are in the form <category>/<packagename>, e.g. x11/libkonq.
  100. No version information needs to be provided (this is not included
  101. in the manifest).
  102. * Mandatory: NO
  103. * Default: empty