blob: 4d689ec49424be1c0ac0d3bb42a2b731c8a9193b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#
# /etc/pkgmk.conf: pkgmk(8) configuration
#
export CFLAGS="-O2 -march=x86-64"
export CXXFLAGS="${CFLAGS}"
## 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 ccache and distcc
#export DISTCC_HOSTS="localhost/4 xborg/4"
#
### compile using distcc without ccache
##export PATH="/usr/lib/distcc/:$PATH"
##export DISTCC_HOSTS="localhost/4,lzo,cpp xborg/4,lzo,cpp"
##export PUMP_BUILD=yes
#
## distcc settings
#export JOBS=$(/usr/bin/distcc -j 2> /dev/null)
#export DISTCC_DIR="/usr/ports/distcc"
#export MAKEFLAGS="-j ${JOBS}"
#export SCONSFLAGS="$MAKEFLAGS"
# local compile only
export JOBS=$(nproc)
export MAKEFLAGS="-j $JOBS"
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://hive.gnu.systems/mirror-3.4/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
|