diff options
Diffstat (limited to 'package/asterisk/asterisk.mk')
-rw-r--r-- | package/asterisk/asterisk.mk | 49 |
1 files changed, 36 insertions, 13 deletions
diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk index 2e18b79b4..d6c83ec61 100644 --- a/package/asterisk/asterisk.mk +++ b/package/asterisk/asterisk.mk @@ -3,12 +3,12 @@ # asterisk # ############################################################## -ASTERISK_VERSION := 1.2.0-beta1 -ASTERISK_SOURCE := asterisk-$(ASTERISK_VERSION).tar.gz -ASTERISK_SITE := ftp://ftp.digium.com/pub/asterisk/old-releases -ASTERISK_DIR := $(BUILD_DIR)/asterisk-$(ASTERISK_VERSION) -ASTERISK_BINARY := asterisk -ASTERISK_TARGET_BINARY := usr/sbin/asterisk +ASTERISK_VERSION:=1.2.0-beta1 +ASTERISK_SOURCE:=asterisk-$(ASTERISK_VERSION).tar.gz +ASTERISK_SITE:=ftp://ftp.digium.com/pub/asterisk/old-releases +ASTERISK_DIR:=$(BUILD_DIR)/asterisk-$(ASTERISK_VERSION) +ASTERISK_BINARY:=asterisk +ASTERISK_TARGET_BINARY:=usr/sbin/asterisk $(DL_DIR)/$(ASTERISK_SOURCE): $(WGET) -P $(DL_DIR) $(ASTERISK_SITE)/$(ASTERISK_SOURCE) @@ -16,27 +16,50 @@ $(DL_DIR)/$(ASTERISK_SOURCE): $(ASTERISK_DIR)/.source: $(DL_DIR)/$(ASTERISK_SOURCE) $(ZCAT) $(DL_DIR)/$(ASTERISK_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - toolchain/patch-kernel.sh $(ASTERISK_DIR) package/asterisk/ asterisk\*.patch - touch $(ASTERISK_DIR)/.source + touch $@ $(ASTERISK_DIR)/.configured: $(ASTERISK_DIR)/.source - touch $(ASTERISK_DIR)/.configured + touch $@ $(ASTERISK_DIR)/$(ASTERISK_BINARY): $(ASTERISK_DIR)/.configured - $(MAKE1) -C $(ASTERISK_DIR) CROSS_ARCH=Linux CROSS_COMPILE=$(TARGET_CROSS) CROSS_COMPILE_BIN=$(STAGING_DIR)/bin/ CROSS_COMPILE_TARGET=$(STAGING_DIR) CROSS_PROC=$(OPTIMIZE_FOR_CPU) OPTIMIZE="$(TARGET_OPTIMIZATION)" OPTIONS=-DLOW_MEMORY DEBUG= $(TARGET_CONFIGURE_OPTS) + $(MAKE1) -C $(ASTERISK_DIR) \ + CROSS_ARCH=Linux \ + CROSS_COMPILE=$(TARGET_CROSS) \ + CROSS_COMPILE_BIN=$(STAGING_DIR)/bin/ \ + CROSS_COMPILE_TARGET=$(STAGING_DIR) \ + CROSS_PROC=$(OPTIMIZE_FOR_CPU) \ + OPTIMIZE="$(TARGET_OPTIMIZATION)" \ + OPTIONS=-DLOW_MEMORY \ + DEBUG= \ + $(TARGET_CONFIGURE_OPTS) $(TARGET_DIR)/$(ASTERISK_TARGET_BINARY): $(ASTERISK_DIR)/$(ASTERISK_BINARY) - $(MAKE) -C $(ASTERISK_DIR) CROSS_ARCH=Linux CROSS_COMPILE=$(TARGET_CROSS) CROSS_COMPILE_BIN=$(TARGET_CC) CROSS_COMPILE_TARGET=$(STAGING_DIR) CROSS_PROC=$(OPTIMIZE_FOR_CPU) OPTIMIZE="$(TARGET_OPTIMIZATION)" OPTIONS=-DLOW_MEMORY DEBUG= $(TARGET_CONFIGURE_OPTS) DESTDIR=$(TARGET_DIR) install + $(MAKE) -C $(ASTERISK_DIR) \ + CROSS_ARCH=Linux \ + CROSS_COMPILE=$(TARGET_CROSS) \ + CROSS_COMPILE_BIN=$(TARGET_CC) \ + CROSS_COMPILE_TARGET=$(STAGING_DIR) \ + CROSS_PROC=$(OPTIMIZE_FOR_CPU) \ + OPTIMIZE="$(TARGET_OPTIMIZATION)" \ + OPTIONS=-DLOW_MEMORY \ + DEBUG= \ + $(TARGET_CONFIGURE_OPTS) \ + DESTDIR=$(TARGET_DIR) install $(STRIP) $(TARGET_DIR)/usr/sbin/asterisk $(STRIP) $(TARGET_DIR)/usr/sbin/stereorize $(STRIP) $(TARGET_DIR)/usr/sbin/streamplayer - $(STRIP) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/asterisk/modules/*.so - $(INSTALL) -m 755 $(ASTERISK_DIR)/contrib/init.d/rc.debian.asterisk $(TARGET_DIR)/etc/init.d/S60asterisk + $(STRIP) $(STRIP_STRIP_UNNEEDED) \ + $(TARGET_DIR)/usr/lib/asterisk/modules/*.so + $(INSTALL) -m 755 $(ASTERISK_DIR)/contrib/init.d/rc.debian.asterisk \ + $(TARGET_DIR)/etc/init.d/S60asterisk mv $(TARGET_DIR)/usr/include/asterisk $(STAGING_DIR)/usr/include/ +ifneq ($(BR2_HAVE_MANPAGES),y) rm -Rf $(TARGET_DIR)/usr/share/man +endif rm -f $(TARGET_DIR)/usr/sbin/safe_asterisk rm -f $(TARGET_DIR)/usr/sbin/autosupport rm -f $(TARGET_DIR)/usr/sbin/astgenkey - touch -c $(TARGET_DIR)/$(ASTERISK_TARGET_BINARY) + touch -c $@ asterisk: uclibc ncurses zlib openssl mpg123 $(TARGET_DIR)/$(ASTERISK_TARGET_BINARY) |