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