123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- #!/hint/bash
- #
- # /etc/makepkg.conf
- #
- MAKEFLAGS="-j4"
- #########################################################################
- # SOURCE ACQUISITION
- #########################################################################
- #
- #-- The download utilities that makepkg should use to acquire sources
- # Format: 'protocol::agent'
- DLAGENTS=('file::/usr/bin/curl -gqC - -o %o %u'
- 'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 5 --retry-delay 3 -o %o %u'
- 'http::/usr/bin/curl -gqb "" -fLC - --retry 5 --retry-delay 3 -o %o %u'
- 'https::/usr/bin/curl -gqb "" -fLC - --retry 5 --retry-delay 3 -o %o %u'
- 'rsync::/usr/bin/rsync --no-motd -z %u %o'
- 'scp::/usr/bin/scp -C %u %o')
- # Other common tools:
- # /usr/bin/snarf
- # /usr/bin/lftpget -c
- # /usr/bin/wget
- #-- The package required by makepkg to download VCS sources
- # Format: 'protocol::package'
- VCSCLIENTS=('bzr::bzr'
- 'fossil::fossil'
- 'git::git'
- 'hg::mercurial'
- 'svn::subversion')
- #########################################################################
- # ARCHITECTURE, COMPILE FLAGS
- #########################################################################
- #
- CARCH="x86_64"
- CHOST="x86_64-pc-linux-gnu"
- #-- Compiler and Linker Flags
- safe_flags="-Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS"
- safe_flags+=" -fcf-protection -fno-plt"
- safe_flags+=" -fstack-clash-protection -Wformat"
- safe_flags+=" -Werror=format-security"
- generic_flags="-pipe -fno-plt -fPIC -fopenmp"
- generic_flags+=" -march=native"
- generic_flags+=" -mtune=native ${safe_flags}"
- opt_flags="${generic_flags} -O3"
- generic_flags="${generic_flags} -O2"
- COPTFLAGS="${opt_flags}"
- CXXOPTFLAGS="$COPTFLAGS"
- FOPTFLAGS="$COPTFLAGS"
- CPPFLAGS="$generic_flags"
- CXXFLAGS="$CPPFLAGS"
- CFLAGS="$generic_flags"
- FFLAGS="$generic_flags"
- FCFLAGS="$generic_flags"
- F90FLAGS="$generic_flags"
- F77FLAGS="$generic_flags"
- LANG=C
- OMPI_MCA_opal_cuda_support=0
- OMPI_MCA_mpi_oversubscribe=0
- BUILDENV=(!distcc color !ccache check !sign)
- OPTIONS=(strip docs !libtool !staticlibs !emptydirs zipman purge !debug !lto)
- INTEGRITY_CHECK=(sha512)
- STRIP_BINARIES="--strip-all"
- STRIP_SHARED="--strip-unneeded"
- STRIP_STATIC="--strip-debug"
- MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
- DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
- PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
- DBGSRCDIR="/usr/src/debug"
- #########################################################################
- # COMPRESSION DEFAULTS
- #########################################################################
- #
- COMPRESSGZ=(gzip -c -f -n)
- COMPRESSBZ2=(bzip2 -c -f)
- COMPRESSXZ=(xz -c -z --threads=4 -)
- COMPRESSZST=(zstd -T4 -c -z -q -)
- COMPRESSLRZ=(lrzip -q)
- COMPRESSLZO=(lzop -q)
- COMPRESSZ=(compress -c -f)
- COMPRESSLZ4=(lz4 -q)
- COMPRESSLZ=(lzip -c -f)
- #########################################################################
- # EXTENSION DEFAULTS
- #########################################################################
- PKGEXT='.pkg.tar.xz'
- SRCEXT='.src.tar.gz'
|