freebsd.rst 5.0 KB

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