diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-05-25 12:10:00 -0400 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-05-25 11:15:04 -0500 |
commit | 59348aa18206b9d15d46ed8d78f811b611f6405b (patch) | |
tree | a0294513647266586a268fdd816629e93012a2d2 /addons | |
parent | d6992daaefee1a44a188aa544fc79cab24d274f0 (diff) |
format_mp3: Don't try to build format_mp3 if we don't have sources
ASTERISK-23951 #close
Reported by: Tzafrir Cohen
Change-Id: Iebf181d44bb735787fde4b5be863c4d7e2478a30
Diffstat (limited to 'addons')
-rw-r--r-- | addons/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/addons/Makefile b/addons/Makefile index d12d0fd3b..82bbc49a1 100644 --- a/addons/Makefile +++ b/addons/Makefile @@ -32,9 +32,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: @@ -43,10 +46,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 "*** ***" ; \ |