makepkg.conf 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #!/hint/bash
  2. #
  3. # /etc/makepkg.conf
  4. #
  5. MAKEFLAGS="-j4"
  6. #########################################################################
  7. # SOURCE ACQUISITION
  8. #########################################################################
  9. #
  10. #-- The download utilities that makepkg should use to acquire sources
  11. # Format: 'protocol::agent'
  12. DLAGENTS=('file::/usr/bin/curl -gqC - -o %o %u'
  13. 'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 5 --retry-delay 3 -o %o %u'
  14. 'http::/usr/bin/curl -gqb "" -fLC - --retry 5 --retry-delay 3 -o %o %u'
  15. 'https::/usr/bin/curl -gqb "" -fLC - --retry 5 --retry-delay 3 -o %o %u'
  16. 'rsync::/usr/bin/rsync --no-motd -z %u %o'
  17. 'scp::/usr/bin/scp -C %u %o')
  18. # Other common tools:
  19. # /usr/bin/snarf
  20. # /usr/bin/lftpget -c
  21. # /usr/bin/wget
  22. #-- The package required by makepkg to download VCS sources
  23. # Format: 'protocol::package'
  24. VCSCLIENTS=('bzr::bzr'
  25. 'fossil::fossil'
  26. 'git::git'
  27. 'hg::mercurial'
  28. 'svn::subversion')
  29. #########################################################################
  30. # ARCHITECTURE, COMPILE FLAGS
  31. #########################################################################
  32. #
  33. CARCH="x86_64"
  34. CHOST="x86_64-pc-linux-gnu"
  35. #-- Compiler and Linker Flags
  36. safe_flags="-Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS"
  37. safe_flags+=" -fcf-protection -fno-plt"
  38. safe_flags+=" -fstack-clash-protection -Wformat"
  39. safe_flags+=" -Werror=format-security"
  40. generic_flags="-pipe -fno-plt -fPIC -fopenmp"
  41. generic_flags+=" -march=native"
  42. generic_flags+=" -mtune=native ${safe_flags}"
  43. opt_flags="${generic_flags} -O3"
  44. generic_flags="${generic_flags} -O2"
  45. COPTFLAGS="${opt_flags}"
  46. CXXOPTFLAGS="$COPTFLAGS"
  47. FOPTFLAGS="$COPTFLAGS"
  48. CPPFLAGS="$generic_flags"
  49. CXXFLAGS="$CPPFLAGS"
  50. CFLAGS="$generic_flags"
  51. FFLAGS="$generic_flags"
  52. FCFLAGS="$generic_flags"
  53. F90FLAGS="$generic_flags"
  54. F77FLAGS="$generic_flags"
  55. LANG=C
  56. OMPI_MCA_opal_cuda_support=0
  57. OMPI_MCA_mpi_oversubscribe=0
  58. BUILDENV=(!distcc color !ccache check !sign)
  59. OPTIONS=(strip docs !libtool !staticlibs !emptydirs zipman purge !debug !lto)
  60. INTEGRITY_CHECK=(sha512)
  61. STRIP_BINARIES="--strip-all"
  62. STRIP_SHARED="--strip-unneeded"
  63. STRIP_STATIC="--strip-debug"
  64. MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
  65. DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
  66. PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
  67. DBGSRCDIR="/usr/src/debug"
  68. #########################################################################
  69. # COMPRESSION DEFAULTS
  70. #########################################################################
  71. #
  72. COMPRESSGZ=(gzip -c -f -n)
  73. COMPRESSBZ2=(bzip2 -c -f)
  74. COMPRESSXZ=(xz -c -z --threads=4 -)
  75. COMPRESSZST=(zstd -T4 -c -z -q -)
  76. COMPRESSLRZ=(lrzip -q)
  77. COMPRESSLZO=(lzop -q)
  78. COMPRESSZ=(compress -c -f)
  79. COMPRESSLZ4=(lz4 -q)
  80. COMPRESSLZ=(lzip -c -f)
  81. #########################################################################
  82. # EXTENSION DEFAULTS
  83. #########################################################################
  84. PKGEXT='.pkg.tar.xz'
  85. SRCEXT='.src.tar.gz'