You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
# Setup: mkdir -p /var/cache/astronaut && chmod a+wt /var/cache/astronaut
|
|
|
|
dir_build="/tmp/astronaut.$(id -u)/build"
|
|
dir_install="/tmp/astronaut.$(id -u)/install"
|
|
dir_source='/var/cache/astronaut'
|
|
|
|
[ "$(uname -m)" = "x86_64" ] && dir_lib='lib64'
|
|
dir_sysconf='../etc'
|
|
dir_localstate='../var'
|
|
dir_man='man'
|
|
dir_doc='doc'
|
|
dir_info='info'
|
|
|
|
export LDFLAGS="-L/$dir_prefix/$dir_lib"
|
|
|
|
wrapper_pkgtools_compression='tgz'
|
|
|
|
options='patch,!gtk3,!pam'
|
|
package_options() {
|
|
case "$1" in
|
|
astronaut) echo 'pkgtools,helpers' ;;
|
|
i3) echo 'gaps' ;;
|
|
python3) echo '!2to3-symlink' ;;
|
|
python3-setuptools) echo '!easy_install-symlink' ;;
|
|
wine) echo 'wine32=lib' ;;
|
|
nxengine-evo) echo 'console_key=-' ;;
|
|
qemu) echo 'targets=x86_64-softmmu i386-softmmu' ;;
|
|
esac
|
|
}
|
|
|
|
export CFLAGS="-march=native -pipe -O2"
|
|
#export CFLAGS="-march=native -pipe -O3 -fgraphite-identity -ftree-loop-distribution -floop-nest-optimize -flto=$(nproc) -fuse-linker-plugin"
|
|
#export LDFLAGS="$LDFLAGS $CFLAGS -Wl,--as-needed -Wl,--hash-style=gnu"
|
|
export CXXFLAGS="$CFLAGS"
|
|
|
|
export MAKEFLAGS="${MAKEFLAGS:--j $(nproc)}"
|
|
export WAFFLAGS="$MAKEFLAGS"
|
|
export BAMFLAGS="$MAKEFLAGS"
|
|
export NINJAFLAGS="$MAKEFLAGS"
|
|
export NINJA_STATUS='[%p %f/%t] '
|
|
|