2015-02-27 00:58:55 +00:00
|
|
|
# bashrc
|
|
|
|
|
|
|
|
## global settings
|
2015-08-30 19:46:49 +00:00
|
|
|
CC=x86_64-pc-linux-gnu-gcc
|
|
|
|
CXX=${CC}
|
2015-02-27 00:58:55 +00:00
|
|
|
CFLAGS="-march=core-avx2 -O2 -pipe -Wall"
|
|
|
|
CXXFLAGS="${CFLAGS}"
|
2015-03-02 01:19:34 +00:00
|
|
|
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
|
2015-08-16 10:42:43 +00:00
|
|
|
MAKEOPTS="-j1"
|
2015-09-04 20:39:04 +00:00
|
|
|
EPATCH_USER_SOURCE=/etc/paludis/patches
|
2015-02-27 00:58:55 +00:00
|
|
|
|
|
|
|
I_KNOW_WHAT_I_AM_DOING="yes"
|
|
|
|
I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS=1
|
|
|
|
|
|
|
|
|
2015-03-01 22:07:45 +00:00
|
|
|
# git-r3
|
|
|
|
EGIT_CLONE_TYPE=shallow
|
|
|
|
|
|
|
|
|
2015-08-09 12:25:33 +00:00
|
|
|
GAMES_PREFIX=/usr
|
|
|
|
GAMES_PREFIX_OPT=/opt
|
|
|
|
GAMES_DATADIR=/usr/share
|
|
|
|
GAMES_DATADIR_BASE=/usr/share
|
|
|
|
GAMES_SYSCONFDIR=/etc
|
|
|
|
GAMES_STATEDIR=/var/lib
|
|
|
|
GAMES_LOGDIR=/var/log
|
|
|
|
GAMES_BINDIR=${GAMES_PREFIX}/bin
|
|
|
|
GAMES_GROUP=users
|
2015-02-27 00:58:55 +00:00
|
|
|
|
|
|
|
# hack to disable actual building of multilib stuff
|
|
|
|
#MULTILIB_ABIS=amd64
|
|
|
|
|
|
|
|
|
|
|
|
## per-package settings
|
|
|
|
|
|
|
|
# no as-needed
|
2015-08-09 16:01:04 +00:00
|
|
|
if [[ "${CATEGORY}/${PN}" == "net-libs/libeXosip" ||
|
|
|
|
"${CATEGORY}/${PN}" == "net-libs/libnetfilter_queue" ]]
|
2015-02-27 00:58:55 +00:00
|
|
|
then
|
|
|
|
LDFLAGS="${LDFLAGS/-Wl,--as-needed/}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# laptop-compat, keep this at the top
|
|
|
|
if [[ "${CATEGORY}/${PN}" == "x11-libs/wxGTK" ||
|
|
|
|
"${CATEGORY}/${PN}" == "www-client/firefox" ||
|
|
|
|
"${CATEGORY}/${PN}" == "www-client/torbrowser" ||
|
|
|
|
"${CATEGORY}/${PN}" == "mail-client/thunderbird" ||
|
|
|
|
"${CATEGORY}/${PN}" == "app-office/libreoffice" ||
|
|
|
|
"${CATEGORY}/${PN}" == "net-libs/webkit-gtk" ||
|
|
|
|
"${CATEGORY}/${PN}" == "dev-qt/qtwebkit" ||
|
|
|
|
"${CATEGORY}/${PN}" == "app-emulation/wine" ||
|
|
|
|
"${CATEGORY}/${PN}" == "sys-devel/llvm" ]]
|
|
|
|
then
|
|
|
|
CFLAGS="-march=core-avx-i -O2 -pipe"
|
|
|
|
CXXFLAGS="-march=core-avx-i -O2 -pipe"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# clang incompatible or safety or missing openmp, also see #408963
|
|
|
|
if [[
|
|
|
|
"${CATEGORY}/${PN}" != "sys-devel/binutils" &&
|
|
|
|
"${CATEGORY}/${PN}" != "sys-devel/gcc" &&
|
|
|
|
"${CATEGORY}/${PN}" != "sys-libs/glibc" &&
|
|
|
|
"${CATEGORY}/${PN}" != "sys-apps/coreutils" &&
|
|
|
|
"${CATEGORY}/${PN}" != "media-gfx/blender" &&
|
|
|
|
"${CATEGORY}/${PN}" != "x11-drivers/nvidia-drivers" &&
|
|
|
|
"${CATEGORY}/${PN}" != "media-libs/mesa" &&
|
|
|
|
"${CATEGORY}/${PN}" != "x11-base/xorg-server" &&
|
|
|
|
"${CATEGORY}/${PN}" != "games-strategy/freeorion" &&
|
|
|
|
"${CATEGORY}/${PN}" != "games-engines/openmw" &&
|
|
|
|
"${CATEGORY}/${PN}" != "net-p2p/retroshare" &&
|
|
|
|
"${CATEGORY}/${PN}" != "app-emulation/virtualbox" &&
|
|
|
|
"${CATEGORY}/${PN}" != "app-emulation/virtualbox-modules" &&
|
|
|
|
"${CATEGORY}/${PN}" != "media-libs/id3lib" &&
|
|
|
|
"${CATEGORY}/${PN}" != "net-firewall/pglinux" &&
|
|
|
|
"${CATEGORY}/${PN}" != "app-crypt/gnupg" &&
|
|
|
|
"${CATEGORY}/${PN}" != "dev-lang/ruby" &&
|
|
|
|
"${CATEGORY}/${PN}" != "mail-client/thunderbird" &&
|
|
|
|
"${CATEGORY}/${PN}" != "www-client/firefox" &&
|
|
|
|
"${CATEGORY}/${PN}" != "dev-scheme/guile" &&
|
|
|
|
"${CATEGORY}/${PN}" != "dev-libs/libixion" &&
|
|
|
|
"${CATEGORY}/${PN}" != "dev-lang/gprolog" &&
|
|
|
|
"${CATEGORY}/${PN}" != "x11-libs/motif" &&
|
|
|
|
"${CATEGORY}/${PN}" != "x11-libs/cairo" &&
|
|
|
|
"${CATEGORY}/${PN}" != "media-libs/devil" &&
|
2015-02-28 16:43:10 +00:00
|
|
|
"${CATEGORY}/${PN}" != "sys-devel/autogen" &&
|
2015-02-28 17:18:20 +00:00
|
|
|
"${CATEGORY}/${PN}" != "games-engines/gemrb" &&
|
2015-02-28 17:22:17 +00:00
|
|
|
"${CATEGORY}/${PN}" != "app-emulation/wine" &&
|
2015-02-28 17:24:18 +00:00
|
|
|
"${CATEGORY}/${PN}" != "app-text/recode" &&
|
2015-03-20 16:01:04 +00:00
|
|
|
"${CATEGORY}/${PN}" != "dev-libs/openssl" &&
|
2015-03-20 16:03:08 +00:00
|
|
|
"${CATEGORY}/${PN}" != "dev-games/goatee" &&
|
|
|
|
"${CATEGORY}/${PN}" != "games-board/goatee-gtk" &&
|
2015-03-26 16:36:17 +00:00
|
|
|
"${CATEGORY}/${PN}" != "www-client/torbrowser" &&
|
2015-04-06 20:53:21 +00:00
|
|
|
"${CATEGORY}/${PN}" != "dev-util/nemiver" &&
|
2015-04-21 17:02:15 +00:00
|
|
|
"${CATEGORY}/${PN}" != "app-text/pandoc" &&
|
2015-04-27 16:52:55 +00:00
|
|
|
"${CATEGORY}/${PN}" != "sys-apps/memtest86+" &&
|
2015-05-02 13:06:30 +00:00
|
|
|
"${CATEGORY}/${PN}" != "games-engines/OpenJK" &&
|
2015-05-03 13:35:10 +00:00
|
|
|
"${CATEGORY}/${PN}" != "dev-lang/luajit" &&
|
2015-05-05 12:20:35 +00:00
|
|
|
"${CATEGORY}/${PN}" != "app-admin/haskell-updater" &&
|
2015-05-08 10:36:58 +00:00
|
|
|
"${CATEGORY}/${PN}" != "dev-lang/spidermonkey" &&
|
2015-05-10 00:58:29 +00:00
|
|
|
"${CATEGORY}/${PN}" != "games-strategy/liquidwar6" &&
|
2015-05-11 14:36:57 +00:00
|
|
|
"${CATEGORY}/${PN}" != "sci-mathematics/z3" &&
|
2015-06-19 12:52:54 +00:00
|
|
|
"${CATEGORY}" != "dev-haskell" &&
|
2015-06-24 21:27:39 +00:00
|
|
|
"${CATEGORY}/${PN}" != "media-libs/libvorbis" &&
|
2015-06-24 20:43:44 +00:00
|
|
|
"${CATEGORY}/${PN}" != "games-fps/unvanquished" &&
|
2015-06-24 21:29:36 +00:00
|
|
|
"${CATEGORY}/${PN}" != "media-libs/gstreamer" &&
|
2015-06-24 21:36:31 +00:00
|
|
|
"${CATEGORY}/${PN}" != "media-video/ffmpeg" &&
|
2015-06-24 21:58:52 +00:00
|
|
|
"${CATEGORY}/${PN}" != "dev-libs/libev" &&
|
2015-06-25 18:00:03 +00:00
|
|
|
"${CATEGORY}/${PN}" != "games-strategy/0ad" &&
|
2015-06-25 19:31:37 +00:00
|
|
|
"${CATEGORY}/${PN}" != "dev-libs/elfutils" &&
|
2015-06-25 21:08:52 +00:00
|
|
|
"${CATEGORY}/${PN}" != "media-libs/libraw" &&
|
2015-06-26 10:18:24 +00:00
|
|
|
"${CATEGORY}/${PN}" != "media-libs/gd" &&
|
2015-06-26 16:37:30 +00:00
|
|
|
"${CATEGORY}/${PN}" != "media-libs/sdl2-gfx" &&
|
2015-07-09 23:07:23 +00:00
|
|
|
"${CATEGORY}/${PN}" != "app-crypt/johntheripper" &&
|
2015-08-05 11:07:30 +00:00
|
|
|
"${CATEGORY}/${PN}" != "dev-games/cegui" &&
|
2015-08-05 11:44:25 +00:00
|
|
|
"${CATEGORY}/${PN}" != "sys-block/thin-provisioning-tools" &&
|
2015-08-06 18:24:23 +00:00
|
|
|
"${CATEGORY}/${PN}" != "sys-apps/paludis" &&
|
2015-08-11 01:35:48 +00:00
|
|
|
"${CATEGORY}/${PN}" != "dev-libs/crypto++" &&
|
2015-08-14 14:04:40 +00:00
|
|
|
"${CATEGORY}/${PN}" != "sys-power/iasl" &&
|
2015-08-17 15:45:49 +00:00
|
|
|
"${CATEGORY}/${PN}" != "net-libs/libmnl" &&
|
2015-08-17 22:47:07 +00:00
|
|
|
"${CATEGORY}/${PN}" != "net-libs/opal" &&
|
2015-09-05 09:54:54 +00:00
|
|
|
"${CATEGORY}/${PN}" != "media-video/guvcview" &&
|
2015-09-05 15:50:52 +00:00
|
|
|
"${CATEGORY}/${PN}" != "app-emulation/aqemu" &&
|
2015-06-26 13:41:04 +00:00
|
|
|
"${CATEGORY}/${PN}" != "x11-libs/pixman"
|
2015-02-27 00:58:55 +00:00
|
|
|
]]
|
|
|
|
then
|
|
|
|
CC="clang"
|
2015-06-26 10:44:32 +00:00
|
|
|
BUILD_CC="clang"
|
2015-02-27 00:58:55 +00:00
|
|
|
CFLAGS+=" -Qunused-arguments -fcolor-diagnostics"
|
|
|
|
CXX="clang++"
|
2015-06-26 10:44:32 +00:00
|
|
|
BUILD_CXX="clang++"
|
2015-02-27 00:58:55 +00:00
|
|
|
CXXFLAGS+=" -Qunused-arguments -fcolor-diagnostics"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# missing fpic
|
|
|
|
# if [[ "${CATEGORY}/${PN}" == "games-emulation/dosbox" ]]
|
|
|
|
# then
|
|
|
|
# CFLAGS+=" -fPIC"
|
|
|
|
# CXXFLAGS+=" -fPIC"
|
|
|
|
# fi
|
|
|
|
|
|
|
|
|
|
|
|
# O3
|
2015-05-02 00:00:03 +00:00
|
|
|
if [[ "${CATEGORY}" == "games-"* &&
|
|
|
|
"${CATEGORY}/${PN}" != "games-engines/OpenJK" ]]
|
2015-02-27 00:58:55 +00:00
|
|
|
then
|
|
|
|
CFLAGS="${CFLAGS} -O3"
|
|
|
|
CXXFLAGS="${CXXFLAGS} -O3"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# debug
|
|
|
|
if [[ "${CATEGORY}/${PN}" == "x11-libs/gtk+" ||
|
|
|
|
"${CATEGORY}/${PN}" == "dev-util/glade" ||
|
|
|
|
"${CATEGORY}/${PN}" == "dev-libs/libntru" ||
|
|
|
|
"${CATEGORY}/${PN}" == "net-misc/curl" ||
|
2015-05-02 10:02:13 +00:00
|
|
|
"${CATEGORY}/${PN}" == "games-engines/OpenJK" ||
|
2015-05-14 11:24:23 +00:00
|
|
|
"${CATEGORY}/${PN}" == "net-libs/mbedtls" ||
|
|
|
|
"${CATEGORY}/${PN}" == "x11-misc/spacefm"
|
2015-02-27 00:58:55 +00:00
|
|
|
]]
|
|
|
|
then
|
|
|
|
CFLAGS="${CFLAGS} -Wall -g"
|
|
|
|
CXXFLAGS="${CXXFLAGS} -Wall -g"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# full debug
|
2015-05-14 11:24:23 +00:00
|
|
|
if [[ "${CATEGORY}/${PN}" == "games-fps/doomsday"
|
2015-04-05 12:00:39 +00:00
|
|
|
]]
|
2015-02-27 00:58:55 +00:00
|
|
|
then
|
|
|
|
CFLAGS="${CFLAGS} -Wall -g -O0"
|
|
|
|
CXXFLAGS="${CXXFLAGS} -Wall -g -O0"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# nodebug
|
|
|
|
if [[ "${CATEGORY}/${PN}" == "dev-python/pypy" ||
|
|
|
|
"${CATEGORY}/${PN}" == "games-strategy/freeorion" ||
|
|
|
|
"${CATEGORY}/${PN}" == "www-client/chromium" ||
|
|
|
|
"${CATEGORY}/${PN}" == "sys-devel/clang" ||
|
|
|
|
"${CATEGORY}/${PN}" == "sys-devel/llvm" ||
|
|
|
|
"${CATEGORY}/${PN}" == "www-client/firefox" ||
|
|
|
|
"${CATEGORY}/${PN}" == "www-client/torbrowser" ||
|
|
|
|
"${CATEGORY}/${PN}" == "mail-client/thunderbird" ||
|
|
|
|
"${CATEGORY}/${PN}" == "app-office/libreoffice" ||
|
|
|
|
"${CATEGORY}/${PN}" == "net-libs/webkit-gtk" ||
|
|
|
|
"${CATEGORY}/${PN}" == "dev-qt/qtwebkit" ]]
|
|
|
|
then
|
|
|
|
CFLAGS="${CFLAGS} -g0"
|
|
|
|
CXXFLAGS="${CXXFLAGS} -g0"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# parallel build broken
|
|
|
|
if [[ "${CATEGORY}/${PN}" == "dev-libs/openssl" ]]
|
|
|
|
then
|
|
|
|
MAKEOPTS="-j1"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|