I have two mk.confs, one for pbulk and one for non-pbulk.
This is shared between them:
LOCALBASE?= /usr/pkg
ALLOW_VULNERABLE_PACKAGES= yes
SKIP_LICENSE_CHECK= yes
FAILOVER_FETCH= yes
PKG_DEVELOPER= yes
PKGSRC_USE_SSP= strong
PREFER_PKGSRC= MesaLib glu glw libdrm libepoxy
PKG_DEFAULT_OPTIONS+= -avahi
PKG_OPTIONS.qt5+= gtk3
PKG_OPTIONS.libreoffice+= gtk3 -java
PKG_OPTIONS.xfce4-thunar+= -gvfs
PKG_OPTIONS.links+= -bzip2 -lzma
PKG_OPTIONS.qt5-qtmultimedia+= -pulseaudio
PKG_OPTIONS.mgba+= -ffmpeg -imagemagick -qt5
PKG_OPTIONS.portaudio+= jack
PKG_OPTIONS.avahi+= -gtk3
This is for non-pbulk (pkgsrc development, mostly)
.if defined(BSD_PKG_MK)
.include "/etc/mk.extra.conf"
#CFLAGS+= -Wfatal-errors
#CFLAGS+= -Og -g
MAKE_JOBS= 3
FETCH_USING= curl
# memory limits
MAKE_JOBS.qt5-qtwebkit= 2
MAKE_JOBS.webkit-gtk= 2
MAKE_JOBS.widelands= 2
INSTALL_UNSTRIPPED= yes
PKGSRC_COMPILER= ccache gcc
CCACHE_DIR= /home/nia/.cache/ccache
.if exists(${LOCALBASE}/bin/sudo)
SU_CMD= ${LOCALBASE}/bin/sudo /bin/sh -c
.endif
.endif
This is for pbulk:
.if defined(BSD_PKG_MK)
.include "/etc/mk.extra.conf"
MAKE_JOBS= 4
MASTER_SITE_OVERRIDE= http://cdn.NetBSD.org/pub/pkgsrc/distfiles/
MASTER_SITE_BACKUP= http://ftp.NetBSD.org/pub/pkgsrc/distfiles/
.endif