blob: 6d3ed7d7a3ae2d1831d2e2b7f7290e8d2f872167 (
plain) (
tree)
|
|
#
# /etc/pkgmk.conf: pkgmk(8) configuration
#
export CFLAGS="-O2 -march=x86-64"
export CXXFLAGS="${CFLAGS}"
# local compile only
export JOBS=$(nproc)
export MAKEFLAGS="-j $JOBS"
# ccache settings
#export PATH="/usr/lib/ccache/:$PATH"
#export CCACHE_DIR="/usr/ports/ccache"
#export CCACHE_PREFIX="distcc"
#export CCACHE_COMPILERCHECK="%compiler% -dumpversion; crux"
## compile using distcc without ccache
##export PATH="/usr/lib/distcc/:$PATH"
# distcc settings
#export DISTCC_HOSTS="localhost/4,lzo,cpp xborg/4,lzo,cpp"
#export JOBS=$(/usr/bin/distcc -j 2> /dev/null)
#export DISTCC_DIR="/usr/ports/distcc"
#export MAKEFLAGS="-j ${JOBS}"
#export SCONSFLAGS="$MAKEFLAGS"
case ${PKGMK_ARCH} in
"64"|"")
;;
"32")
export CFLAGS="${CFLAGS} -m32"
export CXXFLAGS="${CXXFLAGS} -m32"
export LDFLAGS="${LDFLAGS} -m32"
export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig"
;;
*)
echo "Unknown architecture selected! Exiting."
exit 1
;;
esac
PKGMK_SOURCE_MIRRORS=(https://mirror.leetio.dev/distfiles/ https://mirror.leetio.dev/archive/distfiles/)
# PKGMK_SOURCE_DIR="$PWD"
PKGMK_SOURCE_DIR="/usr/ports/distfiles"
# PKGMK_PACKAGE_DIR="$PWD"
PKGMK_PACKAGE_DIR="/usr/ports/packages"
# PKGMK_WORK_DIR="$PWD/work"
PKGMK_WORK_DIR="/usr/ports/work/$name"
# PKGMK_DOWNLOAD="no"
# PKGMK_IGNORE_FOOTPRINT="no"
# PKGMK_IGNORE_NEW="no"
# PKGMK_NO_STRIP="no"
# PKGMK_DOWNLOAD_PROG="wget"
# PKGMK_WGET_OPTS=""
# PKGMK_CURL_OPTS=""
# PKGMK_COMPRESSION_MODE="gz"
# PKGMK_UP_TO_DATE=yes
# End of file
|