diff options
author | Silvino <silvino@bk.ru> | 2021-02-25 23:22:17 +0000 |
---|---|---|
committer | Silvino <silvino@bk.ru> | 2021-02-25 23:22:17 +0000 |
commit | d12b35a47b9a872ecb5e037f1c2b02e1ea8927fb (patch) | |
tree | 8fdac6dfc8cabb9f85a2db3a3bd628cfe44438cd /linux/conf/pkgmk.conf | |
parent | 0a6b0fc9769daf0932cb207c3285baa31547b489 (diff) | |
parent | a3628fc49db4d88ff3e4067268650710d1da3f6f (diff) | |
download | doc-d12b35a47b9a872ecb5e037f1c2b02e1ea8927fb.tar.gz |
merge openbsd branch into develop
new directory layout
Diffstat (limited to 'linux/conf/pkgmk.conf')
-rw-r--r-- | linux/conf/pkgmk.conf | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/linux/conf/pkgmk.conf b/linux/conf/pkgmk.conf new file mode 100644 index 0000000..3ae582d --- /dev/null +++ b/linux/conf/pkgmk.conf @@ -0,0 +1,60 @@ +# +# /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://tribu.semdestino.org/mirror/distfiles/ https://tribu.semdestino.org/mirror/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 |