[net] yate: Added package for Yate (Yet Another Telephony Engine). Currently marked...
[openwrt/svn-archive/archive.git] / net / yate / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 RELEASEVER:=3.2.0
11
12 PKG_NAME:=yate
13 PKG_VERSION:=$(RELEASEVER)-1
14 PKG_RELEASE:=1
15
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)
20
21 PKG_FIXUP = libtool
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/$(PKG_NAME)/Default
26 SUBMENU:=Telephony
27 SECTION:=net
28 CATEGORY:=Network
29 URL:=http://yate.null.ro/
30 MAINTAINER:=Daniel Dickinson <openwrt@cshore.neomailbox.net>
31 endef
32
33 define Package/$(PKG_NAME)
34 $(call Package/yate/Default)
35 DEPENDS:=+libpthread @BROKEN
36 TITLE:=Yet Another Telphony Engine
37 MENU:=1
38 endef
39
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.
43 endef
44
45 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
46
47 CONFIGURE_ARGS+= \
48 --sysconfdir=/etc/$(PKG_NAME) \
49 --without-libqt4 \
50 --without-qtstatic \
51 --without-pwlib \
52 --without-coredumper \
53 --without-doxygen \
54 --without-kdoc \
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"
63
64 CONFIGURE_VARS+= \
65 LIBS="-lpthread -lresolv"
66
67 define Package/$(PKG_NAME)/install
68 $(INSTALL_DIR) $(1)/usr/lib
69
70 for yatelib in "" sig mgcp jabber; do \
71 $(INSTALL_BIN) $(PKG_BUILD_DIR)/libyate$$$${yatelib}.so.$(RELEASEVER) $(1)/usr/lib ;\
72 $(LN) ./libyate$$$${yatelib}.so.$(RELEASEVER) $(1)/usr/lib/libyate$$$${yatelib}.so ;\
73 done
74
75 $(INSTALL_DIR) $(1)/usr/bin
76 $(INSTALL_BIN) $(PKG_BUILD_DIR)/yate $(1)/usr/bin/
77 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
78 $(INSTALL_DATA) $(PKG_BUILD_DIR)/conf.d/yate.conf.sample $(1)/etc/$(PKG_NAME)/yate.conf
79 endef
80
81 define BuildPlugin
82 define Package/$(PKG_NAME)-mod-$(1)
83 $(call Package/yate/Default)
84 DEPENDS:= $(PKG_NAME) $(4)
85 TITLE:=$(3)
86 endef
87
88 define Package/$(PKG_NAME)-mod-$(1)/description
89 $(3) module for $(PKG_NAME)
90 endef
91
92 define Package/$(PKG_NAME)-mod-$(1)/install
93 $$(INSTALL_DIR) $$(1)/usr/lib/$(PKG_NAME)/$(2)
94 $$(INSTALL_BIN) $$(PKG_BUILD_DIR)/modules/$(2)/$(1).yate $$(1)/usr/lib/yate/$(2)/$(1).yate
95 if [ -f $$(PKG_BUILD_DIR)/conf.d/$(1).conf.sample ]; then \
96 $$(INSTALL_DIR) $$(1)/etc/$(PKG_NAME) ;\
97 $$(INSTALL_DATA) $$(PKG_BUILD_DIR)/conf.d/$(1).conf.sample $$(1)/etc/$(PKG_NAME)/$(1).conf ;\
98 fi
99 endef
100
101 $$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(1)))
102 endef
103
104 $(eval $(call BuildPackage,yate))
105 $(eval $(call BuildPlugin,accfile,server,SIP or H.323 client (from file),))
106 $(eval $(call BuildPlugin,alsachan,client,ALSA Sound Channel,+alsa-lib))
107 $(eval $(call BuildPlugin,amrnbcodec,,AMR-NB Codec,@BROKEN)) # Missing amr-nb library
108 $(eval $(call BuildPlugin,analog,server,Analog (e.g. POTS) Channel,))
109 $(eval $(call BuildPlugin,analogdetect,server,Analog Data Detector,))
110 $(eval $(call BuildPlugin,analyzer,,Test Call Generator and AQ Analyzer,))
111 $(eval $(call BuildPlugin,callcounters,server,Count Active Call Legs,))
112 $(eval $(call BuildPlugin,callfork,,Call Forker,))
113 $(eval $(call BuildPlugin,callgen,,Call Generator,))
114 $(eval $(call BuildPlugin,ccongestion,server,Accept Status from Installed Engine Monitors,))
115 $(eval $(call BuildPlugin,cdrbuild,,Call Detail Record Builder,))
116 $(eval $(call BuildPlugin,cdrfile,,Call Detail Record to File,))
117 $(eval $(call BuildPlugin,ciscosm,server,SS7 Support,))
118 $(eval $(call BuildPlugin,clustering,server,Clustering Server Support,))
119 $(eval $(call BuildPlugin,conference,,Conference Room Mixer,))
120 $(eval $(call BuildPlugin,cpuload,server,Monitor CPU load and Inform Yate,))
121 $(eval $(call BuildPlugin,dbpbx,server,PBX IVR and Multi-routing from Database,))
122 $(eval $(call BuildPlugin,dbwave,server,Wav Media for DB Storage,+$(PKG_NAME)-mod-wavfile))
123 $(eval $(call BuildPlugin,dumbchan,,Dummy Channel,))
124 $(eval $(call BuildPlugin,enumroute,,ENUM Routing,))
125 $(eval $(call BuildPlugin,extmodule,,External Module Handler,))
126 $(eval $(call BuildPlugin,faxchan,,Spandsp Fax Channel,+libspandsp))
127 $(eval $(call BuildPlugin,filetransfer,,File Transfer Driver,))
128 $(eval $(call BuildPlugin,gsmcodec,,GSM Codec,+libgsm))
129 $(eval $(call BuildPlugin,h323chan,,Open H.323 Channel,+libopenh323 @BROKEN)) # libopenh323 doesn't create package or stagin_dir includes or libs
130 $(eval $(call BuildPlugin,heartbeat,server,Linux-HA compatible heartbeat,))
131 $(eval $(call BuildPlugin,ilbccodec,,iLBC Codec,))
132 $(eval $(call BuildPlugin,isupmangler,server,ISUP paramter mangling in a STP,))
133 $(eval $(call BuildPlugin,jabberclient,client,Jabber Client,))
134 $(eval $(call BuildPlugin,jabberserver,jabber,Jabber Server,))
135 $(eval $(call BuildPlugin,jbfeatures,jabber,Jabber Server Features,))
136 $(eval $(call BuildPlugin,lateroute,server,Last Chance Routing,))
137 $(eval $(call BuildPlugin,lksctp,server,SCTP sockets using linux kernel,@BROKEN)) # Missing libraries/header files
138 $(eval $(call BuildPlugin,mgcpca,server,Media Gateway Control Protocol Agent,))
139 $(eval $(call BuildPlugin,mgcpgw,server,Media Gateway Control Protocol Gateway,))
140 $(eval $(call BuildPlugin,moh,,On Hold (music) Generator,))
141 $(eval $(call BuildPlugin,monitoring,server,Monitoring/gathering Information,))
142 $(eval $(call BuildPlugin,mrcpspeech,server,MRCP v2 Voice/Tone Detector and Synthesizer,))
143 $(eval $(call BuildPlugin,msgsniff,,Sample Message Sniffer,))
144 $(eval $(call BuildPlugin,mux,,Data Multiplexor,))
145 $(eval $(call BuildPlugin,mysqldb,server,MySQL Backend DB,+libmysqlclient))
146 $(eval $(call BuildPlugin,openssl,,Encrypted transport (OpenSSL),+libopenssl))
147 $(eval $(call BuildPlugin,osschan,client,OSS Sound Channel,))
148 $(eval $(call BuildPlugin,park,server,Call Parking,))
149 $(eval $(call BuildPlugin,pbx,,PBX Message Handlers,))
150 $(eval $(call BuildPlugin,pbxassist,server,Full featured PBX and IVR,))
151 $(eval $(call BuildPlugin,pgsqldb,server,PostgrestSQL Backend DB,+libpq))
152 $(eval $(call BuildPlugin,presence,server,Presence,))
153 $(eval $(call BuildPlugin,regfile,server,Registration based on users in file,))
154 $(eval $(call BuildPlugin,queues,server,Call Distribution and Queues from Database,))
155 $(eval $(call BuildPlugin,queuesnotify,server,Notify when queued call status changes,))
156 $(eval $(call BuildPlugin,regexroute,,Regular Expression Based Routing,))
157 $(eval $(call BuildPlugin,rmanager,,Yate Remote Management,))
158 $(eval $(call BuildPlugin,sip_cnam_lnp,sip,Query CNAM and LNP databases using SIP INVITE,))
159 $(eval $(call BuildPlugin,sigtransport,server,SIGTRAN (SS7 over IP) connection provider,))
160 $(eval $(call BuildPlugin,sipfeatures,server,SIP Features (SUBSCRIBE/NOTIFY),))
161 $(eval $(call BuildPlugin,speexcodec,,Speex Codec,+libspeex))
162 $(eval $(call BuildPlugin,subscription,server,Subcription handler and presence notifier,))
163 $(eval $(call BuildPlugin,tdmcard,server,TDM Cards Signalling and Data Driver,@BROKEN)) # Missing TDM libraries
164 $(eval $(call BuildPlugin,tonedetect,,Detectors for Various Tones,))
165 $(eval $(call BuildPlugin,tonegen,,Tones Generator,))
166 $(eval $(call BuildPlugin,users,server,Users,))
167 $(eval $(call BuildPlugin,wavefile,,Wav file Record and Playback,))
168 $(eval $(call BuildPlugin,wpcard,server,Wanpipe PRI cards Signalling and Data Driver,@BROKEN)) # Mising wanpipe and PRI libraries
169 $(eval $(call BuildPlugin,yiaxchan,,IAX Channel,))
170 $(eval $(call BuildPlugin,yjinglechan,,Jingle Channel,))
171 $(eval $(call BuildPlugin,yrtpchan,,RTP Channel and Other Data Helper,))
172 $(eval $(call BuildPlugin,yradius,server,RADIUS Client,))
173 $(eval $(call BuildPlugin,ysigchan,server,SS7/ISDN Protocols - Yate Signalling Library,))
174 $(eval $(call BuildPlugin,ysipchan,,SIP Channel,))
175 $(eval $(call BuildPlugin,ysockschan,,SOCKS Channel,))
176 $(eval $(call BuildPlugin,ysnmpagent,server,SNMP Protocol Agent,))
177 $(eval $(call BuildPlugin,ystunchan,,STUN Support,))
178 $(eval $(call BuildPlugin,zapcard,server,Zaptel Card Signalling and Data Driver,+zaptel14-libtonezone))
179 $(eval $(call BuildPlugin,zlibcompress,,Zlib Compression,+zlib))