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.

131 lines
6.8 KiB

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