mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

152 lines
7.8 KiB

  1. Variables used in the package build scripts
  2. ===========================================
  3. config ........ Name of the active configuration ($base/config/$config/..)
  4. rockver ....... ROCK Linux Version (including rel. date for snapshots)
  5. pkg ........... base name part of the package we are building
  6. xpkg .......... derived name part of the package we are building
  7. if a package is not pkgfork'd, pkg == xpkg
  8. ver ........... package Version (from *.desc - until first whitespace)
  9. extraver ...... version text after the first whitespace, defaults to "0"
  10. desc_[A-Z] .... Data from the *.desc file
  11. id ............ unique ID for this Build-Pkg invocation
  12. arch .......... architecture (subdir name in architecture)
  13. target ........ target distribution (subdir name in targets)
  14. stagelevel .... stagelevel (0-1 = crossbuild, 2-8 = native, 9 = rebuild)
  15. crossnative ... has the value 'cross' or 'native'
  16. archprefix .... prefix for binutils and compiler binaries (for cross-building)
  17. arch_sizeof_long_long .... arch setting from architecture/*/archtest.out
  18. arch_sizeof_int .......... arch setting from architecture/*/archtest.out
  19. arch_machine ............. arch setting from architecture/*/archtest.out
  20. arch_sizeof_char_p ....... arch setting from architecture/*/archtest.out
  21. arch_sizeof_long ......... arch setting from architecture/*/archtest.out
  22. arch_bigendian ........... arch setting from architecture/*/archtest.out
  23. arch_sizeof_short ........ arch setting from architecture/*/archtest.out
  24. arch_target .............. arch setting from architecture/*/archtest.out
  25. arch_build ............... like 'arch_target' - but for the build host
  26. archdir ....... directory containing the package tar files (download/..)
  27. confdir ....... directory containing the package build config (package/..)
  28. targetdir ..... directory containing the target config (target/...)
  29. builddir ...... directory in which the package is build (src.$id)
  30. base .......... ROCK Linux sources base directory (/usr/src/rock-src)
  31. xroot ......... real root ($base/build/...)
  32. root .......... root directory (equals $xroot, empty in chroot mode)
  33. build_logs .... Big build log file ...... (Build-Target only)
  34. build_pkgs .... Package files go here .... (Build-Target only)
  35. build_root .... Chroot dir name ......... (Build-Target only)
  36. build_rock .... ROCK build system data .. (Build-Target only)
  37. prefix_auto ... '1' = you may auto-detect a better value for $prefix in *.conf
  38. prefix ........ install prefix (usually '/usr' or '/opt/...')
  39. bindir ........ where the binaries (programs) should be installed
  40. sbindir ....... where the system binaries should be installed
  41. libdir ........ where the library files should be installed
  42. sysconfdir .... where the configuration should be installed (i.e. etc)
  43. localstatedir . where the variable data should be installed (i.e. var)
  44. datadir ....... where the arch-indep. data should be installed (i.e. share)
  45. docdir ........ where the documentation should be installed
  46. mandir ........ where the info man pages should be installed
  47. infodir ....... where the info files should be installed
  48. includedir .... where the header files should be installed
  49. autoextract ... '0' = skip automatic untar
  50. srctar ........ filename of source tar file ('auto' = autodetect)
  51. srcdir ........ directory in source tar file ('auto' = autodetect)
  52. xsrctar ....... filename of source tar file after 'auto' has been processed
  53. xsrcdir ....... directory in source tar file after 'auto' has been processed
  54. taropt ........ tar options for extracting
  55. autopatch ..... '0' = skip automatic patching
  56. patchfiles .... list of patchfiles found in $confdir
  57. patchopt ...... options passed to the patch program
  58. chownsrcdir ... '0' = don't make a chown to root after extracting the $srctar
  59. nocvsinsrcdir . '0' = don't remove CVS and .svn directories in $srcdir
  60. createprefix .. '0' = skip creation for directory skeleton for $prefix
  61. createdocs .... '0' = skip automatic copying of documentation files
  62. autoso2a ...... '1' = automatically create *.a files for all *.so files
  63. forcefpic ..... set to '0' to disable the force -fPIC mechanism
  64. desktopfiles .. filenames of the desktop files to install ($confdir/*.desktop)
  65. set to an empty string to deactivate desktop file installation
  66. desktopauto ... '0' = disable automatic changes to .desktop files
  67. flistdel ...... regex describing files which shouldn't go to package db
  68. flistrfilter .. regex describing which lines to ignore in flist rlog
  69. flistroot ..... list of top-level directories which should be used for flist
  70. check_shared ...... Check for files which are shared with other packages
  71. check_usrlocal .... Check for files which are installed in usr/local
  72. check_badfiles .... Check for files which are registered 'bad files'
  73. autogen ....... set to '1' if you want to run the autogen script
  74. automakever ... automake version prefix (e.g. "-1.7") for $autogen
  75. runconf ....... set to '0' if you want to skip running configure
  76. confopt ....... options for GNU autoconf './configure'
  77. extraconfopt .. options which should be appended to $confopt by set_confopt()
  78. configprefix .. variable declarations only for GNU autoconf './configure'
  79. configscript .. script file name of the GNU autoconf configure script
  80. configexec .... command for executing $configscript (default=bash)
  81. runcmake ...... set to '0' if you want to skip running 'cmake .'
  82. cmakesrcdir ... set to path of srcdir when requesting an out-of-source build
  83. cmakedefs ..... options passed to cmake
  84. runxmkmf ...... set to '0' if you want to skip running 'xmkmf'
  85. runmkpl ....... set to '0' if you want to skip running 'perl Makefile.PL'
  86. runpysetup .... set to '0' if you want to skip running 'python setup.py'
  87. pyconfopt ..... options for 'setup.py' - Python setup scripts
  88. makeopt ....... options for 'make' (default = ' ')
  89. makeinstopt ... options for 'make install' (default = 'install')
  90. custmain ...... command to execute instead of 'configure, make, make install'
  91. mainfunction .. alternate main function instead of build_this_package()
  92. prepare ....... command to execute before main build-block
  93. prepatch ...... command to execute before automatic patching
  94. postpatch ..... command to execute after automatic patching
  95. preconf ....... command to execute before running configure
  96. premake ....... command to execute before running 'make'
  97. inmake ........ command to execute between 'make' and 'make install'
  98. postmake ...... command to execute after running 'make install'
  99. postflist ..... command to execute after creating the flist
  100. postinstall ... command to execute after finishing all the standard stuff
  101. finish ........ command to execute after everything else outside build-block
  102. BUILDCC ....... C compiler for helper apps (usually that's just 'cc')
  103. BUILD_CC ...... C compiler for helper apps (must be the same as $BUILDCC)
  104. HOSTCC ........ C compiler for helper apps (must be the same as $BUILDCC)
  105. HOST_CC ....... C compiler for helper apps (must be the same as $BUILDCC)
  106. MAKE .......... make executable name (including -j option according to Config)
  107. CC ............ C compiler executable name for target architecture
  108. CXX ........... C++ compiler executable name for target architecture
  109. STRIP ......... strip executable name for target architecture
  110. LD ............ ld executable name for target architecture
  111. AR ............ ar executable name for target architecture
  112. RANLIB ........ ranlib executable name for target architecture
  113. AS ............ as executable name for target architecture
  114. GASP .......... gasp executable name for target architecture
  115. NM ............ nm executable name for target architecture
  116. CC_WRAPPER_* ...... configuration for C compiler wrapper
  117. CXX_WRAPPER_* ..... configuration for C++ compiler wrapper
  118. KCC_WRAPPER_* ..... configuration for Kernel C compiler wrapper
  119. F77_WRAPPER_* ..... configuration for Fortran 77 compiler wrapper
  120. STRIP_WRAPPER_* ... configuration for strip wrapper
  121. ROCK_BUILD_TARGET ... set to '1' in Build-Target
  122. ROCKCFG_* ........... configuration from 'Config' file