Changeset 26935


Ignore:
Timestamp:
2011-05-18T14:32:00+02:00 (7 years ago)
Author:
mazilo
Message:

update to v1.0.7 (a daily snapshot of git version)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/freeswitch/Makefile

    r26048 r26935  
    99 
    1010PKG_NAME:=freeswitch 
    11 PKG_VERSION:=1.0.6 
    12 PKG_RELEASE:=11 
    13  
    14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     11PKG_VERSION:=1.0.7 
     12PKG_RELEASE:=$(PKG_SOURCE_VERSION) 
     13 
     14PKG_SOURCE_PROTO:=git 
     15PKG_SOURCE_URL:=git://git.$(PKG_NAME).org/$(PKG_NAME).git 
     16PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 
     17PKG_SOURCE_VERSION:=86d757d61bd82a73a13fbc387f788c33436c295d 
     18PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
    1519PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    16 PKG_SOURCE_URL:=http://files.freeswitch.org/ 
    17 PKG_MD5SUM:=388effee587887a81fe7f411b7350590 
    18  
    19 PKG_FIXUP:=libtool no-autoreconf 
     20 
     21PKG_FIXUP:=libtool 
    2022 
    2123FS_MOD_AVAILABLE:= \ 
     
    2931        cidlookup \ 
    3032        cluechoo \ 
     33        codec2 \ 
    3134        commands \ 
    3235        conference \ 
     
    4851        event-socket \ 
    4952        expr \ 
    50         fax \ 
    5153        fifo \ 
    5254        file-string \ 
     
    5759        h26x \ 
    5860        h323 \ 
     61        hash \ 
    5962        ilbc \ 
    6063        lcr \ 
    6164        ldap \ 
    62         limit \ 
    6365        local-stream \ 
    6466        logfile \ 
     
    100102        sofia \ 
    101103        soundtouch \ 
     104        spandsp \ 
    102105        speex \ 
    103106        spidermonkey \ 
     
    115118        vmd \ 
    116119        voicemail \ 
    117         voipcodecs \ 
    118120        xml-cdr \ 
    119121        xml-curl \ 
     
    123125 
    124126PKG_CONFIG_DEPENDS:= \ 
    125         $(patsubst %,CONFIG_PACKAGE_freeswitch-mod-%,$(FS_MOD_AVAILABLE)) \ 
     127        $(patsubst %,CONFIG_PACKAGE_$(PKG_NAME)-mod-%,$(FS_MOD_AVAILABLE)) \ 
    126128 
    127129include $(INCLUDE_DIR)/package.mk 
    128130 
    129 define Package/freeswitch/Default 
     131define Package/$(PKG_NAME)/Default 
    130132  SECTION:=net 
    131133  CATEGORY:=Network 
    132134  SUBMENU:=Telephony 
    133   URL:=http://www.freeswitch.org/ 
    134 endef 
    135  
    136  
    137 define Package/freeswitch 
    138 $(call Package/freeswitch/Default) 
     135  URL:=http://www.$(PKG_NAME).org/ 
     136  MAINTAINER:=Mazilo <OpenWRT@slickdeals.endjunk.com> 
     137endef 
     138 
     139 
     140define Package/$(PKG_NAME) 
     141$(call Package/$(PKG_NAME)/Default) 
    139142  TITLE:=FreeSWITCH open source telephony platform 
    140143  DEPENDS:= +libopenssl +libreadline +libncurses +libpthread +libstdcpp 
     
    142145endef 
    143146 
    144 define Package/freeswitch/description 
     147define Package/$(PKG_NAME)/description 
    145148  FreeSWITCH is an open source telephony platform designed to  
    146149  facilitate the creation of voice and chat driven products scaling  
    147   from a soft-phone up to a soft-switch.  See http://wiki.freeswitch.org 
    148 endef 
    149  
    150 define Package/freeswitch-example-config 
    151 $(call Package/freeswitch/Default) 
     150  from a soft-phone up to a soft-switch.  See http://wiki.$(PKG_NAME).org 
     151endef 
     152 
     153define Package/$(PKG_NAME)-example-config 
     154$(call Package/$(PKG_NAME)/Default) 
    152155  TITLE:=FreeSWITCH example config (commented) 
    153   DEPENDS:= freeswitch 
    154 endef 
    155  
    156 define Package/freeswitch-example-config/description 
     156  DEPENDS:= $(PKG_NAME) 
     157endef 
     158 
     159define Package/$(PKG_NAME)-example-config/description 
    157160  The default configuration included with FreeSWITCH. It is not intended to be 
    158   a final product, and is thus moved to /usr/share/freeswitch/examples/conf to 
     161  a final product, and is thus moved to /usr/share/$(PKG_NAME)/examples/conf to 
    159162  be an example of how FreeSWITCH can be configured. 
    160163endef 
    161164 
    162 define Package/freeswitch-config-upstream-defaults 
    163 $(call Package/freeswitch/Default) 
     165define Package/$(PKG_NAME)-config-upstream-defaults 
     166$(call Package/$(PKG_NAME)/Default) 
    164167  TITLE:=FreeSWITCH upstream config 
    165   DEPENDS:= freeswitch 
    166 endef 
    167  
    168 define Package/freeswitch-config-upstream-defaults/description 
     168  DEPENDS:= $(PKG_NAME) 
     169endef 
     170 
     171define Package/$(PKG_NAME)-config-upstream-defaults/description 
    169172  The default configuration included with FreeSWITCH. It is not intended to be 
    170173  a final product, and but is included for those who don't want to use the  
     
    172175endef 
    173176 
    174 define Package/freeswitch-config-minimal 
    175 $(call Package/freeswitch/Default) 
     177define Package/$(PKG_NAME)-config-minimal 
     178$(call Package/$(PKG_NAME)/Default) 
    176179  TITLE:=FreeSWITCH a minimal FS config 
    177   DEPENDS:= freeswitch 
    178 endef 
    179  
    180 define Package/freeswitch-config-minimal/description 
     180  DEPENDS:= $(PKG_NAME) 
     181endef 
     182 
     183define Package/$(PKG_NAME)-config-minimal/description 
    181184  A minimal configuration of FreeSWITCH for OpenWRT devices.  Is what the UCI  
    182185  configuration began with. 
    183186endef 
    184187 
    185 define Package/freeswitch-collection-upstream-defaults 
    186 $(call Package/freeswitch/Default) 
     188define Package/$(PKG_NAME)-collection-upstream-defaults 
     189$(call Package/$(PKG_NAME)/Default) 
    187190  TITLE:=FreeSWITCH upstream default (sample) config 
    188   DEPENDS:= freeswitch \ 
    189                 +freeswitch-config-upstream-defaults \ 
    190                 +freeswitch-mod-commands \ 
    191                 +freeswitch-mod-conference \ 
    192                 +freeswitch-mod-syslog \ 
    193                 +freeswitch-mod-curl \ 
    194                 +freeswitch-mod-dialplan-xml \ 
    195                 +freeswitch-mod-dptools \ 
    196                 +freeswitch-mod-event-socket \ 
    197                 +freeswitch-mod-g723-1 \ 
    198                 +freeswitch-mod-ilbc \ 
    199                 +freeswitch-mod-limit \ 
    200                 +freeswitch-mod-local-stream \ 
    201                 +freeswitch-mod-logfile \ 
    202                 +freeswitch-mod-lua \ 
    203                 +freeswitch-mod-native-file \ 
    204                 +freeswitch-mod-sndfile \ 
    205                 +freeswitch-mod-sofia \ 
    206                 +freeswitch-mod-speex \ 
    207                 +freeswitch-mod-tone-stream \ 
    208                 +freeswitch-mod-voipcodecs \ 
    209                 +freeswitch-mod-xml-curl \ 
    210                 +freeswitch-mod-xml-rpc \ 
    211                 +freeswitch-tools 
    212 endef 
    213  
    214 define Package/freeswitch-collection-minimal 
    215 $(call Package/freeswitch/Default) 
     191  DEPENDS:= $(PKG_NAME) \ 
     192                +$(PKG_NAME)-config-upstream-defaults \ 
     193                +$(PKG_NAME)-mod-callcenter \ 
     194                +$(PKG_NAME)-mod-codec2 \ 
     195                +$(PKG_NAME)-mod-commands \ 
     196                +$(PKG_NAME)-mod-conference \ 
     197                +$(PKG_NAME)-mod-syslog \ 
     198                +$(PKG_NAME)-mod-curl \ 
     199                +$(PKG_NAME)-mod-dialplan-xml \ 
     200                +$(PKG_NAME)-mod-dptools \ 
     201                +$(PKG_NAME)-mod-event-socket \ 
     202                +$(PKG_NAME)-mod-g723-1 \ 
     203                +$(PKG_NAME)-mod-hash \ 
     204                +$(PKG_NAME)-mod-ilbc \ 
     205                +$(PKG_NAME)-mod-local-stream \ 
     206                +$(PKG_NAME)-mod-logfile \ 
     207                +$(PKG_NAME)-mod-lua \ 
     208                +$(PKG_NAME)-mod-native-file \ 
     209                +$(PKG_NAME)-mod-sndfile \ 
     210                +$(PKG_NAME)-mod-sofia \ 
     211                +$(PKG_NAME)-mod-speex \ 
     212                +$(PKG_NAME)-mod-tone-stream \ 
     213                +$(PKG_NAME)-mod-xml-curl \ 
     214                +$(PKG_NAME)-mod-xml-rpc \ 
     215                +$(PKG_NAME)-tools 
     216endef 
     217 
     218define Package/$(PKG_NAME)-collection-minimal 
     219$(call Package/$(PKG_NAME)/Default) 
    216220  TITLE:=A FreeSWITCH minimal package collection 
    217   DEPENDS:= freeswitch \ 
    218                 +freeswitch-config-minimal \ 
    219                 +freeswitch-mod-commands \ 
    220                 +freeswitch-mod-syslog \ 
    221                 +freeswitch-mod-dialplan-xml \ 
    222                 +freeswitch-mod-dptools \ 
    223                 +freeswitch-mod-event-socket \ 
    224                 +freeswitch-mod-local-stream \ 
    225                 +freeswitch-mod-sndfile \ 
    226                 +freeswitch-mod-sofia \ 
    227                 +freeswitch-mod-tone-stream \ 
    228                 +freeswitch-mod-voipcodecs \ 
    229                 +freeswitch-tools 
    230 endef 
    231  
    232 define Package/freeswitch-sounds-en 
    233 $(call Package/freeswitch/Default) 
     221  DEPENDS:= $(PKG_NAME) \ 
     222                +$(PKG_NAME)-config-minimal \ 
     223                +$(PKG_NAME)-mod-codec2 \ 
     224                +$(PKG_NAME)-mod-commands \ 
     225                +$(PKG_NAME)-mod-syslog \ 
     226                +$(PKG_NAME)-mod-dialplan-xml \ 
     227                +$(PKG_NAME)-mod-dptools \ 
     228                +$(PKG_NAME)-mod-event-socket \ 
     229                +$(PKG_NAME)-mod-hash \ 
     230                +$(PKG_NAME)-mod-local-stream \ 
     231                +$(PKG_NAME)-mod-sndfile \ 
     232                +$(PKG_NAME)-mod-sofia \ 
     233                +$(PKG_NAME)-mod-tone-stream \ 
     234                +$(PKG_NAME)-tools 
     235endef 
     236 
     237define Package/$(PKG_NAME)-sounds-en 
     238$(call Package/$(PKG_NAME)/Default) 
    234239  TITLE:=FreeSWITCH english sounds 
    235   DEPENDS:= freeswitch 
    236 endef 
    237  
    238  
    239 define Package/freeswitch-sounds-moh 
    240 $(call Package/freeswitch/Default) 
     240  DEPENDS:= $(PKG_NAME) 
     241endef 
     242 
     243 
     244define Package/$(PKG_NAME)-sounds-moh 
     245$(call Package/$(PKG_NAME)/Default) 
    241246  TITLE:=FreeSWITCH music-on-hold sounds 
    242   DEPENDS:= freeswitch 
    243 endef 
    244  
    245  
    246 define Package/freeswitch-tools 
    247 $(call Package/freeswitch/Default) 
     247  DEPENDS:= $(PKG_NAME) 
     248endef 
     249 
     250 
     251define Package/$(PKG_NAME)-tools 
     252$(call Package/$(PKG_NAME)/Default) 
    248253  TITLE:=FreeSWITCH control tools 
    249   DEPENDS:= freeswitch 
     254  DEPENDS:= $(PKG_NAME) 
    250255endef 
    251256 
     
    254259 define Download/$(1) 
    255260  FILE:=$(2) 
    256   URL:=http://files.freeswitch.org/$(4) 
     261  URL:=http://files.$(PKG_NAME).org/$(4) 
    257262  MD5SUM:=$(3) 
    258263 endef 
    259264 define Prepare/$(1) 
    260   $(CP) $(DL_DIR)/$(2) $(PKG_BUILD_DIR)/$(5) 
     265  $(LN) $(DL_DIR)/$(2) $(PKG_BUILD_DIR)/$(5) 
    261266 endef 
    262267 $$(eval $$(call Download,$(1))) 
     
    265270MAKE_INSTALL_TARGETS:=install 
    266271 
    267 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-celt),) 
    268  $(eval $(call Download/files,celt,celt-0.7.1.tar.gz,c7f6b8346e132b1a48dae0eff77ea9f0,downloads/libs/,libs/)) 
     272ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-celt),) 
     273 $(eval $(call Download/files,celt,celt-0.10.0.tar.gz,a656f6176e9be84027c0e51ceedd710f,downloads/libs/,libs/)) 
    269274endif 
    270275 
    271 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-curl),) 
     276ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-curl),) 
    272277 $(eval $(call Download/files,json-c,json-c-0.9.tar.gz,4653b3b9c568bb9c782178abfaac128d,downloads/libs/,libs/)) 
    273278endif 
    274279 
    275 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-flite),) 
    276  $(eval $(call Download/files,flite,flite-1.3.99-latest.tar.gz,,downloads/libs/,libs/)) 
     280ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-flite),) 
     281 $(eval $(call Download/files,flite,flite-1.3.99-latest.tar.gz,365b60881715c5e13c0d8bc37d9be6ff,downloads/libs/,libs/)) 
    277282endif 
    278283 
    279 ifneq ($(CONFIG_PACKAGE_freeswitch-sounds-en),) 
    280  $(eval $(call Download/files,sounds-en,freeswitch-sounds-en-us-callie-8000-1.0.12.tar.gz,d700439027dd95dd118e5e85f38e4d81,,)) 
     284ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en),) 
     285 $(eval $(call Download/files,sounds-en,$(PKG_NAME)-sounds-en-us-callie-8000-1.0.15.tar.gz,80738b255c89c5f4b229946f03d921c1,,)) 
    281286        MAKE_INSTALL_TARGETS+= sounds-install 
    282287endif 
    283288 
    284 ifneq ($(CONFIG_PACKAGE_freeswitch-sounds-moh),) 
    285  $(eval $(call Download/files,sounds-moh,freeswitch-sounds-music-8000-1.0.8.tar.gz,f63ef3cc3507af079ae5c7b8b8a01e42,,)) 
     289ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh),) 
     290 $(eval $(call Download/files,sounds-moh,$(PKG_NAME)-sounds-music-8000-1.0.8.tar.gz,f63ef3cc3507af079ae5c7b8b8a01e42,,)) 
    286291        MAKE_INSTALL_TARGETS+= moh-install 
    287292endif 
     
    304309 
    305310CONFIGURE_ARGS+= \ 
    306         --prefix="/usr/share/freeswitch" \ 
     311        --prefix="/usr/share/$(PKG_NAME)" \ 
    307312        --bindir="/usr/bin" \ 
    308313        --libdir="/usr/lib" \ 
    309         --sysconfdir="/etc/freeswitch" \ 
    310         --with-modinstdir="/usr/lib/freeswitch" \ 
     314        --sysconfdir="/etc/$(PKG_NAME)" \ 
     315        --with-modinstdir="/usr/lib/$(PKG_NAME)" \ 
    311316        --enable-ipv6 \ 
    312         \ 
    313         --with-libcurl="$(STAGING_DIR)/usr" \ 
    314         --with-openssl="$(STAGING_DIR)/usr" \ 
     317        --disable-zrtp \ 
    315318        --with-random="/dev/urandom" \ 
    316         --without-erlang \ 
    317         --without-java \ 
    318319        --without-mysql \ 
    319         --without-pgsql \ 
    320         --without-python \ 
    321         --disable-zrtp \ 
     320        $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-cdr-pg-csv),--with-pgsql="$(STAGING_DIR)/usr",--without-pgsql) \ 
     321        $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-celt),--with-ogg="$(STAGING_DIR)/usr",--without-iogg) \ 
     322        $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-curl),--with-libcurl="$(STAGING_DIR)/usr",--without-libcurl) \ 
     323        $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-dingaling),--with-openssl="$(STAGING_DIR)/usr",--without-openssl) \ 
     324        $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-java),--with-java="$(STAGING_DIR)/usr",--without-java) \ 
     325        $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-xml-cdr),--with-libcurl="$(STAGING_DIR)/usr",--without-libcurl) \ 
     326        $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-xml-curl),--with-libcurl="$(STAGING_DIR)/usr",--without-libcurl) \ 
    322327 
    323328CONFIGURE_VARS+= \ 
     
    355360 
    356361define Build/Prepare 
    357 $(call Build/Prepare/Default) 
     362        $(call Build/Prepare/Default) 
    358363        $(call Prepare/celt) 
    359364        $(call Prepare/flite) 
     
    361366        $(call Prepare/sounds-en) 
    362367        $(call Prepare/sounds-moh) 
     368        (cd $(PKG_BUILD_DIR); [ -h noreg ] || touch noreg)      # Just to shut up Cluecon reg. 
     369        (cd $(PKG_BUILD_DIR); $(AM_TOOL_PATHS) ./bootstrap.sh) 
    363370endef 
    364371 
    365372define Build/Configure 
    366 $(call Build/Configure/Default) 
     373        $(call Build/Configure/Default,) 
    367374        $(foreach m,$(FS_MOD_AVAILABLE), 
    368                 $(if $(CONFIG_PACKAGE_freeswitch-mod-$(m)), 
     375                $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-$(m)), 
    369376                        $(SED) 's|^[ #]*\([^#]*/mod_$(subst -,_,$(m))\)$$$$|\1|g' $(PKG_BUILD_DIR)/modules.conf 
    370377                , 
     
    376383define Build/Compile 
    377384        $(MAKE) -C $(PKG_BUILD_DIR) \ 
     385                AR="$(TARGET_CROSS)ar" \ 
     386                RANLIB="$(TARGET_CROSS)ranlib" \ 
     387                CC="$(TARGET_CC)" \ 
     388                CXX="$(TARGET_CXX)" \ 
    378389                DESTDIR="$(PKG_INSTALL_DIR)" \ 
    379390                LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)" \ 
    380391                all $(MAKE_INSTALL_TARGETS) 
    381         $(SED) 's|^\([ \t]*\)\(.*\)"mod_console"\(.*\)$$$$|\1<!-- \2"mod_console"\3 -->|' $(PKG_INSTALL_DIR)/etc/freeswitch/autoload_configs/modules.conf.xml 
    382         $(SED) 's|^\([ \t]*\)<!-- *\(.*\)"mod_syslog"\(.*\) *-->\(.*\)$$$$|\1\2"mod_syslog"\3\4|' $(PKG_INSTALL_DIR)/etc/freeswitch/autoload_configs/modules.conf.xml 
     392        $(SED) 's|^\([ \t]*\)\(.*\)"mod_console"\(.*\)$$$$|\1<!-- \2"mod_console"\3 -->|' $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml 
     393        $(SED) 's|^\([ \t]*\)<!-- *\(.*\)"mod_syslog"\(.*\) *-->\(.*\)$$$$|\1\2"mod_syslog"\3\4|' $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml 
    383394endef 
    384395 
    385396define Build/InstallDev 
    386         $(INSTALL_DIR) $(1)/usr/include/freeswitch 
    387         $(CP) $(PKG_INSTALL_DIR)/usr/share/freeswitch/include/* $(1)/usr/include/freeswitch/ 
     397        $(INSTALL_DIR) $(1)/usr/include/$(PKG_NAME) 
     398        $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/include/* $(1)/usr/include/$(PKG_NAME)/ 
    388399        $(INSTALL_DIR) $(1)/usr/lib 
    389         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreeswitch.{a,so*} $(1)/usr/lib/ 
    390 endef 
    391  
    392 define Package/freeswitch/install 
     400        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).{a,so*} $(1)/usr/lib/ 
     401endef 
     402 
     403define Package/$(PKG_NAME)/install 
    393404        $(INSTALL_DIR) $(1)/usr/bin 
    394         $(CP) $(PKG_INSTALL_DIR)/usr/bin/freeswitch $(1)/usr/bin/ 
     405        $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/ 
    395406        $(INSTALL_DIR) $(1)/usr/lib 
    396         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreeswitch.so.* $(1)/usr/lib/ 
    397         $(INSTALL_DIR) $(1)/usr/lib/freeswitch 
     407        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so.* $(1)/usr/lib/ 
     408        $(INSTALL_DIR) $(1)/usr/lib/$(PKG_NAME) 
    398409        $(INSTALL_DIR) $(1)/etc/default 
    399         $(INSTALL_DATA) ./files/freeswitch.default $(1)/etc/default/freeswitch 
     410        $(INSTALL_DATA) ./files/$(PKG_NAME).default $(1)/etc/default/$(PKG_NAME) 
    400411        $(INSTALL_DIR) $(1)/etc/init.d 
    401         $(INSTALL_BIN) ./files/freeswitch.init $(1)/etc/init.d/freeswitch 
     412        $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME) 
    402413        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface 
    403         $(INSTALL_DATA) ./files/freeswitch.hotplug $(1)/etc/hotplug.d/iface/90-freeswitch 
     414        $(INSTALL_DATA) ./files/$(PKG_NAME).hotplug $(1)/etc/hotplug.d/iface/90-$(PKG_NAME) 
    404415        $(INSTALL_DIR) $(1)/etc/config 
    405         $(INSTALL_DATA) ./files/freeswitch.config $(1)/etc/config/freeswitch 
    406 endef 
    407  
    408 define Package/freeswitch-collection-upstream-defaults/install 
    409         $(INSTALL_DIR) $(1)/etc/freeswitch 
    410 endef 
    411  
    412 define Package/freeswitch-example-config/install 
    413         $(INSTALL_DIR) $(1)/usr/share/freeswitch/examples/conf 
    414         $(CP) $(PKG_INSTALL_DIR)/etc/freeswitch/* $(1)/usr/share/freeswitch/examples/conf/ 
    415 endef 
    416  
    417 define Package/freeswitch-config-upstream-defaults/install 
    418         $(INSTALL_DIR) $(1)/etc/freeswitch 
    419         $(CP) $(PKG_INSTALL_DIR)/etc/freeswitch/* $(1)/etc/freeswitch/ 
    420 endef 
    421  
    422 define Package/freeswitch-collection-minimal/install 
    423         $(INSTALL_DIR) $(1)/etc/freeswitch 
    424 endef 
    425  
    426 define Package/freeswitch-collection-uci-minimal/install 
    427         $(INSTALL_DIR) $(1)/etc/freeswitch 
    428 endef 
    429  
    430 define Package/freeswitch-config-minimal/install 
    431         $(INSTALL_DIR) $(1)/etc/freeswitch 
    432         $(CP) ./files/etc.minimal/* $(1)/etc/freeswitch/ 
    433 endef 
    434  
    435 define Package/freeswitch-sounds-en/install 
    436         $(INSTALL_DIR) $(1)/usr/share/freeswitch/sounds 
    437         $(CP) $(PKG_INSTALL_DIR)/usr/share/freeswitch/sounds/en $(1)/usr/share/freeswitch/sounds/ 
    438 endef 
    439  
    440 define Package/freeswitch-sounds-moh/install 
    441         $(INSTALL_DIR) $(1)/usr/share/freeswitch/sounds 
    442         $(CP) $(PKG_INSTALL_DIR)/usr/share/freeswitch/sounds/music $(1)/usr/share/freeswitch/sounds/ 
    443 endef 
    444  
    445 define Package/freeswitch-tools/install 
     416        $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME) 
     417endef 
     418 
     419define Package/$(PKG_NAME)-collection-upstream-defaults/install 
     420        $(INSTALL_DIR) $(1)/etc/$(PKG_NAME) 
     421endef 
     422 
     423define Package/$(PKG_NAME)-example-config/install 
     424        $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/examples/conf 
     425        $(CP) $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/* $(1)/usr/share/$(PKG_NAME)/examples/conf/ 
     426endef 
     427 
     428define Package/$(PKG_NAME)-config-upstream-defaults/install 
     429        $(INSTALL_DIR) $(1)/etc/$(PKG_NAME) 
     430        $(CP) $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/* $(1)/etc/$(PKG_NAME)/ 
     431endef 
     432 
     433define Package/$(PKG_NAME)-collection-minimal/install 
     434        $(INSTALL_DIR) $(1)/etc/$(PKG_NAME) 
     435endef 
     436 
     437define Package/$(PKG_NAME)-collection-uci-minimal/install 
     438        $(INSTALL_DIR) $(1)/etc/$(PKG_NAME) 
     439endef 
     440 
     441define Package/$(PKG_NAME)-config-minimal/install 
     442        $(INSTALL_DIR) $(1)/etc/$(PKG_NAME) 
     443        $(CP) ./files/etc.minimal/* $(1)/etc/$(PKG_NAME)/ 
     444endef 
     445 
     446define Package/$(PKG_NAME)-sounds-en/install 
     447        $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds 
     448        $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en $(1)/usr/share/$(PKG_NAME)/sounds/ 
     449endef 
     450 
     451define Package/$(PKG_NAME)-sounds-moh/install 
     452        $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds 
     453        $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/music $(1)/usr/share/$(PKG_NAME)/sounds/ 
     454endef 
     455 
     456define Package/$(PKG_NAME)-tools/install 
    446457        $(INSTALL_DIR) $(1)/usr/bin 
    447458        $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_cli $(1)/usr/bin/ 
     459        $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_encode $(1)/usr/bin/ 
     460        $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_ivrd $(1)/usr/bin/ 
     461        $(CP) $(PKG_INSTALL_DIR)/usr/bin/tone2wav $(1)/usr/bin/ 
    448462endef 
    449463 
     
    454468# 5. Extra Depends 
    455469define BuildPlugin 
    456   define Package/freeswitch-mod-$(1) 
    457     $$(call Package/freeswitch/Default) 
     470  define Package/$(PKG_NAME)-mod-$(1) 
     471    $$(call Package/$(PKG_NAME)/Default) 
    458472    TITLE:= FS $(2) module 
    459     DEPENDS:= freeswitch $$(foreach m,$(4),+freeswitch-mod-$$m) $(5) 
     473    DEPENDS:= $(PKG_NAME) $$(foreach m,$(4),+$(PKG_NAME)-mod-$$m) $(5) 
    460474  endef 
    461475 
    462   define Package/freeswitch-mod-$(1)/install 
    463         [ -z "$(3)" ] || $(INSTALL_DIR) $$(1)/usr/lib/freeswitch 
     476  define Package/$(PKG_NAME)-mod-$(1)/install 
     477        [ -z "$(3)" ] || $(INSTALL_DIR) $$(1)/usr/lib/$(PKG_NAME) 
    464478        for f in $(3); do \ 
    465479                $(CP) \ 
    466                         $(PKG_INSTALL_DIR)/usr/lib/freeswitch/$$$$$$$${f}.so \ 
    467                         $$(1)/usr/lib/freeswitch/ ; \ 
     480                        $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)/$$$$$$$${f}.so \ 
     481                        $$(1)/usr/lib/$(PKG_NAME)/ ; \ 
    468482        done 
    469483        if [ -d "./files/etc.packages/$(1)" ]; then \ 
    470                 $(INSTALL_DIR) $$(1)/etc/freeswitch ; \ 
     484                $(INSTALL_DIR) $$(1)/etc/$(PKG_NAME) ; \ 
    471485                $(CP) \ 
    472486                        ./files/etc.packages/$(1)/* \ 
    473                         $$(1)/etc/freeswitch/ ; \ 
    474         fi 
     487                        $$(1)/etc/$(PKG_NAME)/ ; \ 
     488        fi 
    475489  endef 
    476490 
    477   define Package/freeswitch-mod-$(1)/postinst 
     491  define Package/$(PKG_NAME)-mod-$(1)/postinst 
    478492#!/bin/sh 
    479 sed -i -e 's|^\([ \t]*\)<!-- *\(.*\)"mod_$(subst -,_,$(1))"\(.*\) *-->\(.*\)$$$$|\1\2"mod_$(subst -,_,$(1))"\3\4|' $$$${IPKG_INSTROOT}/etc/freeswitch/autoload_configs/modules.conf.xml 
     493sed -i -e 's|^\([ \t]*\)<!-- *\(.*\)"mod_$(subst -,_,$(1))"\(.*\) *-->\(.*\)$$$$|\1\2"mod_$(subst -,_,$(1))"\3\4|' $$$${IPKG_INSTROOT}/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml 
    480494  endef 
    481495 
    482   define Package/freeswitch-mod-$(1)/postrm 
     496  define Package/$(PKG_NAME)-mod-$(1)/postrm 
    483497#!/bin/sh 
    484 sed -i -e 's|^\([ \t]*\)\(.*\)"mod_$(subst -,_,$(1))"\(.*\)$$$$|\1<!-- \2"mod_$(subst -,_,$(1))"\3 -->|' $$$${IPKG_INSTROOT}/etc/freeswitch/autoload_configs/modules.conf.xml 
     498sed -i -e 's|^\([ \t]*\)\(.*\)"mod_$(subst -,_,$(1))"\(.*\)$$$$|\1<!-- \2"mod_$(subst -,_,$(1))"\3 -->|' $$$${IPKG_INSTROOT}/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml 
    485499  endef 
    486500 
    487   $$(eval $$(call BuildPackage,freeswitch-mod-$(1))) 
    488 endef 
    489  
    490 $(eval $(call BuildPackage,freeswitch)) 
    491 $(eval $(call BuildPackage,freeswitch-collection-upstream-defaults)) 
    492 $(eval $(call BuildPackage,freeswitch-collection-minimal)) 
    493 $(eval $(call BuildPackage,freeswitch-sounds-en)) 
    494 $(eval $(call BuildPackage,freeswitch-sounds-moh)) 
    495 $(eval $(call BuildPackage,freeswitch-tools)) 
    496 $(eval $(call BuildPackage,freeswitch-example-config)) 
    497 $(eval $(call BuildPackage,freeswitch-config-upstream-defaults)) 
    498 $(eval $(call BuildPackage,freeswitch-config-minimal)) 
     501  $$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(1))) 
     502endef 
     503 
     504$(eval $(call BuildPackage,$(PKG_NAME))) 
     505$(eval $(call BuildPackage,$(PKG_NAME)-collection-upstream-defaults)) 
     506$(eval $(call BuildPackage,$(PKG_NAME)-collection-minimal)) 
     507$(eval $(call BuildPackage,$(PKG_NAME)-sounds-en)) 
     508$(eval $(call BuildPackage,$(PKG_NAME)-sounds-moh)) 
     509$(eval $(call BuildPackage,$(PKG_NAME)-tools)) 
     510$(eval $(call BuildPackage,$(PKG_NAME)-example-config)) 
     511$(eval $(call BuildPackage,$(PKG_NAME)-config-upstream-defaults)) 
     512$(eval $(call BuildPackage,$(PKG_NAME)-config-minimal)) 
    499513 
    500514#$(eval $(call BuildPlugin,Name,Title,Files,Depends)) 
     
    504518$(eval $(call BuildPlugin,bv,codec mod_bv,mod_bv,,)) 
    505519$(eval $(call BuildPlugin,cdr-csv,CSV-CDR handler,mod_cdr_csv,,)) 
     520$(eval $(call BuildPlugin,cdr-pg-csv,Postgress CDR handler,mod_cdr_pg_csv,,+postgresql @BROKEN)) 
    506521$(eval $(call BuildPlugin,celt,CELT ultra-low delay codec,mod_celt,,+libogg)) 
    507522$(eval $(call BuildPlugin,cepstral,Cepstral interface,mod_cepstral,,@BROKEN)) # needs <swift.h> 
    508523$(eval $(call BuildPlugin,cidlookup,applications mod_cidlookup,mod_cidlookup,,)) 
    509524$(eval $(call BuildPlugin,cluechoo,Framework Demo,mod_cluechoo,,)) 
     525$(eval $(call BuildPlugin,codec2,CoDec 2,mod_codec2,,)) 
    510526$(eval $(call BuildPlugin,commands,API commands,mod_commands,,)) 
    511527$(eval $(call BuildPlugin,conference,Conference room,mod_conference,,)) 
     
    527543$(eval $(call BuildPlugin,event-socket,Socket event handler,mod_event_socket,,)) 
    528544$(eval $(call BuildPlugin,expr,Expression evaluation,mod_expr,,)) 
    529 $(eval $(call BuildPlugin,fax,Fax,mod_fax,,+libjpeg @(!(powerpc)||BROKEN))) # fails in spandsp 
    530545$(eval $(call BuildPlugin,fifo,FIFO,mod_fifo,,)) 
    531 $(eval $(call BuildPlugin,file-string,File streaming,mod_file_string,,)) 
     546$(eval $(call BuildPlugin,file-string,File streaming,mod_file_string,,@OBSOLETE)) 
    532547$(eval $(call BuildPlugin,flite,Festival TTS,mod_flite,,@(!(armeb||avr32)||BROKEN))) 
    533548$(eval $(call BuildPlugin,fsv,Video,mod_fsv,,)) 
     
    536551$(eval $(call BuildPlugin,h26x,H26X linear codec,mod_h26x,,)) 
    537552$(eval $(call BuildPlugin,h323,h323 endpoint,mod_h323,,@BROKEN)) # missing header files (other packages needed) 
     553$(eval $(call BuildPlugin,hash,API for manipulating a hash table,mod_hash,,)) 
    538554$(eval $(call BuildPlugin,java,Java language interface,mod_java,,@BROKEN)) # needs java 
    539555$(eval $(call BuildPlugin,ilbc,ILBC codec,mod_ilbc,,)) 
    540556$(eval $(call BuildPlugin,lcr,Least Cost Routing,mod_lcr,,)) 
    541557$(eval $(call BuildPlugin,ldap,LDAP interface,mod_ldap,,@BROKEN)) # fails in openldap 
    542 $(eval $(call BuildPlugin,limit,Resource limitation,mod_limit,,)) 
    543558$(eval $(call BuildPlugin,local-stream,Local streaming,mod_local_stream,,)) 
    544559$(eval $(call BuildPlugin,logfile,File logger,mod_logfile,,)) 
     
    555570$(eval $(call BuildPlugin,portaudio,Local audio endpoint,mod_portaudio,,+alsa-lib)) 
    556571$(eval $(call BuildPlugin,portaudio-stream,format mod_portaudio_stream,mod_portaudio_stream,,)) 
    557 $(eval $(call BuildPlugin,python,Python language interface,mod_python,,+python @BROKEN)) # needs Python 
     572$(eval $(call BuildPlugin,python,Python language interface,mod_python,,@BROKEN)) # needs Python 
    558573$(eval $(call BuildPlugin,radius-cdr,Radius-CDR interface,mod_radius_cdr,,@BROKEN)) # fails in freeradius-client 
    559574$(eval $(call BuildPlugin,rss,RRS feeds via TTS,mod_rss,,)) 
     
    580595$(eval $(call BuildPlugin,sofia,SIP,mod_sofia,,)) 
    581596$(eval $(call BuildPlugin,soundtouch,Sound effects,mod_soundtouch,,@BROKEN)) # fails in soundtouch 
     597$(eval $(call BuildPlugin,spandsp,Span DSP,mod_spandsp,,@BROKEN)) 
    582598$(eval $(call BuildPlugin,speex,Speex codec,mod_speex,,)) 
    583599$(eval $(call BuildPlugin,spidermonkey,JavaScript,mod_spidermonkey,,@BROKEN)) # fails in js 
     
    595611$(eval $(call BuildPlugin,vmd,VoiceMail beep detection,mod_vmd,,)) 
    596612$(eval $(call BuildPlugin,voicemail,VoiceMail,mod_voicemail,,)) 
    597 $(eval $(call BuildPlugin,voipcodecs,VoIP codecs,mod_voipcodecs,,@(!(powerpc)||BROKEN))) # fails in spandsp 
    598613$(eval $(call BuildPlugin,xml-cdr,XML-CDR handler,mod_xml_cdr,,+libcurl)) 
    599614$(eval $(call BuildPlugin,xml-curl,XML-Curl gateway,mod_xml_curl,,+libcurl)) 
Note: See TracChangeset for help on using the changeset viewer.