1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/asterisk-addons/asterisk-addons.conf
3 # Copyright (C) 2006 - 2023 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
14 if [ $prefix_auto = 1 ]; then
15 prefix="`pkgprefix asterisk`"
19 # we need to build the configuration tool natively
20 # code shared with asterisk
21 if atstage cross; then
22 asterisk_build_menuselect() {
25 CC=$HOST_CC CPP=cpp RANLIB=ranlib \
26 ./configure --build $arch_build
30 hook_add preconf 5 "asterisk_build_menuselect"
33 var_append makeopt ' ' "ASTLIBDIR=$(pkgprefix libdir asterisk)"
34 var_append makeinstopt ' ' "ASTLIBDIR=$(pkgprefix libdir asterisk)"
35 var_append GCC_WRAPPER_APPEND ' ' "-I$(pkgprefix includedir asterisk)"