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