added modules: codecs/mod_opus, endpoints/mod_skypopen, and event_handlers/mod_snmp. NOTE: mod_skypopen requires a Skype client for the platform to function. Additional information can be found on http://wiki.freeswitch.org/wiki/Mod_skypopen

git-svn-id: svn://svn.openwrt.org/openwrt/packages@27928 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mazilo
2011-08-08 02:20:17 +00:00
parent 39c9ee10d8
commit 5ac8a65006
4 changed files with 149 additions and 38 deletions

View File

@ -4,42 +4,30 @@
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
# #
#
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=freeswitch PKG_NAME:=freeswitch
PKG_VERSION:=1.0.7 PKG_VERSION:=1.0.7
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_REV:=46f097c1b94f43e5dad2c0b9592e921ae6933665
PKG_SOURCE_VERSION:=$(PKG_REV)
# #
# PKG_REV contains FS git hash that can be updated from http://fisheye.freeswitch.org # The latest FS git hash in PKG_REV can be obtained from http://fisheye.freeswitch.org
# #
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://git.$(PKG_NAME).org/$(PKG_NAME).git PKG_SOURCE_URL:=git://git.$(PKG_NAME).org/$(PKG_NAME).git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_REV:=ffac6a00e8481b85089eac6b7071d996fd12fc3f
PKG_SOURCE_VERSION:=$(PKG_REV)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_git-$(shell echo $(PKG_REV)|cut -b -9).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_git-$(shell echo $(PKG_REV)|cut -b -9).tar.bz2
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
#
# Set location of ptlib (Which needs to have been built already)
#
export PTLIBDIR=$(BUILD_DIR)/ptlib2
export PTLIBPLUGINDIR=$(PTLIBDIR)/lib_linux_${ARCH}
#
# Needed by some modules
#
export HOST="$(GNU_TARGET_NAME)"
export host="$(GNU_TARGET_NAME)"
#PKG_REMOVE_FILES:=
PKG_FIXUP:=libtool PKG_FIXUP:=libtool
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
PKG_CONFIG_DEPENDS:=CONFIG_FS_SOFIA_WITH_ODBC
FS_MOD_AVAILABLE:= \ FS_MOD_AVAILABLE:= \
alsa \ alsa \
@ -124,6 +112,7 @@ FS_MOD_AVAILABLE:= \
skinny \ skinny \
skypopen \ skypopen \
snapshot \ snapshot \
snmp \
snipe-hunt \ snipe-hunt \
sndfile \ sndfile \
snom \ snom \
@ -150,9 +139,12 @@ FS_MOD_AVAILABLE:= \
xml-rpc \ xml-rpc \
yaml \ yaml \
PKG_CONFIG_DEPENDS:= \ PKG_CONFIG_DEPENDS:= \
CONFIG_FS_SOFIA_WITH_ODBC \
$(patsubst %,CONFIG_PACKAGE_$(PKG_NAME)-mod-%,$(FS_MOD_AVAILABLE)) \ $(patsubst %,CONFIG_PACKAGE_$(PKG_NAME)-mod-%,$(FS_MOD_AVAILABLE)) \
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk include $(INCLUDE_DIR)/nls.mk
@ -173,59 +165,69 @@ $(call Package/$(PKG_NAME)/Default)
MENU:=1 MENU:=1
endef endef
define Package/$(PKG_NAME)/description define Package/$(PKG_NAME)/description
FreeSWITCH is an open source telephony platform designed to FreeSWITCH is an open source telephony platform designed to
facilitate the creation of voice and chat driven products scaling facilitate the creation of voice and chat driven products scaling
from a soft-phone up to a soft-switch. See http://wiki.$(PKG_NAME).org from a soft-phone up to a soft-switch. See http://wiki.$(PKG_NAME).org
endef endef
define Package/$(PKG_NAME)/config define Package/$(PKG_NAME)/config
config FS_SOFIA_WITH_ODBC config FS_SOFIA_WITH_ODBC
bool "Compile $(PKG_NAME)-mod-sofia with ODBC support (Requires unixodbc_svn)"
depends on PACKAGE_$(PKG_NAME) depends on PACKAGE_$(PKG_NAME)
bool "Compile $(PKG_NAME)-mod-sofia with ODBC support (Requires unixodbc_svn)"
default n default n
select PACKAGE_unixodbc_svn
help help
Compile $(PKG_NAME)-mod-sofia with ODBC Support (Requires unixodbc_svn package). Compile $(PKG_NAME)-mod-sofia with ODBC Support (Requires unixodbc_svn package).
endef endef
define Package/$(PKG_NAME)-example-config define Package/$(PKG_NAME)-example-config
$(call Package/$(PKG_NAME)/Default) $(call Package/$(PKG_NAME)/Default)
TITLE:=FreeSWITCH example config (commented) TITLE:=FreeSWITCH example config (commented)
DEPENDS:= $(PKG_NAME) DEPENDS:= $(PKG_NAME)
endef endef
define Package/$(PKG_NAME)-example-config/description define Package/$(PKG_NAME)-example-config/description
The default configuration included with FreeSWITCH. It is not intended to be The default configuration included with FreeSWITCH. It is not intended to be
a final product, and is thus moved to /usr/share/$(PKG_NAME)/examples/conf to a final product, and is thus moved to /usr/share/$(PKG_NAME)/examples/conf to
be an example of how FreeSWITCH can be configured. be an example of how FreeSWITCH can be configured.
endef endef
define Package/$(PKG_NAME)-config-upstream-defaults define Package/$(PKG_NAME)-config-upstream-defaults
$(call Package/$(PKG_NAME)/Default) $(call Package/$(PKG_NAME)/Default)
TITLE:=FreeSWITCH upstream config TITLE:=FreeSWITCH upstream config
DEPENDS:= $(PKG_NAME) DEPENDS:= $(PKG_NAME)
endef endef
define Package/$(PKG_NAME)-config-upstream-defaults/description define Package/$(PKG_NAME)-config-upstream-defaults/description
The default configuration included with FreeSWITCH. It is not intended to be The default configuration included with FreeSWITCH. It is not intended to be
a final product, and but is included for those who don't want to use the a final product, and but is included for those who don't want to use the
OpenWRT configuration and/or want to try things as prepared by upstream. OpenWRT configuration and/or want to try things as prepared by upstream.
endef endef
define Package/$(PKG_NAME)-config-minimal define Package/$(PKG_NAME)-config-minimal
$(call Package/$(PKG_NAME)/Default) $(call Package/$(PKG_NAME)/Default)
TITLE:=FreeSWITCH a minimal FS config TITLE:=FreeSWITCH minimal config
DEPENDS:= $(PKG_NAME) DEPENDS:= $(PKG_NAME)
endef endef
define Package/$(PKG_NAME)-config-minimal/description define Package/$(PKG_NAME)-config-minimal/description
A minimal configuration of FreeSWITCH for OpenWRT devices. Is what the UCI A minimal configuration of FreeSWITCH for OpenWRT devices. Is what the UCI
configuration began with. configuration began with.
endef endef
define Package/$(PKG_NAME)-collection-upstream-defaults define Package/$(PKG_NAME)-collection-upstream-defaults
$(call Package/$(PKG_NAME)/Default) $(call Package/$(PKG_NAME)/Default)
TITLE:=FreeSWITCH upstream default (sample) config TITLE:=FS upstream def sample conf
DEPENDS:= $(PKG_NAME) \ DEPENDS:= $(PKG_NAME) \
+$(PKG_NAME)-config-upstream-defaults \ +$(PKG_NAME)-config-upstream-defaults \
+$(PKG_NAME)-mod-callcenter \ +$(PKG_NAME)-mod-callcenter \
@ -255,9 +257,10 @@ $(call Package/$(PKG_NAME)/Default)
+$(PKG_NAME)-tools +$(PKG_NAME)-tools
endef endef
define Package/$(PKG_NAME)-collection-minimal define Package/$(PKG_NAME)-collection-minimal
$(call Package/$(PKG_NAME)/Default) $(call Package/$(PKG_NAME)/Default)
TITLE:=A FreeSWITCH minimal package collection TITLE:=FreeSWITCH minimal package collection
DEPENDS:= $(PKG_NAME) \ DEPENDS:= $(PKG_NAME) \
+$(PKG_NAME)-config-minimal \ +$(PKG_NAME)-config-minimal \
+$(PKG_NAME)-mod-codec2 \ +$(PKG_NAME)-mod-codec2 \
@ -274,6 +277,7 @@ $(call Package/$(PKG_NAME)/Default)
+$(PKG_NAME)-tools +$(PKG_NAME)-tools
endef endef
define Package/$(PKG_NAME)-sounds-en define Package/$(PKG_NAME)-sounds-en
$(call Package/$(PKG_NAME)/Default) $(call Package/$(PKG_NAME)/Default)
TITLE:=FreeSWITCH english sounds TITLE:=FreeSWITCH english sounds
@ -307,44 +311,56 @@ define Download/files
$$(eval $$(call Download,$(1))) $$(eval $$(call Download,$(1)))
endef endef
MAKE_INSTALL_TARGETS:=install MAKE_INSTALL_TARGETS:=install
ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-celt),) ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-celt),)
$(eval $(call Download/files,celt,celt-0.10.0.tar.gz,a656f6176e9be84027c0e51ceedd710f,,downloads/libs/,libs/)) $(eval $(call Download/files,celt,celt-0.10.0.tar.gz,a656f6176e9be84027c0e51ceedd710f,,downloads/libs/,libs/))
endif endif
ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-curl),) ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-curl),)
$(eval $(call Download/files,json-cdr,json-c-0.9.tar.gz,4653b3b9c568bb9c782178abfaac128d,,downloads/libs/,libs/)) $(eval $(call Download/files,json-cdr,json-c-0.9.tar.gz,4653b3b9c568bb9c782178abfaac128d,,downloads/libs/,libs/))
endif endif
ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-event-zmq),) ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-event-zmq),)
$(eval $(call Download/files,event-zmq,zeromq-2.1.7.tar.gz,7d3120f8a8fb913a7e55c57c6eb024f3,http://download.zeromq.org,,libs/)) $(eval $(call Download/files,event-zmq,zeromq-2.1.7.tar.gz,7d3120f8a8fb913a7e55c57c6eb024f3,http://download.zeromq.org,,libs/))
endif endif
ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-flite),) ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-flite),)
$(eval $(call Download/files,flite,flite-1.3.99-latest.tar.gz,365b60881715c5e13c0d8bc37d9be6ff,,downloads/libs/,libs/)) $(eval $(call Download/files,flite,flite-1.3.99-latest.tar.gz,365b60881715c5e13c0d8bc37d9be6ff,,downloads/libs/,libs/))
endif endif
ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-opus),) ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-opus),)
$(eval $(call Download/files,opus,opus-0.9.0.tar.gz,8a729db587430392e64280a499e9d061,,downloads/libs/,libs/)) $(eval $(call Download/files,opus,opus-0.9.0.tar.gz,8a729db587430392e64280a499e9d061,,downloads/libs/,libs/))
endif endif
ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en),) ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en),)
$(eval $(call Download/files,sounds-en,$(PKG_NAME)-sounds-en-us-callie-8000-1.0.16.tar.gz,bde0883eb75fe06f39bde11f50a1f858,,,)) $(eval $(call Download/files,sounds-en,$(PKG_NAME)-sounds-en-us-callie-8000-1.0.16.tar.gz,bde0883eb75fe06f39bde11f50a1f858,,,))
MAKE_INSTALL_TARGETS+= sounds-install MAKE_INSTALL_TARGETS+= sounds-install
endif endif
ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh),) ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh),)
$(eval $(call Download/files,sounds-moh,$(PKG_NAME)-sounds-music-8000-1.0.8.tar.gz,f63ef3cc3507af079ae5c7b8b8a01e42,,,)) $(eval $(call Download/files,sounds-moh,$(PKG_NAME)-sounds-music-8000-1.0.8.tar.gz,f63ef3cc3507af079ae5c7b8b8a01e42,,,))
MAKE_INSTALL_TARGETS+= moh-install MAKE_INSTALL_TARGETS+= moh-install
endif endif
#
# XXX: -fgnu89-inline is not supported on all compiler versions, so only enable it on avr32 where it solves build issues # XXX: -fgnu89-inline is not supported on all compiler versions, so only enable it on avr32 where it solves build issues
#
ifneq ($(CONFIG_avr32),) ifneq ($(CONFIG_avr32),)
TARGET_CFLAGS += -fgnu89-inline TARGET_CFLAGS += -fgnu89-inline
TARGET_CXXFLAGS += -fgnu89-inline TARGET_CXXFLAGS += -fgnu89-inline
endif endif
ifneq ($(CONFIG_USE_EGLIBC),) ifneq ($(CONFIG_USE_EGLIBC),)
ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),) ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),)
TARGET_CFLAGS += -DNO_GETLOGIN TARGET_CFLAGS += -DNO_GETLOGIN
@ -375,7 +391,7 @@ CONFIGURE_ARGS+= \
$(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-dingaling),--with-openssl="$(STAGING_DIR)/usr",--without-openssl) \ $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-dingaling),--with-openssl="$(STAGING_DIR)/usr",--without-openssl) \
$(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-java),--with-java="$(STAGING_DIR)/usr",--without-java) \ $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-java),--with-java="$(STAGING_DIR)/usr",--without-java) \
$(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-spandsp),--enable-builtin-tiff,) \ $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-spandsp),--enable-builtin-tiff,) \
$(if $(CONFIG_FS_SOFIA_WITH_ODBC),--enable-core-odbc-support --with-odbc="$(STAGING_DIR)/usr",) \ --$(if $(CONFIG_FS_SOFIA_WITH_ODBC),en,dis)able-core-odbc-support --with-odbc="$(STAGING_DIR)/usr" \
CONFIGURE_VARS+= \ CONFIGURE_VARS+= \
@ -430,6 +446,7 @@ define Build/Prepare
$(call Prepare/sounds-moh) $(call Prepare/sounds-moh)
endef endef
define Build/Configure define Build/Configure
(cd $(PKG_BUILD_DIR); $(AM_TOOL_PATHS) ./bootstrap.sh) (cd $(PKG_BUILD_DIR); $(AM_TOOL_PATHS) ./bootstrap.sh)
$(call Build/Configure/Default,) $(call Build/Configure/Default,)
@ -442,6 +459,7 @@ define Build/Configure
) )
endef endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
AR="$(TARGET_CROSS)ar" \ AR="$(TARGET_CROSS)ar" \
@ -455,6 +473,7 @@ define Build/Compile
$(SED) 's|^\([ \t]*\)<!-- *\(.*\)"mod_syslog"\(.*\) *-->\(.*\)$$$$|\1\2"mod_syslog"\3\4|' $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml $(SED) 's|^\([ \t]*\)<!-- *\(.*\)"mod_syslog"\(.*\) *-->\(.*\)$$$$|\1\2"mod_syslog"\3\4|' $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml
endef endef
define Build/InstallDev define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/$(PKG_NAME) $(INSTALL_DIR) $(1)/usr/include/$(PKG_NAME)
$(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/include/* $(1)/usr/include/$(PKG_NAME)/ $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/include/* $(1)/usr/include/$(PKG_NAME)/
@ -462,6 +481,7 @@ define Build/InstallDev
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).{a,so*} $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).{a,so*} $(1)/usr/lib/
endef endef
define Package/$(PKG_NAME)/install define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/ $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
@ -478,44 +498,53 @@ define Package/$(PKG_NAME)/install
$(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME) $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
endef endef
define Package/$(PKG_NAME)-collection-upstream-defaults/install define Package/$(PKG_NAME)-collection-upstream-defaults/install
$(INSTALL_DIR) $(1)/etc/$(PKG_NAME) $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
endef endef
define Package/$(PKG_NAME)-example-config/install define Package/$(PKG_NAME)-example-config/install
$(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/examples/conf $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/examples/conf
#$(INSTALL_DIR) $(1)/var/log/$(PKG_NAME)/xml_cdr #$(INSTALL_DIR) $(1)/var/log/$(PKG_NAME)/xml_cdr
$(CP) $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/* $(1)/usr/share/$(PKG_NAME)/examples/conf/ $(CP) $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/* $(1)/usr/share/$(PKG_NAME)/examples/conf/
endef endef
define Package/$(PKG_NAME)-config-upstream-defaults/install define Package/$(PKG_NAME)-config-upstream-defaults/install
$(INSTALL_DIR) $(1)/etc/$(PKG_NAME) $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
$(CP) $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/* $(1)/etc/$(PKG_NAME)/ $(CP) $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/* $(1)/etc/$(PKG_NAME)/
endef endef
define Package/$(PKG_NAME)-collection-minimal/install define Package/$(PKG_NAME)-collection-minimal/install
$(INSTALL_DIR) $(1)/etc/$(PKG_NAME) $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
endef endef
define Package/$(PKG_NAME)-collection-uci-minimal/install define Package/$(PKG_NAME)-collection-uci-minimal/install
$(INSTALL_DIR) $(1)/etc/$(PKG_NAME) $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
endef endef
define Package/$(PKG_NAME)-config-minimal/install define Package/$(PKG_NAME)-config-minimal/install
$(INSTALL_DIR) $(1)/etc/$(PKG_NAME) $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
$(CP) ./files/etc.minimal/* $(1)/etc/$(PKG_NAME)/ $(CP) ./files/etc.minimal/* $(1)/etc/$(PKG_NAME)/
endef endef
define Package/$(PKG_NAME)-sounds-en/install define Package/$(PKG_NAME)-sounds-en/install
$(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds
$(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en $(1)/usr/share/$(PKG_NAME)/sounds/ $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en $(1)/usr/share/$(PKG_NAME)/sounds/
endef endef
define Package/$(PKG_NAME)-sounds-moh/install define Package/$(PKG_NAME)-sounds-moh/install
$(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds
$(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/music $(1)/usr/share/$(PKG_NAME)/sounds/ $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/music $(1)/usr/share/$(PKG_NAME)/sounds/
endef endef
define Package/$(PKG_NAME)-tools/install define Package/$(PKG_NAME)-tools/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_cli $(1)/usr/bin/ $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_cli $(1)/usr/bin/
@ -526,11 +555,14 @@ define Package/$(PKG_NAME)-tools/install
$(CP) $(PKG_INSTALL_DIR)/usr/bin/tone2wav $(1)/usr/bin/ $(CP) $(PKG_INSTALL_DIR)/usr/bin/tone2wav $(1)/usr/bin/
endef endef
#
# 1. Name # 1. Name
# 2. Title # 2. Title
# 3. Files # 3. Files
# 4. Inter Depends # 4. Inter Depends
# 5. Extra Depends # 5. Extra Depends
#
define BuildPlugin define BuildPlugin
define Package/$(PKG_NAME)-mod-$(1) define Package/$(PKG_NAME)-mod-$(1)
$$(call Package/$(PKG_NAME)/Default) $$(call Package/$(PKG_NAME)/Default)
@ -566,6 +598,7 @@ sed -i -e 's|^\([ \t]*\)\(.*\)"mod_$(subst -,_,$(1))"\(.*\)$$$$|\1<!-- \2"mod_$(
$$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(1))) $$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(1)))
endef endef
$(eval $(call BuildPackage,$(PKG_NAME))) $(eval $(call BuildPackage,$(PKG_NAME)))
$(eval $(call BuildPackage,$(PKG_NAME)-collection-upstream-defaults)) $(eval $(call BuildPackage,$(PKG_NAME)-collection-upstream-defaults))
$(eval $(call BuildPackage,$(PKG_NAME)-collection-minimal)) $(eval $(call BuildPackage,$(PKG_NAME)-collection-minimal))
@ -576,7 +609,10 @@ $(eval $(call BuildPackage,$(PKG_NAME)-example-config))
$(eval $(call BuildPackage,$(PKG_NAME)-config-upstream-defaults)) $(eval $(call BuildPackage,$(PKG_NAME)-config-upstream-defaults))
$(eval $(call BuildPackage,$(PKG_NAME)-config-minimal)) $(eval $(call BuildPackage,$(PKG_NAME)-config-minimal))
#$(eval $(call BuildPlugin,Name,Title,Inter Depends,Extra Depends))
#
# $(eval $(call BuildPlugin,Name,Title,Inter Depends,Extra Depends))
#
$(eval $(call BuildPlugin,alsa,Alsa endpoint,mod_alsa,,)) $(eval $(call BuildPlugin,alsa,Alsa endpoint,mod_alsa,,))
$(eval $(call BuildPlugin,amr,GSM-AMR codec,mod_amr,,)) $(eval $(call BuildPlugin,amr,GSM-AMR codec,mod_amr,,))
$(eval $(call BuildPlugin,amrwb,GSM-AMRWB,mod_amrwb,,)) $(eval $(call BuildPlugin,amrwb,GSM-AMRWB,mod_amrwb,,))
@ -598,7 +634,7 @@ $(eval $(call BuildPlugin,curl,HTTP request,mod_curl,,+libcurl))
$(eval $(call BuildPlugin,dahdi-codec,DAHDI codecs,mod_dahdi_codec,,)) $(eval $(call BuildPlugin,dahdi-codec,DAHDI codecs,mod_dahdi_codec,,))
$(eval $(call BuildPlugin,db,Database backend,mod_db,,)) $(eval $(call BuildPlugin,db,Database backend,mod_db,,))
$(eval $(call BuildPlugin,dialplan-asterisk,Asterisk dialplan parser,mod_dialplan_asterisk,,)) $(eval $(call BuildPlugin,dialplan-asterisk,Asterisk dialplan parser,mod_dialplan_asterisk,,))
$(eval $(call BuildPlugin,dialplan-directory,Dialplan-Directory interface,mod_dialplan_directory,,)) $(eval $(call BuildPlugin,dialplan-directory,Dialplan directory,mod_dialplan_directory,,))
$(eval $(call BuildPlugin,dialplan-xml,Dialplan-XML interface,mod_dialplan_xml,,)) $(eval $(call BuildPlugin,dialplan-xml,Dialplan-XML interface,mod_dialplan_xml,,))
$(eval $(call BuildPlugin,dingaling,Jabber interface,mod_dingaling,,+libgnutls-openssl)) $(eval $(call BuildPlugin,dingaling,Jabber interface,mod_dingaling,,+libgnutls-openssl))
$(eval $(call BuildPlugin,directory,application mod_directory,mod_directory,,)) $(eval $(call BuildPlugin,directory,application mod_directory,mod_directory,,))
@ -619,7 +655,7 @@ $(eval $(call BuildPlugin,fsk,Bell-202 1200-baud FSK decoder,mod_fsk,,))
$(eval $(call BuildPlugin,fsv,Video,mod_fsv,,)) $(eval $(call BuildPlugin,fsv,Video,mod_fsv,,))
$(eval $(call BuildPlugin,g723-1,G.723.1 codec,mod_g723_1,,)) $(eval $(call BuildPlugin,g723-1,G.723.1 codec,mod_g723_1,,))
$(eval $(call BuildPlugin,g729,G.729 codec,mod_g729,,)) $(eval $(call BuildPlugin,g729,G.729 codec,mod_g729,,))
$(eval $(call BuildPlugin,gsmopen,SMS (some hardware required),mod_gsmopen,spandsp,+alsa-lib +gsmlib)) $(eval $(call BuildPlugin,gsmopen,Short Message Service (SMS),mod_gsmopen,spandsp,+alsa-lib +gsmlib))
$(eval $(call BuildPlugin,h26x,H26X linear codec,mod_h26x,,)) $(eval $(call BuildPlugin,h26x,H26X linear codec,mod_h26x,,))
$(eval $(call BuildPlugin,h323,h323 endpoint,mod_h323,,@BROKEN)) # missing header files (other packages needed) $(eval $(call BuildPlugin,h323,h323 endpoint,mod_h323,,@BROKEN)) # missing header files (other packages needed)
$(eval $(call BuildPlugin,hash,API for manipulating a hash table,mod_hash,,)) $(eval $(call BuildPlugin,hash,API for manipulating a hash table,mod_hash,,))
@ -657,11 +693,12 @@ $(eval $(call BuildPlugin,shell-stream,Shell stream,mod_shell_stream,,))
$(eval $(call BuildPlugin,silk,codec mod_silk,mod_silk,,)) $(eval $(call BuildPlugin,silk,codec mod_silk,mod_silk,,))
$(eval $(call BuildPlugin,siren,G.722.1 codec,mod_siren,,)) $(eval $(call BuildPlugin,siren,G.722.1 codec,mod_siren,,))
$(eval $(call BuildPlugin,skinny,endpoint mod_skinny,mod_skinny,,)) $(eval $(call BuildPlugin,skinny,endpoint mod_skinny,mod_skinny,,))
$(eval $(call BuildPlugin,skypopen,Skype compatible endpoint,mod_skypopen,,@BROKEN)) # needs <X11/Xlib.h> $(eval $(call BuildPlugin,skypopen,Skype compatible endpoint,mod_skypopen,,+libX11))
$(eval $(call BuildPlugin,snapshot,application mod_snapshot,mod_snapshot,,)) $(eval $(call BuildPlugin,snapshot,application mod_snapshot,mod_snapshot,,))
$(eval $(call BuildPlugin,sndfile,Multi-Format file transcoder,mod_sndfile,,)) $(eval $(call BuildPlugin,sndfile,Multi-Format file transcoder,mod_sndfile,,))
$(eval $(call BuildPlugin,snipe-hunt,application mod_snipe_hunt,mod_snipe_hunt,,)) $(eval $(call BuildPlugin,snipe-hunt,application mod_snipe_hunt,mod_snipe_hunt,,))
$(eval $(call BuildPlugin,snom,SNOM specific features,mod_snom,,)) $(eval $(call BuildPlugin,snom,SNOM specific features,mod_snom,,))
$(eval $(call BuildPlugin,snmp,Simple Network Management Protocol,mod_snmp,,+libnetsnmp))
$(eval $(call BuildPlugin,sofia,SIP,mod_sofia,,)) $(eval $(call BuildPlugin,sofia,SIP,mod_sofia,,))
$(eval $(call BuildPlugin,spandsp,Span DSP,mod_spandsp,,+libjpeg)) $(eval $(call BuildPlugin,spandsp,Span DSP,mod_spandsp,,+libjpeg))
$(eval $(call BuildPlugin,speex,Speex codec,mod_speex,,)) $(eval $(call BuildPlugin,speex,Speex codec,mod_speex,,))

View File

@ -1,6 +1,15 @@
--- a/Makefile.am --- a/Makefile.am
+++ b/Makefile.am +++ b/Makefile.am
@@ -299,7 +299,7 @@ endif @@ -1,3 +1,8 @@
+BASE=.
+
+include $(BASE)/../../../rules.mk
+include $(BASE)/../../../include/package.mk
+
EXTRA_DIST =
SUBDIRS = . src
AUTOMAKE_OPTS = foreign
@@ -299,7 +304,7 @@ endif
## ##
fs_encode_SOURCES = src/fs_encode.c fs_encode_SOURCES = src/fs_encode.c
fs_encode_CFLAGS = $(AM_CFLAGS) fs_encode_CFLAGS = $(AM_CFLAGS)
@ -9,7 +18,7 @@
fs_encode_LDADD = libfreeswitch.la fs_encode_LDADD = libfreeswitch.la
## ##
@@ -307,7 +307,7 @@ fs_encode_LDADD = libfreeswitch.la @@ -307,7 +312,7 @@ fs_encode_LDADD = libfreeswitch.la
## ##
tone2wav_SOURCES = src/tone2wav.c tone2wav_SOURCES = src/tone2wav.c
tone2wav_CFLAGS = $(AM_CFLAGS) tone2wav_CFLAGS = $(AM_CFLAGS)
@ -18,16 +27,16 @@
tone2wav_LDADD = libfreeswitch.la tone2wav_LDADD = libfreeswitch.la
## ##
@@ -585,10 +585,13 @@ speex-reconf: @@ -585,10 +590,13 @@ speex-reconf:
tiff-reconf: tiff-reconf:
cd libs/tiff-3.8.2 && autoreconf -fi cd libs/tiff-3.8.2 && autoreconf -fi
- cd libs/tiff-3.8.2 && sh ./configure.gnu - cd libs/tiff-3.8.2 && sh ./configure.gnu
+ cd libs/tiff-3.8.2 && sh ./configure.gnu --host=$(HOST) --prefix=$(prefix) + cd libs/tiff-3.8.2 && sh ./configure.gnu --host=$(GNU_TARGET_NAME)
cd libs/spandsp && autoreconf -fi cd libs/spandsp && autoreconf -fi
- cd libs/spandsp && sh ./configure.gnu - cd libs/spandsp && sh ./configure.gnu
- make mod_voipcodecs-clean - make mod_voipcodecs-clean
+ cd libs/spandsp && sh ./configure.gnu --host=$(HOST) --prefix=$(prefix) + cd libs/spandsp && sh ./configure.gnu --host=$(GNU_TARGET_NAME) --prefix=$(prefix)
+ cd libs/tiff-3.8.2 && $(MAKE) + cd libs/tiff-3.8.2 && $(MAKE)
+ +
+spandsp-reconf: tiff-reconf +spandsp-reconf: tiff-reconf
@ -35,7 +44,7 @@
python-reconf: python-reconf:
rm -f src/mod/languages/mod_python/Makefile rm -f src/mod/languages/mod_python/Makefile
@@ -611,12 +614,6 @@ iks-reconf: @@ -611,12 +619,6 @@ iks-reconf:
cd libs/iksemel && sh ./configure.gnu --prefix=$(prefix) cd libs/iksemel && sh ./configure.gnu --prefix=$(prefix)
$(MAKE) mod_dingaling-clean $(MAKE) mod_dingaling-clean

View File

@ -1,11 +1,60 @@
--- a/src/mod/codecs/mod_opus/Makefile --- a/src/mod/codecs/mod_opus/Makefile
+++ b/src/mod/codecs/mod_opus/Makefile +++ b/src/mod/codecs/mod_opus/Makefile
@@ -19,7 +19,7 @@ $(OPUS_DIR): @@ -1,29 +1,41 @@
BASE=../../../..
$(OPUS_BUILDDIR)/Makefile: $(OPUS_DIR) -OPUS=opus-0.9.0
mkdir -p $(OPUS_BUILDDIR) -
-OPUS_DIR=$(switch_srcdir)/libs/$(OPUS)
-OPUS_BUILDDIR=$(switch_builddir)/libs/$(OPUS)
-LOCAL_CFLAGS=-I$(OPUS_DIR)/src -g -O2
-
-IETF_LA=$(OPUS_BUILDDIR)/src/libietfcodec.la
-CELT_LA=$(OPUS_BUILDDIR)/celt/libcelt/libcelt0.la
-SILK_LA=$(OPUS_BUILDDIR)/silk/libSKP_SILK_SDK.la
+PKG_NAME=opus
+PKG_VERSION=0.9.0
+PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE=$(PKG_SOURCE_SUBDIR).tar.gz
+PKG_BUILD_DIR=$(switch_builddir)/libs/$(PKG_SOURCE_SUBDIR)
+PKG_SOURCE_DIR=$(switch_srcdir)/libs/$(PKG_SOURCE_SUBDIR)
+
+PKG_FIXUP:=libtool autoreconf
+PKG_BUILD_PARALLEL:=1
+
+LOCAL_CFLAGS=-I$(PKG_SOURCE_DIR)/src -g -O2
+
+IETF_LA=$(PKG_BUILD_DIR)/src/libietfcodec.la
+CELT_LA=$(PKG_BUILD_DIR)/celt/libcelt/libcelt0.la
+SILK_LA=$(PKG_BUILD_DIR)/silk/libSKP_SILK_SDK.la
LOCAL_LIBADD=$(IETF_LA) $(CELT_LA) $(SILK_LA) -lm -lz
include $(BASE)/build/modmake.rules
+include $(BASE)/../../../rules.mk
+include $(BASE)/../../../include/package.mk
-$(OPUS_DIR):
- $(GETLIB) $(OPUS).tar.gz
+MY_DEFAULT_ARGS:=--host=$(GNU_TARGET_NAME) --disable-shared --with-pic --srcdir=$(PKG_SOURCE_DIR)
-$(OPUS_BUILDDIR)/Makefile: $(OPUS_DIR)
- mkdir -p $(OPUS_BUILDDIR)
- cd $(OPUS_BUILDDIR) && $(DEFAULT_VARS) $(OPUS_DIR)/configure --disable-shared --with-pic --srcdir=$(OPUS_DIR) - cd $(OPUS_BUILDDIR) && $(DEFAULT_VARS) $(OPUS_DIR)/configure --disable-shared --with-pic --srcdir=$(OPUS_DIR)
+ cd $(OPUS_BUILDDIR) && $(DEFAULT_VARS) $(OPUS_DIR)/configure --host=$(HOST) --disable-shared --with-pic --srcdir=$(OPUS_DIR) +$(PKG_SOURCE_DIR):
+ $(GETLIB) $(PKG_SOURCE)
+ (cd $(PKG_BUILD_DIR); ${autoreconf_target})
+
+$(PKG_BUILD_DIR)/Makefile: $(PKG_SOURCE_DIR)
+ mkdir -p $(PKG_BUILD_DIR)
+ #cd $(PKG_BUILD_DIR) && $(DEFAULT_VARS) $(PKG_SOURCE_DIR)/configure $(MY_DEFAULT_ARGS)
+ (cd $(PKG_BUILD_DIR); $(call Build/Configure/Default,${MY_DEFAULT_ARGS}))
$(TOUCH_TARGET) $(TOUCH_TARGET)
$(IETF_LA): $(OPUS_BUILDDIR)/Makefile -$(IETF_LA): $(OPUS_BUILDDIR)/Makefile
- cd $(OPUS_BUILDDIR) && $(MAKE)
+$(IETF_LA): $(PKG_BUILD_DIR)/Makefile
+ (cd $(PKG_BUILD_DIR) && $(MAKE))
$(TOUCH_TARGET)
$(CELT_LA): $(IETF_LA)

View File

@ -0,0 +1,16 @@
--- a/src/mod/event_handlers/mod_snmp/Makefile
+++ b/src/mod/event_handlers/mod_snmp/Makefile
@@ -1,7 +1,10 @@
-include ../../../../build/modmake.rules
+BASE=../../../..
+
+include $(BASE)/build/modmake.rules
+include $(BASE)/../../../rules.mk
+
+LOCAL_CFLAGS=$(shell $(STAGING_DIR)/host/bin/net-snmp-config --cflags --agent-libs) -DNETSNMP_NO_INLINE
-LOCAL_CFLAGS=`net-snmp-config --cflags`
-LOCAL_LDFLAGS=`net-snmp-config --agent-libs`
LOCAL_OBJS=subagent.o
local_depend: $(LOCAL_OBJS)