Skip to content

Instantly share code, notes, and snippets.

Created December 13, 2013 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7952761 to your computer and use it in GitHub Desktop.
Save anonymous/7952761 to your computer and use it in GitHub Desktop.
/etc/pkgmk.conf
#
# /etc/pkgmk.conf: pkgmk(8) configuration
#
renice -n 19 $$
export CFLAGS="-march=native -O2 -pipe"
#export CFLAGS="-march=native -Os -pipe"
export CXXFLAGS="${CFLAGS}"
export MAKEFLAGS="-j 7"
#PKGMK_SOURCE_MIRRORS=(ftp://ftp.sunet.se/pub/Linux/distributions/gentoo/distfiles/)
PKGMK_SOURCE_DIR="/usr/ports/src"
PKGMK_PACKAGE_DIR="/usr/ports/pkg"
#PKGMK_WORK_DIR="/usr/ports/work/$name-$version-$release-work"
PKGMK_WORK_DIR="/tmp/$name-$version-$release-work"
PKGMK_DOWNLOAD="yes"
#PKGMK_IGNORE_FOOTPRINT="yes"
PKGMK_IGNORE_NEW="yes"
#PKGMK_NO_STRIP="yes"
#PKGMK_WGET_OPTS="-T 30 --no-check-certificate"
PKGMK_COMPRESSION_MODE="xz"
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
# End of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment