use module names, not file names, in menuselect
authorKevin P. Fleming <kpfleming@digium.com>
Mon, 5 Jun 2006 20:46:27 +0000 (20:46 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Mon, 5 Jun 2006 20:46:27 +0000 (20:46 +0000)
work around XML parsing bug in menuselect for default sounds package

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32407 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 files changed:
apps/Makefile
build_tools/prep_moduledeps
build_tools/sounds.xml
cdr/Makefile
channels/Makefile
codecs/Makefile
codecs/codec_g723_1.c
formats/Makefile
funcs/Makefile
pbx/Makefile
res/Makefile
res/res_snmp.c
utils/Makefile

index ed26d85..482bf2d 100644 (file)
@@ -11,7 +11,7 @@
 # the GNU General Public License
 #
 
-MODS:=$(filter-out $(MENUSELECT_APPS),$(patsubst %.c,%.so,$(wildcard app_*.c)))
+SELECTED_MODS:=$(filter-out $(MENUSELECT_APPS),$(patsubst %.c,%,$(wildcard app_*.c)))
 
 # If you have UnixODBC you can use ODBC voicemail
 # storage
@@ -22,6 +22,8 @@ MODS:=$(filter-out $(MENUSELECT_APPS),$(patsubst %.c,%.so,$(wildcard app_*.c)))
 #CFLAGS+=-DEXTENDED_ODBC_STORAGE
 # See doc/README.odbcstorage for more information
 
+MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
+
 all: $(MODS)
 
 clean-depend:
index a5a27b3..cc366a2 100755 (executable)
@@ -38,7 +38,7 @@ process_dir() {
                fname=${file##${dir}/}
                get_description ${file}
                desc=${TDESC}
-               echo -e "\t\t<member name=\"${fname%%.c}.so\" displayname=\"${desc}\">"
+               echo -e "\t\t<member name=\"${fname%%.c}\" displayname=\"${desc}\">"
                awk -f build_tools/get_moduledeps ${file}
                echo -e "\t\t</member>"
        done
index 0f118f1..e5157a9 100644 (file)
@@ -1,19 +1,33 @@
        <category name="MENUSELECT_SOUNDS" displayname="Sound Packages" positive_output="yes">
-               <member name="CORE_SOUNDS_EN_WAV" displayname="Core Sounds - English, WAV format" />
-               <member name="CORE_SOUNDS_EN_ULAW" displayname="Core Sounds - English, mu-Law format" />
-               <member name="CORE_SOUNDS_EN_ALAW" displayname="Core Sounds - English, a-Law format" />
+               <member name="CORE_SOUNDS_EN_WAV" displayname="Core Sounds - English, WAV format">
+               </member>
+               <member name="CORE_SOUNDS_EN_ULAW" displayname="Core Sounds - English, mu-Law format">
+               </member>
+               <member name="CORE_SOUNDS_EN_ALAW" displayname="Core Sounds - English, a-Law format">
+               </member>
                <member name="CORE_SOUNDS_EN_GSM" displayname="Core Sounds - English, GSM format" >
                        <defaultenabled>yes</defaultenabled>
                </member>
-               <member name="CORE_SOUNDS_EN_G729" displayname="Core Sounds - English, G.729 format" />
-               <member name="CORE_SOUNDS_ES_WAV" displayname="Core Sounds - Spanish, WAV format" />
-               <member name="CORE_SOUNDS_ES_ULAW" displayname="Core Sounds - Spanish, mu-Law format" />
-               <member name="CORE_SOUNDS_ES_ALAW" displayname="Core Sounds - Spanish, a-Law format" />
-               <member name="CORE_SOUNDS_ES_GSM" displayname="Core Sounds - Spanish, GSM format" />
-               <member name="CORE_SOUNDS_ES_G729" displayname="Core Sounds - Spanish, G.729 format" />
-               <member name="CORE_SOUNDS_FR_WAV" displayname="Core Sounds - French, WAV format" />
-               <member name="CORE_SOUNDS_FR_ULAW" displayname="Core Sounds - French, mu-Law format" />
-               <member name="CORE_SOUNDS_FR_ALAW" displayname="Core Sounds - French, a-Law format" />
-               <member name="CORE_SOUNDS_FR_GSM" displayname="Core Sounds - French, GSM format" />
-               <member name="CORE_SOUNDS_FR_G729" displayname="Core Sounds - French, G.729 format" />
+               <member name="CORE_SOUNDS_EN_G729" displayname="Core Sounds - English, G.729 format">
+               </member>
+               <member name="CORE_SOUNDS_ES_WAV" displayname="Core Sounds - Spanish, WAV format">
+               </member>
+               <member name="CORE_SOUNDS_ES_ULAW" displayname="Core Sounds - Spanish, mu-Law format">
+               </member>
+               <member name="CORE_SOUNDS_ES_ALAW" displayname="Core Sounds - Spanish, a-Law format">
+               </member>
+               <member name="CORE_SOUNDS_ES_GSM" displayname="Core Sounds - Spanish, GSM format">
+               </member>
+               <member name="CORE_SOUNDS_ES_G729" displayname="Core Sounds - Spanish, G.729 format">
+               </member>
+               <member name="CORE_SOUNDS_FR_WAV" displayname="Core Sounds - French, WAV format">
+               </member>
+               <member name="CORE_SOUNDS_FR_ULAW" displayname="Core Sounds - French, mu-Law format">
+               </member>
+               <member name="CORE_SOUNDS_FR_ALAW" displayname="Core Sounds - French, a-Law format">
+               </member>
+               <member name="CORE_SOUNDS_FR_GSM" displayname="Core Sounds - French, GSM format">
+               </member>
+               <member name="CORE_SOUNDS_FR_G729" displayname="Core Sounds - French, G.729 format">
+               </member>
        </category>
index d6ec161..9502069 100644 (file)
@@ -11,7 +11,7 @@
 # the GNU General Public License
 #
 
-MODS:=$(filter-out $(MENUSELECT_CDR),$(patsubst %.c,%.so,$(wildcard cdr_*.c)))
+SELECTED_MODS:=$(filter-out $(MENUSELECT_CDR),$(patsubst %.c,%,$(wildcard cdr_*.c)))
 
 #The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
 #This works for even old (2.96) versions of gcc and provides a small boost either way.
@@ -35,6 +35,8 @@ ifneq ($(TDS_LIB),)
   endif
 endif
 
+MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
+
 all: depend $(MODS)
 
 install: all
index 4a8d43b..060d4e1 100644 (file)
@@ -11,7 +11,7 @@
 # the GNU General Public License
 #
 
-MODS:=$(filter-out $(MENUSELECT_CHANNELS),$(patsubst %.c,%.so,$(wildcard chan_*.c)))
+SELECTED_MODS:=$(filter-out $(MENUSELECT_CHANNELS),$(patsubst %.c,%,$(wildcard chan_*.c)))
 
 ifeq ($(OSARCH),OpenBSD)
   PTLIB=-lpt_OpenBSD_x86_r
@@ -45,11 +45,11 @@ ifeq ($(OSARCH),SunOS)
 endif
 
 ifeq ($(wildcard h323/libchanh323.a),)
-  MODS:=$(filter-out chan_h323.so,$(MODS))
+  SELECTED_MODS:=$(filter-out chan_h323,$(SELECTED_MODS))
 endif
 
 ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/mISDNuser/mISDNlib.h),)
-  MODS:=$(filter-out chan_misdn.so,$(MODS))
+  SELECTED_MODS:=$(filter-out chan_misdn,$(SELECTED_MODS))
 else
   CFLAGS+=-Imisdn 
 endif
@@ -62,6 +62,8 @@ ifndef PWLIBDIR
   PWLIBDIR=$(HOME)/pwlib
 endif
 
+MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
+
 all: depend $(MODS) 
 
 clean-depend:
index 6be3e9b..544f5b1 100644 (file)
 # the GNU General Public License
 #
 
-MODS:=$(filter-out $(MENUSELECT_CODECS),$(patsubst %.c,%.so,$(wildcard codec_*.c)))
-
-ifeq ($(wildcard g723.1/coder.c),)
-  MODS:=$(filter-out codec_g723_1.so,$(MODS))
-else
-  LIBG723=g723.1/libg723.a
-endif
-
-ifneq ($(wildcard g723.1b/coder2.c),)
-  MODS+=codec_g723_1b.so
-  LIBG723B=g723.1b/libg723b.a
-endif
+SELECTED_MODS:=$(filter-out $(MENUSELECT_CODECS),$(patsubst %.c,%,$(wildcard codec_*.c)))
 
 ifeq ($(wildcard ilbc/iLBC_decode.h),)
-  MODS:=$(filter-out codec_ilbc.so,$(MODS))
+  MODS:=$(filter-out codec_ilbc,$(MODS))
 else
   LIBILBC=ilbc/libilbc.a
 endif
 
 LIBLPC10=lpc10/liblpc10.a
 
+MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
+
 all: depend $(MODS)
 
 clean-depend:
index 00a5ca6..87ccba8 100644 (file)
  * \ingroup codecs
  */
 
+/*** MODULEINFO
+       <defaultenabled>no</defaultenabled>
+ ***/
+
 #define TYPE_HIGH       0x0
 #define TYPE_LOW        0x1
 #define TYPE_SILENCE    0x2
index dab3a39..1eb7e29 100644 (file)
 # the GNU General Public License
 #
 
-MODS:=$(filter-out $(MENUSELECT_FORMATS),$(patsubst %.c,%.so,$(wildcard format_*.c)))
+SELECTED_MODS:=$(filter-out $(MENUSELECT_FORMATS),$(patsubst %.c,%,$(wildcard format_*.c)))
 
 GSMLIB=../codecs/gsm/lib/libgsm.a
 
+MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
+
 all: depend $(MODS)
 
 clean-depend:
index 33edf55..757f2ac 100644 (file)
 # the GNU General Public License
 #
 
-MODS:=$(filter-out $(MENUSELECT_FUNCS),$(patsubst %.c,%.so,$(wildcard func_*.c)))
+SELECTED_MODS:=$(filter-out $(MENUSELECT_FUNCS),$(patsubst %.c,%,$(wildcard func_*.c)))
 
 # TODO This check needs to be handled with autoconf
 ifeq ($(OSARCH),SunOS)
   ifeq ($(shell if [ 0x`$(CROSS_COMPILE_BIN)curl-config --vernum` -ge 0x70907 ]; then echo "OK" ; fi),)
-    MODS:=$(filter-out func_curl.so,$(MODS))
+    MODS:=$(filter-out func_curl,$(MODS))
   endif
 else
   ifeq ($(shell if [[ 0x`$(CROSS_COMPILE_BIN)curl-config --vernum` -ge 0x70907 ]]; then echo "OK" ; fi),)
-    MODS:=$(filter-out func_curl.so,$(MODS)) 
+    MODS:=$(filter-out func_curl,$(MODS)) 
   endif
 endif
 
+MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
+
 all: $(MODS)
 
 clean-depend:
index e799c53..8ca9596 100644 (file)
@@ -11,7 +11,7 @@
 # the GNU General Public License
 #
 
-MODS:=$(filter-out $(MENUSELECT_PBX),$(patsubst %.c,%.so,$(wildcard pbx_*.c)))
+SELECTED_MODS:=$(filter-out $(MENUSELECT_PBX),$(patsubst %.c,%,$(wildcard pbx_*.c)))
 
 MOC=$(QTDIR)/bin/moc
 KDE_FLAGS=-I$(KDEDIR)/include -I$(KDEDIR)/include/kde -I$(QTDIR)/include
@@ -19,6 +19,8 @@ KDE_LIBS=-L$(KDEDIR)/lib -L$(QTDIR)/lib -lqt -lkdecore -lkdeui
 
 KDE_CONSOLE_OBJS=pbx_kdeconsole_main.o pbx_kdeconsole.o 
 
+MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
+
 all: depend $(MODS)
 
 clean-depend:
index 3081a8b..8de05f3 100644 (file)
 # the GNU General Public License
 #
 
-MODS:=$(filter-out $(MENUSELECT_RES),$(patsubst %.c,%.so,$(wildcard res_*.c)))
+SELECTED_MODS:=$(filter-out $(MENUSELECT_RES),$(patsubst %.c,%,$(wildcard res_*.c)))
 
 ifeq ($(OSARCH),FreeBSD)
-  MODS:=$(filter-out $(shell if test ${BSDVERSION} -lt 500000 ; then echo "res_config_odbc.so"; fi),$(MODS))
+  SELECTED_MODS:=$(filter-out $(shell if test ${BSDVERSION} -lt 500000 ; then echo "res_config_odbc"; fi),$(SELECTED_MODS))
 endif
 
 # NETsnmp has some difficulties on some platforms (conflict with unload_module)
 # Until we figure out if the collission is version-specific or what to do
 # we have disabled res_snmp on OS/X and *BSD
 ifeq ($(OSARCH),Darwin)
-  MODS:=$(filter-out res_snmp.so,$(MODS))
+  SELECTED_MODS:=$(filter-out res_snmp,$(SELECTED_MODS))
 else
   ifeq ($(findstring BSD,$(OSARCH)),BSD)
-    MODS:=$(filter-out res_snmp.so,$(MODS))
+    SELECTED_MODS:=$(filter-out res_snmp,$(SELECTED_MODS))
   endif
 endif
 
 ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/net-snmp/net-snmp-config.h),)
-  MODS:=$(filter-out res_snmp.so,$(MODS))
+  SELECTED_MODS:=$(filter-out res_snmp,$(SELECTED_MODS))
 else
   SNMP_LDLIBS+=$(shell net-snmp-config --agent-libs)
 endif
 
+MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
+
 all: depend $(MODS)
 
 install: all
index 39e2cdb..5fb48d5 100644 (file)
@@ -141,13 +141,3 @@ const char *description(void)
 {
     return MODULE_DESCRIPTION;
 }
-
-/*
- * Local Variables:
- * c-file-style: gnu
- * c-basic-offset: 4
- * c-file-offsets: ((case-label . 0))
- * tab-width: 4
- * indent-tabs-mode: t
- * End:
- */
index b511926..dc31d27 100644 (file)
@@ -26,7 +26,7 @@ ifeq ($(NEWT_LIB),)
   UTILS:=$(filter-out astman,$(UTILS))
 endif
 
-ifneq ($(filter pbx_ael.so,$(MENUSELECT_PBX)),)
+ifneq ($(filter pbx_ael,$(MENUSELECT_PBX)),)
   UTILS:=$(filter-out aelparse,$(UTILS))
 endif