aboutsummaryrefslogtreecommitdiffstats
path: root/sounds/Makefile
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-26 19:20:23 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-26 19:20:23 +0000
commit71613c58072f77b13edc80f81a77b4eb3cf67b2b (patch)
treed17891a8c2589495e4210bc9fea9d7a867b9db44 /sounds/Makefile
parent1dfe19a9b42b4697444d26412476b6b864cd1dc0 (diff)
Merged revisions 279562 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ................ r279562 | tilghman | 2010-07-26 14:18:26 -0500 (Mon, 26 Jul 2010) | 9 lines Merged revisions 279561 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........ r279561 | tilghman | 2010-07-26 14:15:59 -0500 (Mon, 26 Jul 2010) | 2 lines Use a special Makefile for noobs who still have GNU Make 3.80. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@279564 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'sounds/Makefile')
-rw-r--r--sounds/Makefile187
1 files changed, 0 insertions, 187 deletions
diff --git a/sounds/Makefile b/sounds/Makefile
deleted file mode 100644
index b5e14b1bc..000000000
--- a/sounds/Makefile
+++ /dev/null
@@ -1,187 +0,0 @@
-#
-# Asterisk -- A telephony toolkit for Linux.
-#
-# Makefile for sound files
-#
-# Copyright (C) 2006, Digium, Inc.
-#
-# Kevin P. Fleming <kpfleming@digium.com>
-#
-# This program is free software, distributed under the terms of
-# the GNU General Public License
-#
-
-.PHONY: dist-clean all uninstall have_download install
-
--include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/makeopts
-
-CMD_PREFIX?=@
-SOUNDS_DIR:=$(DESTDIR)$(ASTDATADIR)/sounds
-SOUNDS_CACHE_DIR?=
-MOH_DIR:=$(DESTDIR)$(ASTDATADIR)/moh
-CORE_SOUNDS_VERSION:=1.4.19
-EXTRA_SOUNDS_VERSION:=1.4.11
-MOH_VERSION:=2.03
-SOUNDS_URL:=http://downloads.asterisk.org/pub/telephony/sounds/releases
-MCS:=$(subst -EN-,-en-,$(MENUSELECT_CORE_SOUNDS))
-MCS:=$(subst -FR-,-fr-,$(MCS))
-MCS:=$(subst -ES-,-es-,$(MCS))
-MCS:=$(subst -WAV,-wav,$(MCS))
-MCS:=$(subst -ULAW,-ulaw,$(MCS))
-MCS:=$(subst -ALAW,-alaw,$(MCS))
-MCS:=$(subst -GSM,-gsm,$(MCS))
-MCS:=$(subst -G729,-g729,$(MCS))
-MCS:=$(subst -G722,-g722,$(MCS))
-MCS:=$(subst -SLN16,-sln16,$(MCS))
-MCS:=$(subst -SIREN7,-siren7,$(MCS))
-MCS:=$(subst -SIREN14,-siren14,$(MCS))
-CORE_SOUNDS:=$(MCS:CORE-SOUNDS-%=asterisk-core-sounds-%-$(CORE_SOUNDS_VERSION).tar.gz)
-CORE_SOUND_TAGS:=$(MCS:CORE-SOUNDS-%=$(SOUNDS_DIR)/.asterisk-core-sounds-%-$(CORE_SOUNDS_VERSION))
-MES:=$(subst -EN-,-en-,$(MENUSELECT_EXTRA_SOUNDS))
-MES:=$(subst -FR-,-fr-,$(MES))
-MES:=$(subst -ES-,-es-,$(MES))
-MES:=$(subst -WAV,-wav,$(MES))
-MES:=$(subst -ULAW,-ulaw,$(MES))
-MES:=$(subst -ALAW,-alaw,$(MES))
-MES:=$(subst -GSM,-gsm,$(MES))
-MES:=$(subst -G729,-g729,$(MES))
-MES:=$(subst -G722,-g722,$(MES))
-MES:=$(subst -SLN16,-sln16,$(MES))
-MES:=$(subst -SIREN7,-siren7,$(MES))
-MES:=$(subst -SIREN14,-siren14,$(MES))
-EXTRA_SOUNDS:=$(MES:EXTRA-SOUNDS-%=asterisk-extra-sounds-%-$(EXTRA_SOUNDS_VERSION).tar.gz)
-EXTRA_SOUND_TAGS:=$(MES:EXTRA-SOUNDS-%=$(SOUNDS_DIR)/.asterisk-extra-sounds-%-$(EXTRA_SOUNDS_VERSION))
-MM:=$(subst -OPSOUND-,-opsound-,$(MENUSELECT_MOH))
-MM:=$(subst -WAV,-wav,$(MM))
-MM:=$(subst -ULAW,-ulaw,$(MM))
-MM:=$(subst -ALAW,-alaw,$(MM))
-MM:=$(subst -GSM,-gsm,$(MM))
-MM:=$(subst -G729,-g729,$(MM))
-MM:=$(subst -G722,-g722,$(MM))
-MM:=$(subst -SLN16,-sln16,$(MM))
-MM:=$(subst -SIREN7,-siren7,$(MM))
-MM:=$(subst -SIREN14,-siren14,$(MM))
-MOH:=$(MM:MOH-%=asterisk-moh-%-$(MOH_VERSION).tar.gz)
-MOH_TAGS:=$(MM:MOH-%=$(MOH_DIR)/.asterisk-moh-%-$(MOH_VERSION))
-# If "fetch" is used, --continue is not a valid option.
-ifneq ($(findstring wget,$(DOWNLOAD)),)
-DOWNLOAD+=--continue $(WGET_EXTRA_ARGS)
-endif
-
-EMPTY:=
-BS:=$(EMPTY)\$(EMPTY)
-
-ifneq ($(SOUNDS_CACHE_DIR),)
-
-define sound_format_lang_rule
-$$($(1))/.asterisk-$(2)$(if $(3),-$(3),)-%: have_download
- $(CMD_PREFIX)PACKAGE=$$(subst $$($(1))/.asterisk,asterisk,$$@).tar.gz; $(BS)
- if test ! -f $$$${PACKAGE}; then $(BS)
- if test ! -f $$(SOUNDS_CACHE_DIR)/$$$${PACKAGE}; then $(BS)
- (cd $$(SOUNDS_CACHE_DIR); ($$(DOWNLOAD) $$(SOUNDS_URL)/$$$${PACKAGE} && $(BS)
- $$(DOWNLOAD) $$(SOUNDS_URL)/$$$${PACKAGE}.sha1 $(BS)
- && $$(SHA1SUM) -c --status $$$${PACKAGE}.sha1) || $(BS)
- (echo "Bad checksum: $$$${PACKAGE}" 1>&2; exit 1)); $(BS)
- fi; $(BS)
- $(LN) -sf $$(SOUNDS_CACHE_DIR)/$$$${PACKAGE} .; $(BS)
- fi; $(BS)
-$(if $($(4)_VERSION),\
-$(EMPTY) rm -f $$(subst -$$($(4)_VERSION),,$$@)-* && $(BS)
-,) (cd $$($(1))$(if $(3),/$(3),); cat $$(CURDIR)/$$$${PACKAGE} | gzip -d | tar xof -) && $(BS)
- touch $$@
-endef
-
-define sound_download_rule
-asterisk-$(1)-%.tar.gz: have_download
- $(CMD_PREFIX)if test ! -f $$@ && test ! -f $$(SOUNDS_DIR)/.$$(subst .tar.gz,,$/$@); then $(BS)
- if test ! -f $$(SOUNDS_CACHE_DIR)/$$@; then $(BS)
- (cd $$(SOUNDS_CACHE_DIR); ($$(DOWNLOAD) $$(SOUNDS_URL)/$$@ && $(BS)
- $$(DOWNLOAD) $$(SOUNDS_URL)/$$@.sha1 $(BS)
- && $$(SHA1SUM) -c --status $$@.sha1) || $(BS)
- (echo "Bad checksum: $$@" 1>&2; exit 1)); $(BS)
- fi; $(BS)
- $(LN) -sf $$(SOUNDS_CACHE_DIR)/$$@ .; $(BS)
- fi
-endef
-
-else
-
-define sound_format_lang_rule
-$$($(1))/.asterisk-$(2)$(if $(3),-$(3),)-%: have_download
- $(CMD_PREFIX)PACKAGE=$$(subst $$($(1))/.asterisk,asterisk,$$@).tar.gz; $(BS)
- if test ! -f $$$${PACKAGE}; then $(BS)
- ($$(DOWNLOAD) $$(SOUNDS_URL)/$$$${PACKAGE} || exit 1); $(BS)
- fi; $(BS)
-$(if $($(4)_VERSION),\
-$(EMPTY) rm -f $$(subst -$$($(4)_VERSION),,$$@)-* && $(BS)
-,) (cd $$($(1))$(if $(3),/$(3),); cat $$(CURDIR)/$$$${PACKAGE} | gzip -d | tar xof -) && $(BS)
- touch $$@
-endef
-
-define sound_download_rule
-asterisk-$(1)-%.tar.gz: have_download
- $(CMD_PREFIX)if test ! -f $$@ && test ! -f $$(SOUNDS_DIR)/.$$(subst .tar.gz,,$$@); then $(BS)
- $$(DOWNLOAD) $$(SOUNDS_URL)/$$@; $(BS)
- fi
-endef
-
-endif
-
-all: $(SOUNDS_CACHE_DIR) $(CORE_SOUNDS) $(EXTRA_SOUNDS) $(MOH)
-
-have_download:
- @if test "$(DOWNLOAD)" = ":" ; then \
- echo "**************************************************"; \
- echo "*** ***"; \
- echo "*** You must have either wget or fetch to be ***"; \
- echo "*** able to automatically download and install ***"; \
- echo "*** the requested sound packages. ***"; \
- echo "*** ***"; \
- echo "*** Please install one of these, or remove any ***"; \
- echo "*** extra sound package selections in ***"; \
- echo "*** menuselecct before installing Asterisk. ***"; \
- echo "*** ***"; \
- echo "**************************************************"; \
- exit 1; \
- fi
-
-$(eval $(call sound_format_lang_rule,SOUNDS_DIR,core-sounds,en,CORE_SOUNDS))
-
-$(eval $(call sound_format_lang_rule,SOUNDS_DIR,core-sounds,es,CORE_SOUNDS))
-
-$(eval $(call sound_format_lang_rule,SOUNDS_DIR,core-sounds,fr,CORE_SOUNDS))
-
-$(eval $(call sound_format_lang_rule,SOUNDS_DIR,extra-sounds,en,EXTRA_SOUNDS))
-
-$(eval $(call sound_format_lang_rule,SOUNDS_DIR,extra-sounds,es,EXTRA_SOUNDS))
-
-$(eval $(call sound_format_lang_rule,SOUNDS_DIR,extra-sounds,fr,EXTRA_SOUNDS))
-
-$(eval $(call sound_format_lang_rule,MOH_DIR,moh,,MOH))
-
-$(eval $(call sound_download_rule,core))
-
-$(eval $(call sound_download_rule,extra))
-
-$(eval $(call sound_download_rule,moh))
-
-dist-clean:
- rm -f *.tar.gz
-
-$(SOUNDS_DIR)/en $(MOH_DIR) $(SOUNDS_DIR)/es $(SOUNDS_DIR)/fr $(SOUNDS_CACHE_DIR):
- $(INSTALL) -d $@
-
-install: ${SOUNDS_CACHE_DIR} $(SOUNDS_DIR)/en $(SOUNDS_DIR)/es $(SOUNDS_DIR)/fr $(MOH_DIR) $(CORE_SOUND_TAGS) $(EXTRA_SOUND_TAGS) $(MOH_TAGS)
-
-uninstall:
- rm -rf $(SOUNDS_DIR)
- rm -rf $(MOH_DIR)
-
-core_sounds_version:
- @echo $(CORE_SOUNDS_VERSION)
-
-extra_sounds_version:
- @echo $(EXTRA_SOUNDS_VERSION)
-
-moh_version:
- @echo $(MOH_VERSION)