X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/60216fbd0007109ad59dc3d60def17746341ee30..ce409cfdea924fd84ab05cbfb61f22c678264d57:/openwrt/package/asterisk/Makefile?ds=sidebyside diff --git a/openwrt/package/asterisk/Makefile b/openwrt/package/asterisk/Makefile index 5c5dd7bf0..35b52ec7d 100644 --- a/openwrt/package/asterisk/Makefile +++ b/openwrt/package/asterisk/Makefile @@ -3,13 +3,14 @@ include $(TOPDIR)/rules.mk PKG_NAME:=asterisk -PKG_VERSION:=1.0.7 +PKG_VERSION:=1.0.9 PKG_RELEASE:=1 -PKG_MD5SUM:=4cc3c1e4a1b12e0e4c748326ad153291 +PKG_MD5SUM:=0d7f1c680ae53a739f26a069ef8b580a -PKG_SOURCE_URL:=http://www.asterisk.org/html/downloads ftp://ftp.asterisk.org/pub/asterisk +PKG_SOURCE_URL:=http://ftp.digium.com/pub/asterisk/ ftp://ftp.digium.com/pub/asterisk/ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/install PKG_CAT:=zcat include $(TOPDIR)/package/rules.mk @@ -19,10 +20,16 @@ $(eval $(call PKG_template,ASTERISK_PGSQL,asterisk-pgsql,$(PKG_VERSION)-$(PKG_RE $(eval $(call PKG_template,ASTERISK_VOICEMAIL,asterisk-voicemail,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,ASTERISK_SOUNDS,asterisk-sounds,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,ASTERISK_CODEC_ILBC,asterisk-codec-ilbc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,ASTERISK_CHAN_BLUETOOTH,asterisk-chan-bluetooth,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,ASTERISK_CODEC_LPC10,asterisk-codec-lpc10,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,ASTERISK_CODEC_SPEEX,asterisk-codec-speex,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,ASTERISK_PBX_DUNDI,asterisk-pbx-dundi,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +ifneq ($(DEVELOPER),) +APPS:=app_sql_mysql.so app_sql_postgres.so +MODS:=cdr_mysql.so cdr_pgsql.so +SPEEX:=codec_speex.so +else APPS:= MODS:= ifneq ($(BR2_PACKAGE_ASTERISK_MYSQL),) @@ -36,6 +43,7 @@ endif ifneq ($(BR2_PACKAGE_ASTERISK_CODEC_SPEEX),) SPEEX:=codec_speex.so endif +endif $(PKG_BUILD_DIR)/.configured: touch $@ @@ -55,12 +63,13 @@ $(PKG_BUILD_DIR)/.built: EXTRA_APPS="$(APPS)" \ EXTRA_MODS="$(MODS)" \ MODSPEEX="$(SPEEX)" + $(MAKE) -C $(PKG_BUILD_DIR) \ + DESTDIR="$(PKG_INSTALL_DIR)" \ + install samples touch $@ $(IPKG_ASTERISK): - $(MAKE) -C $(PKG_BUILD_DIR) \ - DESTDIR="$(IDIR_ASTERISK)" \ - install samples + cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_ASTERISK) rm -rf $(IDIR_ASTERISK)/usr/sbin/astgenkey rm -rf $(IDIR_ASTERISK)/usr/bin rm -rf $(IDIR_ASTERISK)/usr/share @@ -79,12 +88,14 @@ $(IPKG_ASTERISK): *musiconhold* *zapateller* *jpeg*; \ rm -f {codec,format}_ilbc.so ; \ rm -f codec_lpc10.so ; \ + rm -f chan_bluetooth.so ; \ rm -f pbx_dundi.so ; \ ) (cd $(IDIR_ASTERISK)/etc/asterisk; \ rm -f *odbc* *mysql* *postgres* *pgsql* *voicemail* *adsi* *oss* *alsa* \ *festival* *modem* *meetme* *phone* *tds* *vofr* *rpt* *vpb* \ *zapata* *musiconhold*; \ + rm -f bluetooth.conf ; \ rm -f dundi.conf ; \ ) install -d -m0755 $(IDIR_ASTERISK)/etc/default @@ -128,6 +139,14 @@ $(IPKG_ASTERISK_VOICEMAIL): $(RSTRIP) $(IDIR_ASTERISK_VOICEMAIL) $(IPKG_BUILD) $(IDIR_ASTERISK_VOICEMAIL) $(PACKAGE_DIR) +$(IPKG_ASTERISK_CHAN_BLUETOOTH): + install -d -m0755 $(IDIR_ASTERISK_CHAN_BLUETOOTH)/etc/asterisk + install -m0644 $(PKG_BUILD_DIR)/configs/bluetooth.conf $(IDIR_ASTERISK_CHAN_BLUETOOTH)/etc/asterisk/bluetooth.conf + install -d -m0755 $(IDIR_ASTERISK_CHAN_BLUETOOTH)/usr/lib/asterisk/modules + install -m0755 $(PKG_BUILD_DIR)/channels/chan_bluetooth.so $(IDIR_ASTERISK_CHAN_BLUETOOTH)/usr/lib/asterisk/modules/ + $(RSTRIP) $(IDIR_ASTERISK_CHAN_BLUETOOTH) + $(IPKG_BUILD) $(IDIR_ASTERISK_CHAN_BLUETOOTH) $(PACKAGE_DIR) + $(IPKG_ASTERISK_CODEC_ILBC): install -d -m0755 $(IDIR_ASTERISK_CODEC_ILBC)/usr/lib/asterisk/modules install -m0755 $(PKG_BUILD_DIR)/codecs/codec_ilbc.so $(IDIR_ASTERISK_CODEC_ILBC)/usr/lib/asterisk/modules/