]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
format_mp3: Don't try to build format_mp3 if we don't have sources
authorSean Bright <sean.bright@gmail.com>
Thu, 25 May 2017 16:10:00 +0000 (12:10 -0400)
committerSean Bright <sean.bright@gmail.com>
Thu, 25 May 2017 16:13:48 +0000 (12:13 -0400)
ASTERISK-23951 #close
Reported by: Tzafrir Cohen

Change-Id: Iebf181d44bb735787fde4b5be863c4d7e2478a30

addons/Makefile

index ac4afb2a38ccd3df083472adb071fd94cf589c09..be5cd5e2f320e0073dd3d9401343afa486f54da5 100644 (file)
@@ -30,9 +30,12 @@ ALL_C_MODS:=app_mysql \
             cdr_mysql \
             chan_mobile \
             chan_ooh323 \
-            format_mp3 \
             res_config_mysql
 
+ifneq ($(wildcard mp3/Makefile),)
+       ALL_C_MODS += format_mp3
+endif
+
 all: check_mp3 _all
 
 check_mp3:
@@ -41,10 +44,10 @@ ifeq ($(filter format_mp3,$(MENUSELECT_ADDONS)),)
                echo ; \
                echo "**************************************************************" ; \
                echo "***                                                        ***" ; \
-               echo "***   --->  READ THIS OR YOUR BUILD WILL FAIL  <---        ***" ; \
+               echo "***    ---> IMPORTANT INFORMATION ABOUT format_mp3 <---    ***" ; \
                echo "***                                                        ***" ; \
                echo "*** format_mp3 has been selected to be installed, but the  ***" ; \
-               echo "*** mp3 decoder library has not yet been downloaded into   ***" ; \
+               echo "*** MP3 decoder library has not yet been downloaded into   ***" ; \
                echo "*** the source tree.  To do so, please run the following   ***" ; \
                echo "*** command:                                               ***" ; \
                echo "***                                                        ***" ; \