1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/mine/mine.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 makeopt="$makeopt CONFOPT=\"--build=\$arch_build --host=\$arch_target --cache-file=../config.cache\""
14 makeinstopt="$makeinstopt sysprefix=$root"
16 if ! atstage toolchain && pkginstalled dialog; then
17 makeopt="$makeopt USE_GAS=1"
18 makeinstopt="$makeinstopt USE_GAS=1"
20 makeopt="$makeopt USE_GAS=0"
21 makeinstopt="$makeinstopt USE_GAS=0"
23 atstage native || hook_add premake 5 "create_config_cache > config.cache"
25 var_append makeinstopt " " "prefix=$root/$prefix sysprefix=$root/"
27 # new ROCK 2.1 features inroduce regressions in the package.db with
28 # versions ending with a space
29 var_append GCC_WRAPPER_INSERT ' ' -DROCK20
31 pkginstalled zsh && hook_add postinstall 5 "cp -v $confdir/mine.zsh $root$datadir/zsh/site-functions/_mine"