2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_VERSION
:=$(RELEASEVER
)-1
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://yate.null.ro
/tarballs
/yate3
/
18 PKG_MD5SUM
:=8ef5f0c420cb41ad2b5828fdba28c4ee
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/$(PKG_NAME
)/Default
29 URL
:=http
://yate.null.ro
/
30 MAINTAINER
:=Daniel Dickinson
<openwrt@cshore.neomailbox.net
>
33 define Package
/$(PKG_NAME
)
34 $(call Package
/yate
/Default
)
35 DEPENDS
:=+libpthread
+uclibcxx @BROKEN
36 TITLE
:=Yet Another Telphony Engine
40 define Package
/$(PKG_NAME
)/Default
/description
41 Is a next-generation telephony engine focused on the VoIP and PSTN. It does
42 SIP
, H
.323, IAX
, PSTN
, and more.
45 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include
48 --sysconfdir
=/etc
/$(PKG_NAME
) \
52 --without-coredumper \
55 --with-spandsp
="$(STAGING_DIR)/usr/include" \
56 --with-libgsm
="$(STAGING_DIR)/usr/include/gsm" \
57 --with-mysql
="$(STAGING_DIR)/usr" \
58 --with-openssl
="$(STAGING_DIR)/usr" \
59 --with-libpq
="$(STAGING_DIR)/usr" \
60 --with-libspeex
="$(STAGING_DIR)/usr/include/speex" \
61 --with-zaptel
="$(STAGING_DIR)/usr/include" \
62 --with-zlib
="$(STAGING_DIR)/usr"
65 CFLAGS
="$$$$CFLAGS -nostdinc++" \
66 LDFLAGS
="$$$$LDFLAGS -nodefaultlibs" \
67 LIBS
="-luClibc++ -lpthread -lresolv -ldl -lm -lc $(LIBGCC_S)"
69 define Package
/$(PKG_NAME
)/install
70 $(INSTALL_DIR
) $(1)/usr
/lib
72 for yatelib in
"" sig mgcp jabber
; do \
73 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/libyate
$$$${yatelib}.so.
$(RELEASEVER
) $(1)/usr
/lib
;\
74 $(LN
) .
/libyate
$$$${yatelib}.so.
$(RELEASEVER
) $(1)/usr
/lib
/libyate
$$$${yatelib}.so
;\
77 $(INSTALL_DIR
) $(1)/usr
/bin
78 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/yate
$(1)/usr
/bin
/
79 $(INSTALL_DIR
) $(1)/etc
/$(PKG_NAME
)
80 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/conf.d
/yate.conf.sample
$(1)/etc
/$(PKG_NAME
)/yate.conf
84 define Package
/$(PKG_NAME
)-mod-
$(1)
85 $(call Package
/yate
/Default
)
86 DEPENDS
:= $(PKG_NAME
) $(4)
90 define Package
/$(PKG_NAME
)-mod-
$(1)/description
91 $(3) module for
$(PKG_NAME
)
94 define Package
/$(PKG_NAME
)-mod-
$(1)/install
95 $$(INSTALL_DIR
) $$(1)/usr
/lib
/$(PKG_NAME
)/$(2)
96 $$(INSTALL_BIN
) $$(PKG_BUILD_DIR
)/modules
/$(2)/$(1).yate
$$(1)/usr
/lib
/yate
/$(2)/$(1).yate
97 if
[ -f
$$(PKG_BUILD_DIR
)/conf.d
/$(1).conf.sample
]; then \
98 $$(INSTALL_DIR
) $$(1)/etc
/$(PKG_NAME
) ;\
99 $$(INSTALL_DATA
) $$(PKG_BUILD_DIR
)/conf.d
/$(1).conf.sample
$$(1)/etc
/$(PKG_NAME
)/$(1).conf
;\
103 $$(eval
$$(call BuildPackage
,$(PKG_NAME
)-mod-
$(1)))
106 $(eval
$(call BuildPackage
,yate
))
107 $(eval
$(call BuildPlugin
,accfile
,server
,SIP or H
.323 client
(from file
),))
108 $(eval
$(call BuildPlugin
,alsachan
,client
,ALSA Sound Channel
,+alsa-lib
))
109 $(eval
$(call BuildPlugin
,amrnbcodec
,,AMR-NB Codec
,@BROKEN
)) # Missing amr-nb library
110 $(eval
$(call BuildPlugin
,analog
,server
,Analog
(e.g. POTS
) Channel
,))
111 $(eval
$(call BuildPlugin
,analogdetect
,server
,Analog Data Detector
,))
112 $(eval
$(call BuildPlugin
,analyzer
,,Test Call Generator and AQ Analyzer
,))
113 $(eval
$(call BuildPlugin
,callcounters
,server
,Count Active Call Legs
,))
114 $(eval
$(call BuildPlugin
,callfork
,,Call Forker
,))
115 $(eval
$(call BuildPlugin
,callgen
,,Call Generator
,))
116 $(eval
$(call BuildPlugin
,ccongestion
,server
,Accept Status from Installed Engine Monitors
,))
117 $(eval
$(call BuildPlugin
,cdrbuild
,,Call Detail Record Builder
,))
118 $(eval
$(call BuildPlugin
,cdrfile
,,Call Detail Record to File
,))
119 $(eval
$(call BuildPlugin
,ciscosm
,server
,SS7 Support
,))
120 $(eval
$(call BuildPlugin
,clustering
,server
,Clustering Server Support
,))
121 $(eval
$(call BuildPlugin
,conference
,,Conference Room Mixer
,))
122 $(eval
$(call BuildPlugin
,cpuload
,server
,Monitor CPU load and Inform Yate
,))
123 $(eval
$(call BuildPlugin
,dbpbx
,server
,PBX IVR and Multi-routing from Database
,))
124 $(eval
$(call BuildPlugin
,dbwave
,server
,Wav Media for DB Storage
,+$(PKG_NAME
)-mod-wavefile
))
125 $(eval
$(call BuildPlugin
,dumbchan
,,Dummy Channel
,))
126 $(eval
$(call BuildPlugin
,enumroute
,,ENUM Routing
,))
127 $(eval
$(call BuildPlugin
,extmodule
,,External Module Handler
,))
128 $(eval
$(call BuildPlugin
,faxchan
,,Spandsp Fax Channel
,+libspandsp
))
129 $(eval
$(call BuildPlugin
,filetransfer
,,File Transfer Driver
,))
130 $(eval
$(call BuildPlugin
,gsmcodec
,,GSM Codec
,+libgsm
))
131 $(eval
$(call BuildPlugin
,h323chan
,,Open H
.323 Channel
,+libopenh323 @BROKEN
)) # libopenh323 doesn't create package or stagin_dir includes or libs
132 $(eval
$(call BuildPlugin
,heartbeat
,server
,Linux-HA compatible heartbeat
,))
133 $(eval
$(call BuildPlugin
,ilbccodec
,,iLBC Codec
,))
134 $(eval
$(call BuildPlugin
,isupmangler
,server
,ISUP paramter mangling in a STP
,))
135 $(eval
$(call BuildPlugin
,jabberclient
,client
,Jabber Client
,))
136 $(eval
$(call BuildPlugin
,jabberserver
,jabber
,Jabber Server
,))
137 $(eval
$(call BuildPlugin
,jbfeatures
,jabber
,Jabber Server Features
,))
138 $(eval
$(call BuildPlugin
,lateroute
,server
,Last Chance Routing
,))
139 $(eval
$(call BuildPlugin
,lksctp
,server
,SCTP sockets using linux kernel
,@BROKEN
)) # Missing libraries/header files
140 $(eval
$(call BuildPlugin
,mgcpca
,server
,Media Gateway Control Protocol Agent
,))
141 $(eval
$(call BuildPlugin
,mgcpgw
,server
,Media Gateway Control Protocol Gateway
,))
142 $(eval
$(call BuildPlugin
,moh
,,On Hold
(music
) Generator
,))
143 $(eval
$(call BuildPlugin
,monitoring
,server
,Monitoring
/gathering Information
,))
144 $(eval
$(call BuildPlugin
,mrcpspeech
,server
,MRCP v2 Voice
/Tone Detector and Synthesizer
,))
145 $(eval
$(call BuildPlugin
,msgsniff
,,Sample Message Sniffer
,))
146 $(eval
$(call BuildPlugin
,mux
,,Data Multiplexor
,))
147 $(eval
$(call BuildPlugin
,mysqldb
,server
,MySQL Backend DB
,+libmysqlclient
))
148 $(eval
$(call BuildPlugin
,openssl
,,Encrypted transport
(OpenSSL
),+libopenssl
))
149 $(eval
$(call BuildPlugin
,osschan
,client
,OSS Sound Channel
,))
150 $(eval
$(call BuildPlugin
,park
,server
,Call Parking
,))
151 $(eval
$(call BuildPlugin
,pbx
,,PBX Message Handlers
,))
152 $(eval
$(call BuildPlugin
,pbxassist
,server
,Full featured PBX and IVR
,))
153 $(eval
$(call BuildPlugin
,pgsqldb
,server
,PostgrestSQL Backend DB
,+libpq
))
154 $(eval
$(call BuildPlugin
,presence
,server
,Presence
,))
155 $(eval
$(call BuildPlugin
,regfile
,server
,Registration based on users in file
,))
156 $(eval
$(call BuildPlugin
,queues
,server
,Call Distribution and Queues from Database
,))
157 $(eval
$(call BuildPlugin
,queuesnotify
,server
,Notify when queued call status changes
,))
158 $(eval
$(call BuildPlugin
,regexroute
,,Regular Expression Based Routing
,))
159 $(eval
$(call BuildPlugin
,rmanager
,,Yate Remote Management
,))
160 $(eval
$(call BuildPlugin
,sip_cnam_lnp
,sip
,Query CNAM and LNP databases using SIP INVITE
,))
161 $(eval
$(call BuildPlugin
,sigtransport
,server
,SIGTRAN
(SS7 over IP
) connection provider
,))
162 $(eval
$(call BuildPlugin
,sipfeatures
,server
,SIP Features
(SUBSCRIBE
/NOTIFY
),))
163 $(eval
$(call BuildPlugin
,speexcodec
,,Speex Codec
,+libspeex
))
164 $(eval
$(call BuildPlugin
,subscription
,server
,Subcription handler and presence notifier
,))
165 $(eval
$(call BuildPlugin
,tdmcard
,server
,TDM Cards Signalling and Data Driver
,@BROKEN
)) # Missing TDM libraries
166 $(eval
$(call BuildPlugin
,tonedetect
,,Detectors for Various Tones
,))
167 $(eval
$(call BuildPlugin
,tonegen
,,Tones Generator
,))
168 $(eval
$(call BuildPlugin
,users
,server
,Users
,))
169 $(eval
$(call BuildPlugin
,wavefile
,,Wav file Record and Playback
,))
170 $(eval
$(call BuildPlugin
,wpcard
,server
,Wanpipe PRI cards Signalling and Data Driver
,@BROKEN
)) # Mising wanpipe and PRI libraries
171 $(eval
$(call BuildPlugin
,yiaxchan
,,IAX Channel
,))
172 $(eval
$(call BuildPlugin
,yjinglechan
,,Jingle Channel
,))
173 $(eval
$(call BuildPlugin
,yrtpchan
,,RTP Channel and Other Data Helper
,))
174 $(eval
$(call BuildPlugin
,yradius
,server
,RADIUS Client
,))
175 $(eval
$(call BuildPlugin
,ysigchan
,server
,SS7
/ISDN Protocols
- Yate Signalling Library
,))
176 $(eval
$(call BuildPlugin
,ysipchan
,,SIP Channel
,))
177 $(eval
$(call BuildPlugin
,ysockschan
,,SOCKS Channel
,))
178 $(eval
$(call BuildPlugin
,ysnmpagent
,server
,SNMP Protocol Agent
,))
179 $(eval
$(call BuildPlugin
,ystunchan
,,STUN Support
,))
180 $(eval
$(call BuildPlugin
,zapcard
,server
,Zaptel Card Signalling and Data Driver
,+zaptel14-libtonezone
))
181 $(eval
$(call BuildPlugin
,zlibcompress
,,Zlib Compression
,+zlib
))