* changed pyproject-metadata build priority (400.000 -> 109.007)
[t2sde.git] / package / network / asterisk / asterisk.conf
blob39339a1239b5f8aa88f80e9ead1776a567ca05cb
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/asterisk/asterisk.conf
3 # Copyright (C) 2004 - 2022 The T2 SDE Project
4 # Copyright (C) 1998 - 2004 ROCK Linux Project
5
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
8
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 if [ $prefix_auto = 1 ]; then
14         prefix="opt/asterisk"
15         set_confopt
18 # we need to build the configuration tool natively
19 # code shared with asterisk-addons
20 if atstage cross; then
21         asterisk_build_menuselect() {
22           (
23                 cd menuselect
24                 CC=$HOST_CC CPP=cpp RANLIB=ranlib \
25                 ./configure --build $arch_build
26                 eval $MAKE
27           )
28         }
29         hook_add preconf 5 "asterisk_build_menuselect"
31 export CONFIG_LIBXML2="$root/usr/bin/xml2-config"
32 var_append extraconfopt " " "--with-sounds-cache=$builddir"
34 var_append makeopt ' ' "ASTLIBDIR=$libdir"
35 var_append makeopt ' ' "ASTVARLIBDIR=$datadir"
36 var_append makeopt ' ' "ASTETCDIR=$sysconfdir"
37 var_append makeopt ' ' "ASTSPOOLDIR=$localstatedir/spool"
38 var_append makeopt ' ' "ASTLOGDIR=$localstatedir/log"
39 var_append makeopt ' ' "ASTHEADERDIR=$includedir/asterisk"
40 var_append makeopt ' ' "ASTBINDIR=$bindir"
41 var_append makeopt ' ' "ASTSBINDIR=$sbindir"
42 var_append makeopt ' ' "ASTVARRUNDIR=$localstatedir/run"
43 var_append makeopt ' ' "ASTMANDIR=$mandir"
45 makeinstopt="$makeopt DESTDIR=$root install samples"
47 var_append GCC_WRAPPER_INSERT " " "-I/opt/postgresql/include"
48 var_append GCC_WRAPPER_INSERT " " "-L/opt/postgresql/lib"