Skip to content

Commit

Permalink
format_mp3: Don't try to build format_mp3 if we don't have sources
Browse files Browse the repository at this point in the history
ASTERISK-23951 #close
Reported by: Tzafrir Cohen

Change-Id: Iebf181d44bb735787fde4b5be863c4d7e2478a30
  • Loading branch information
seanbright committed May 25, 2017
1 parent d6992da commit 59348aa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions addons/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 "*** ***" ; \
Expand Down

0 comments on commit 59348aa

Please sign in to comment.