Changeset 21753


Ignore:
Timestamp:
2010-06-10T13:53:13+02:00 (7 years ago)
Author:
zandbelt
Message:

[packages] asterisk16: add CURL support for asterisk-1.6.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/asterisk-1.6.x/Makefile

    r21480 r21753  
    1010PKG_NAME:=asterisk 
    1111PKG_VERSION:=1.6.2.6 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    126126 support to Asterisk. 
    127127endef 
     128 
     129define Package/asterisk16-curl 
     130$(call Package/asterisk16/Default) 
     131  TITLE:=CURL support 
     132  DEPENDS:= +asterisk16 +libcurl 
     133endef 
     134 
     135define Package/asterisk16-curl/description 
     136$(call Package/asterisk16/Default/description) 
     137 This package provides CURL 
     138 support to Asterisk. 
     139endef 
     140 
    128141  
    129142CONFIGURE_ARGS+= \ 
    130         --without-curl \ 
    131143        --without-curses \ 
    132144        --with-gsm=internal \ 
     
    179191endif 
    180192 
     193ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk16-curl),) 
     194  CONFIGURE_ARGS+= \ 
     195        --with-curl="$(STAGING_DIR)/usr" 
     196else 
     197  CONFIGURE_ARGS+= \ 
     198        --without-curl 
     199endif 
     200 
     201 
    181202EXTRA_CFLAGS:= $(TARGET_CPPFLAGS) 
    182203EXTRA_LDFLAGS:= $(TARGET_LDFLAGS) 
     
    339360endef 
    340361 
     362define Package/asterisk16-curl/install 
     363        $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules 
     364        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/func_curl.so $(1)/usr/lib/asterisk/modules/ 
     365        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_curl.so $(1)/usr/lib/asterisk/modules/ 
     366endef 
     367 
    341368define BuildAsterisk16ModuleTemplate 
    342369 
     
    368395$(eval $(call BuildPackage,asterisk16-res-musiconhold)) 
    369396$(eval $(call BuildPackage,asterisk16-chan-gtalk)) 
     397$(eval $(call BuildPackage,asterisk16-curl)) 
    370398$(eval $(call BuildAsterisk16ModuleTemplate,app_authenticate,Authenticate,support for executing arbitrary authenticate commands)) 
    371399$(eval $(call BuildAsterisk16ModuleTemplate,app_chanisavail,Channel availability check,support for checking if a channel is available)) 
Note: See TracChangeset for help on using the changeset viewer.