source: packages/net/yate/Makefile @ 26210

Last change on this file since 26210 was 26210, checked in by cshore, 5 years ago

[net] Telephone: Yate: Removed @BROKEN from Yate. It appears to work, except for the modules marked as broken.

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