6f3de4868cfb7270c52e3cf950761cbcda22560f
[openwrt/svn-archive/archive.git] / net / asterisk / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=asterisk
12 PKG_VERSION:=1.2.14
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://ftp.digium.com/pub/asterisk/old-releases/ ftp://ftp.digium.com/pub/asterisk/old-releases/
17 PKG_MD5SUM:=2ce03466b99e0b9471e6c791ed14a5f2
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/asterisk/Default
26 SECTION:=net
27 CATEGORY:=Network
28 DESCRIPTION:=\
29 Asterisk is a complete PBX in software. It provides all of the features \\\
30 you would expect from a PBX and more. Asterisk does voice over IP in three \\\
31 protocols, and can interoperate with almost all standards-based telephony \\\
32 equipment using relatively inexpensive hardware.
33 URL:=http://www.asterisk.org/
34 SUBMENU:=asterisk (Complete Open Source PBX)
35 endef
36
37 define Package/asterisk
38 $(call Package/asterisk/Default)
39 DEPENDS:=+libncurses +libpthread
40 TITLE:=Complete Open Source PBX
41 endef
42
43 define Package/asterisk/conffiles
44 /etc/asterisk/asterisk.conf
45 /etc/asterisk/agents.conf
46 /etc/asterisk/alarmreceiver.conf
47 /etc/asterisk/cdr_manager.conf
48 /etc/asterisk/codecs.conf
49 /etc/asterisk/enum.conf
50 /etc/asterisk/extconfig.conf
51 /etc/asterisk/extensions.conf
52 /etc/asterisk/features.conf
53 /etc/asterisk/iax.conf
54 /etc/asterisk/iaxprov.conf
55 /etc/asterisk/indications.conf
56 /etc/asterisk/logger.conf
57 /etc/asterisk/manager.conf
58 /etc/asterisk/modules.conf
59 /etc/asterisk/musiconhold.conf
60 /etc/asterisk/osp.conf
61 /etc/asterisk/privacy.conf
62 /etc/asterisk/queues.conf
63 /etc/asterisk/rtp.conf
64 /etc/asterisk/sip.conf
65 endef
66
67 define Package/asterisk-mini
68 $(call Package/asterisk/Default)
69 DEPENDS:=+libncurses +libpthread
70 PROVIDES:=asterisk
71 TITLE:=Minimal Open Source PBX
72 DESCRIPTION+=\\\
73 \\\
74 This package contains only the following modules: \\\
75 - app_dial\\\
76 - chan_iax2\\\
77 - chan_local\\\
78 - chan_sip\\\
79 - codec_gsm\\\
80 - codec_ulaw\\\
81 - format_gsm\\\
82 - format_pcm\\\
83 - format_wav\\\
84 - format_wav_gsm\\\
85 - pbx_config\\\
86 - res_features\\\
87 - res_musiconhold
88 endef
89
90 define Package/asterisk-mini/conffiles
91 /etc/asterisk/asterisk.conf
92 /etc/asterisk/enum.conf
93 /etc/asterisk/extconfig.conf
94 /etc/asterisk/extensions.conf
95 /etc/asterisk/features.conf
96 /etc/asterisk/iax.conf
97 /etc/asterisk/iaxprov.conf
98 /etc/asterisk/logger.conf
99 /etc/asterisk/manager.conf
100 /etc/asterisk/modules.conf
101 /etc/asterisk/musiconhold.conf
102 /etc/asterisk/rtp.conf
103 /etc/asterisk/sip.conf
104 endef
105
106 define Package/asterisk-mysql
107 $(call Package/asterisk/Default)
108 DEPENDS:=asterisk +libmysqlclient
109 TITLE:=MySQL support
110 DESCRIPTION+=\\\
111 \\\
112 This package contains MySQL support modules for Asterisk.
113 endef
114
115 define Package/asterisk-mysql/conffiles
116 /etc/asterisk/cdr_mysql.conf
117 endef
118
119 define Package/asterisk-pgsql
120 $(call Package/asterisk/Default)
121 DEPENDS:=asterisk +libpq
122 TITLE:=PostgreSQL support
123 DESCRIPTION+=\\\
124 \\\
125 This package contains PostgreSQL support modules for Asterisk.
126 endef
127
128 define Package/asterisk-pgsql/conffiles
129 /etc/asterisk/cdr_pgsql.conf
130 endef
131
132 define Package/asterisk-sqlite
133 $(call Package/asterisk/Default)
134 DEPENDS:=asterisk +libsqlite2
135 TITLE:=SQLite modules
136 DESCRIPTION+=\\\
137 \\\
138 This package contains SQLite support modules for Asterisk.
139 endef
140
141 define Package/asterisk-sounds
142 $(call Package/asterisk)
143 MENU:=0
144 DEPENDS:=asterisk
145 TITLE:=Sound files
146 DESCRIPTION+=\\\
147 \\\
148 This package contains sound files for Asterisk.
149 endef
150
151 define Package/asterisk-voicemail
152 $(call Package/asterisk/Default)
153 DEPENDS:=asterisk
154 TITLE:=Voicemail support
155 DESCRIPTION+=\\\
156 \\\
157 This package contains voicemail related modules for Asterisk.
158 endef
159
160 define Package/asterisk-voicemail/conffiles
161 /etc/asterisk/voicemail.conf
162 endef
163
164 define Package/asterisk-app-meetme
165 $(call Package/asterisk/Default)
166 DEPENDS:=asterisk +zaptel-libtonezone
167 TITLE:=MeetMe Confererencing support
168 DESCRIPTION+=\\\
169 \\\
170 This package provides the application MeetMe and conferencing support to \\\
171 Asterisk.
172 endef
173
174 define Package/asterisk-app-meetme/conffiles
175 /etc/asterisk/meetme.conf
176 endef
177
178 define Package/asterisk-chan-bluetooth
179 $(call Package/asterisk/Default)
180 DEPENDS:=asterisk +bluez-libs
181 TITLE:=Bluetooth HandsFreeProfile support for Asterisk
182 DESCRIPTION+=\\\
183 \\\
184 This package provides Bluetooth HandsFreeProfile support to Asterisk.
185 endef
186
187 define Package/asterisk-chan-bluetooth/conffiles
188 /etc/asterisk/bluetooth.conf
189 endef
190
191 define Package/asterisk-chan-h323
192 $(call Package/asterisk/Default)
193 DEPENDS:=asterisk +libopenh323 +uclibcxx
194 TITLE:=H.323 support for Asterisk
195 DESCRIPTION+=\\\
196 \\\
197 This package provides H.323 support to Asterisk.
198 endef
199
200 define Package/asterisk-chan-h323/conffiles
201 /etc/asterisk/h323.conf
202 endef
203
204 define Package/asterisk-chan-mgcp
205 $(call Package/asterisk/Default)
206 DEPENDS:=asterisk
207 TITLE:=MGCP support
208 DESCRIPTION+=\\\
209 \\\
210 This package provides MGCP (Media Gateway Control Protocol) support \\\
211 to Asterisk.
212 endef
213
214 define Package/asterisk-chan-mgcp/conffiles
215 /etc/asterisk/mgcp.conf
216 endef
217
218 define Package/asterisk-chan-skinny
219 $(call Package/asterisk/Default)
220 DEPENDS:=asterisk
221 TITLE:=Skinny Client Control Protocol support
222 DESCRIPTION+=\\\
223 \\\
224 This package provided Skinny Client Control Protocol support to \\\
225 Asterisk.
226 endef
227
228 define Package/asterisk-chan-skinny/conffiles
229 /etc/asterisk/skinny.conf
230 endef
231
232 define Package/asterisk-codec-ilbc
233 $(call Package/asterisk/Default)
234 DEPENDS:=asterisk
235 TITLE:=ILBC Translator
236 DESCRIPTION+=\\\
237 \\\
238 This package contains the ILBC (Internet Low Bitrate Codec) translator \\\
239 for Asterisk.
240 endef
241
242 define Package/asterisk-codec-lpc10
243 $(call Package/asterisk/Default)
244 DEPENDS:=asterisk
245 TITLE:=LPC10 2.4kbps voice codec Translator
246 DESCRIPTION+=\\\
247 \\\
248 This package contains the LPC10 (Linear Predictor Code) 2.4kbps voice \\\
249 codec translator for Asterisk.
250 endef
251
252 define Package/asterisk-codec-speex
253 $(call Package/asterisk/Default)
254 DEPENDS:=asterisk +libspeex
255 TITLE:=Speex/PCM16 Codec Translator
256 DESCRIPTION+=\\\
257 \\\
258 This package contains the Speex speech compression codec translator for \\\
259 Asterisk.
260 endef
261
262 define Package/asterisk-pbx-dundi
263 $(call Package/asterisk/Default)
264 DEPENDS:=asterisk
265 TITLE:=DUNDi support
266 DESCRIPTION+=\\\
267 \\\
268 This package provides DUNDi (Distributed Universal Number Discovery) \\\
269 support to Asterisk.
270 endef
271
272 define Package/asterisk-pbx-dundi/conffiles
273 /etc/asterisk/dundi.conf
274 endef
275
276 define Package/asterisk-res-agi
277 $(call Package/asterisk/Default)
278 DEPENDS:=asterisk
279 TITLE:=AGI support
280 DESCRIPTION+=\\\
281 \\\
282 This package provides AGI (Asterisk Gateway Interface) support to \\\
283 Asterisk.
284 endef
285
286 define Package/asterisk-res-crypto
287 $(call Package/asterisk/Default)
288 DEPENDS:=asterisk +libopenssl
289 TITLE:=Cryptographic Digital Signatures support
290 DESCRIPTION+=\\\
291 \\\
292 This package provides Cryptographic Digital Signatures support to \\\
293 Asterisk.
294 endef
295
296
297 ifneq ($(SDK),)
298 # Make sure the options below are enabled when building with the SDK
299 CONFIG_PACKAGE_asterisk-mysql:=m
300 CONFIG_PACKAGE_asterisk-pgsql:=m
301 CONFIG_PACKAGE_asterisk-sqlite:=m
302 CONFIG_PACKAGE_asterisk-app-meetme:=m
303 CONFIG_PACKAGE_asterisk-chan-bluetooth:=m
304 CONFIG_PACKAGE_asterisk-chan-h323:=m
305 CONFIG_PACKAGE_asterisk-codec-speex:=m
306 CONFIG_PACKAGE_asterisk-res-crypto:=m
307 endif
308
309 EXTRA_CFLAGS:= -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
310 EXTRA_LDFLAGS:= -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
311
312 ifneq ($(CONFIG_PACKAGE_asterisk-mysql),)
313 EXTRA_CFLAGS+= -I$(STAGING_DIR)/usr/include/mysql
314 EXTRA_LDFLAGS+= -L$(STAGING_DIR)/usr/lib/mysql
315 EXTRA_APP_MODULES+= app_sql_mysql.so
316 EXTRA_CDR_MODULES+= cdr_mysql.so
317 EXTRA_RES_MODULES+= res_config_mysql.so
318 endif
319 ifneq ($(CONFIG_PACKAGE_asterisk-pgsql),)
320 EXTRA_APP_MODULES+= app_sql_postgres.so
321 EXTRA_CDR_MODULES+= cdr_pgsql.so
322 endif
323 ifneq ($(CONFIG_PACKAGE_asterisk-sqlite),)
324 EXTRA_CDR_MODULES+= cdr_sqlite.so
325 endif
326 ifneq ($(CONFIG_PACKAGE_asterisk-app-meetme),)
327 EXTRA_APP_MODULES+= app_meetme.so
328 endif
329 ifneq ($(CONFIG_PACKAGE_asterisk-chan-bluetooth),)
330 EXTRA_CHAN_MODULES+= chan_bluetooth.so
331 endif
332 ifneq ($(CONFIG_PACKAGE_asterisk-chan-h323),)
333 EXTRA_DEFINES+= \
334 OPENH323DIR="$(BUILD_DIR)/openh323" \
335 PWLIBDIR="$(BUILD_DIR)/pwlib" \
336 CXXLIBS="-nodefaultlibs -luClibc++ -lc -lm -lgcc"
337 EXTRA_CHAN_MODULES+= chan_h323.so
338 endif
339 ifneq ($(CONFIG_PACKAGE_asterisk-codec-speex),)
340 EXTRA_CFLAGS+= -I$(STAGING_DIR)/usr/include/speex
341 EXTRA_CODEC_MODULES+= codec_speex.so
342 endif
343 ifneq ($(CONFIG_PACKAGE_asterisk-res-crypto),)
344 EXTRA_RES_MODULES+= res_crypto.so
345 endif
346
347 define Build/Configure
348 endef
349
350 ifneq ($(CONFIG_PACKAGE_asterisk-chan-h323),)
351 define Build/Compile/chan-h323
352 $(MAKE) -C "$(PKG_BUILD_DIR)/channels/h323" \
353 $(TARGET_CONFIGURE_OPTS) \
354 $(EXTRA_DEFINES) \
355 optnoshared
356 endef
357 endif
358
359 define Build/Compile
360 $(call Build/Compile/chan-h323)
361 $(MAKE) -C "$(PKG_BUILD_DIR)" \
362 CROSS_ARCH="Linux" \
363 CROSS_COMPILE="$(TARGET_CROSS)" \
364 CROSS_COMPILE_BIN="/void/" \
365 CROSS_COMPILE_TARGET="/void/" \
366 $(TARGET_CONFIGURE_OPTS) \
367 HOST_CC="$(HOSTCC)" \
368 OPTIMIZE="$(TARGET_CFLAGS)" \
369 PROC="$(ARCH)" \
370 DEBUG="" \
371 OPTIONS="-DLOW_MEMORY -Dlinux" \
372 NOCRYPTO="yes" \
373 EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
374 EXTRA_LDFLAGS="$(EXTRA_LDFLAGS)" \
375 EXTRA_APP_MODULES="$(EXTRA_APP_MODULES)" \
376 EXTRA_CDR_MODULES="$(EXTRA_CDR_MODULES)" \
377 EXTRA_CHAN_MODULES="$(EXTRA_CHAN_MODULES)" \
378 EXTRA_CODEC_MODULES="$(EXTRA_CODEC_MODULES)" \
379 EXTRA_RES_MODULES="$(EXTRA_RES_MODULES)" \
380 DESTDIR="$(PKG_INSTALL_DIR)" \
381 ASTVARLIBDIR="/usr/lib/asterisk" \
382 $(EXTRA_DEFINES) \
383 all install samples
384 $(SED) 's|/var/lib/asterisk|/usr/lib/asterisk|g' $(PKG_INSTALL_DIR)/etc/asterisk/musiconhold.conf
385 rm -f $(PKG_INSTALL_DIR)/etc/asterisk/*.old
386 endef
387
388 define Package/asterisk/install
389 $(CP) $(PKG_INSTALL_DIR)/* $(1)
390 rm -rf $(1)/usr/sbin/astgenkey
391 rm -rf $(1)/usr/bin
392 rm -rf $(1)/usr/share
393 rm -rf $(1)/usr/include
394 rm -rf $(1)/var
395 (cd $(1)/usr/lib/asterisk; \
396 rm -rf agi-bin; \
397 rm -rf images; \
398 rm -rf keys/*; \
399 rm -rf mohmp3/*.mp3; \
400 rm -rf sounds/*; \
401 cd modules; \
402 rm -rf *adsi* *festival* *modem* *meetme* *oss* *phone* *intercom* \
403 *mp3* *nbscat* *mysql* *postgres* *pgsql* *voicemail* *speex* \
404 *zapateller* *jpeg*; \
405 rm -f chan_bluetooth.so ; \
406 rm -f chan_h323.so ; \
407 rm -f chan_mgcp.so ; \
408 rm -f chan_skinny.so ; \
409 rm -f {codec,format}_ilbc.so ; \
410 rm -f codec_lpc10.so ; \
411 rm -f pbx_dundi.so ; \
412 rm -f res_agi.so ; \
413 rm -f res_crypto.so ; \
414 )
415 (cd $(1)/etc/asterisk; \
416 rm -f *odbc* *mysql* *postgres* *pgsql* *voicemail* *adsi* *oss* *alsa* \
417 *festival* *modem* *meetme* *phone* *tds* *vofr* *rpt* *vpb* \
418 *zapata*; \
419 rm -f bluetooth.conf ; \
420 rm -f mgcp.conf ; \
421 rm -f skinny.conf ; \
422 rm -f dundi.conf ; \
423 )
424 $(INSTALL_DATA) ./files/modules.conf $(1)/etc/asterisk/
425 $(INSTALL_DIR) $(1)/etc/default
426 $(INSTALL_DATA) ./files/asterisk.default $(1)/etc/default/asterisk
427 $(INSTALL_DIR) $(1)/etc/init.d
428 $(INSTALL_BIN) ./files/asterisk.init $(1)/etc/init.d/asterisk
429 endef
430
431 define Package/asterisk-mini/install
432 $(INSTALL_DIR) $(1)/etc/asterisk
433 for f in asterisk enum extconfig extensions features iax iaxprov logger manager modules musiconhold rtp sip; do \
434 $(CP) $(PKG_INSTALL_DIR)/etc/asterisk/$$$$f.conf $(1)/etc/asterisk/ ; \
435 done
436 $(INSTALL_DATA) ./files/modules.conf $(1)/etc/asterisk/
437 $(INSTALL_DIR) $(1)/usr/lib/asterisk
438 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/firmware $(1)/usr/lib/asterisk/
439 $(INSTALL_DIR) $(1)/usr/lib/asterisk/keys
440 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
441 for f in chan_iax2 chan_local chan_sip codec_gsm codec_ulaw format_gsm format_pcm format_wav \
442 format_wav_gsm pbx_config res_features res_musiconhold; do \
443 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/$$$$f.so $(1)/usr/lib/asterisk/modules/ ; \
444 done
445 $(INSTALL_DIR) $(1)/usr/lib/asterisk/mohmp3
446 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds
447 $(INSTALL_DIR) $(1)/usr/sbin
448 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/asterisk $(1)/usr/sbin/
449 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/safe_asterisk $(1)/usr/sbin/
450 $(INSTALL_DIR) $(1)/etc/default
451 $(INSTALL_DATA) ./files/asterisk.default $(1)/etc/default/asterisk
452 $(INSTALL_DIR) $(1)/etc/init.d
453 $(INSTALL_BIN) ./files/asterisk.init $(1)/etc/init.d/asterisk
454 endef
455
456 define Package/asterisk-mysql/install
457 $(INSTALL_DIR) $(1)/etc/asterisk
458 install -m0600 $(PKG_BUILD_DIR)/configs/cdr_mysql.conf.sample $(1)/etc/asterisk/cdr_mysql.conf
459 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
460 $(INSTALL_BIN) $(PKG_BUILD_DIR)/apps/app_sql_mysql.so $(1)/usr/lib/asterisk/modules/
461 $(INSTALL_BIN) $(PKG_BUILD_DIR)/cdr/cdr_mysql.so $(1)/usr/lib/asterisk/modules/
462 endef
463
464 define Package/asterisk-pgsql/install
465 $(INSTALL_DIR) $(1)/etc/asterisk
466 install -m0600 $(PKG_BUILD_DIR)/configs/cdr_pgsql.conf.sample $(1)/etc/asterisk/cdr_pgsql.conf
467 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
468 $(INSTALL_BIN) $(PKG_BUILD_DIR)/apps/app_sql_postgres.so $(1)/usr/lib/asterisk/modules/
469 $(INSTALL_BIN) $(PKG_BUILD_DIR)/cdr/cdr_pgsql.so $(1)/usr/lib/asterisk/modules/
470 endef
471
472 define Package/asterisk-sqlite/install
473 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
474 $(INSTALL_BIN) $(PKG_BUILD_DIR)/cdr/cdr_sqlite.so $(1)/usr/lib/asterisk/modules/
475 endef
476
477 define Package/asterisk-sounds/install
478 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds
479 $(CP) $(PKG_BUILD_DIR)/sounds/* $(1)/usr/lib/asterisk/sounds/
480 rm -f $(1)/usr/lib/asterisk/sounds/*.mp3
481 rm -f $(1)/usr/lib/asterisk/sounds/vm-*
482 endef
483
484 define Package/asterisk-voicemail/install
485 $(INSTALL_DIR) $(1)/etc/asterisk
486 $(INSTALL_DATA) $(PKG_BUILD_DIR)/configs/voicemail.conf.sample $(1)/etc/asterisk/voicemail.conf
487 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
488 $(INSTALL_BIN) $(PKG_BUILD_DIR)/apps/*voicemail.so $(1)/usr/lib/asterisk/modules/
489 $(INSTALL_BIN) $(PKG_BUILD_DIR)/res/res_adsi.so $(1)/usr/lib/asterisk/modules/
490 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds
491 $(CP) $(PKG_BUILD_DIR)/sounds/vm-*.gsm $(1)/usr/lib/asterisk/sounds/
492 endef
493
494 define Package/asterisk-app-meetme/install
495 $(INSTALL_DIR) $(1)/etc/asterisk
496 $(INSTALL_DATA) $(PKG_BUILD_DIR)/configs/meetme.conf.sample $(1)/etc/asterisk/meetme.conf
497 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
498 $(INSTALL_BIN) $(PKG_BUILD_DIR)/apps/app_meetme.so $(1)/usr/lib/asterisk/modules/
499 endef
500
501 define Package/asterisk-chan-bluetooth/install
502 $(INSTALL_DIR) $(1)/etc/asterisk
503 $(INSTALL_DATA) $(PKG_BUILD_DIR)/configs/bluetooth.conf $(1)/etc/asterisk/bluetooth.conf
504 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
505 $(INSTALL_BIN) $(PKG_BUILD_DIR)/channels/chan_bluetooth.so $(1)/usr/lib/asterisk/modules/
506 endef
507
508 define Package/asterisk-chan-h323/install
509 $(INSTALL_DIR) $(1)/etc/asterisk
510 $(INSTALL_DATA) $(PKG_BUILD_DIR)/channels/h323/h323.conf.sample $(1)/etc/asterisk/h323.conf
511 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
512 $(INSTALL_BIN) $(PKG_BUILD_DIR)/channels/chan_h323.so $(1)/usr/lib/asterisk/modules/
513 endef
514
515 define Package/asterisk-chan-mgcp/install
516 $(INSTALL_DIR) $(1)/etc/asterisk
517 $(INSTALL_DATA) $(PKG_BUILD_DIR)/configs/mgcp.conf.sample $(1)/etc/asterisk/mgcp.conf
518 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
519 $(INSTALL_BIN) $(PKG_BUILD_DIR)/channels/chan_mgcp.so $(1)/usr/lib/asterisk/modules/
520 endef
521
522 define Package/asterisk-chan-skinny/install
523 $(INSTALL_DIR) $(1)/etc/asterisk
524 $(INSTALL_DATA) $(PKG_BUILD_DIR)/configs/skinny.conf.sample $(1)/etc/asterisk/skinny.conf
525 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
526 $(INSTALL_BIN) $(PKG_BUILD_DIR)/channels/chan_skinny.so $(1)/usr/lib/asterisk/modules/
527 endef
528
529 define Package/asterisk-code-ilbc/install
530 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
531 $(INSTALL_BIN) $(PKG_BUILD_DIR)/codecs/codec_ilbc.so $(1)/usr/lib/asterisk/modules/
532 $(INSTALL_BIN) $(PKG_BUILD_DIR)/formats/format_ilbc.so $(1)/usr/lib/asterisk/modules/
533 endef
534
535 define Package/asterisk-codec-lpc10/install
536 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
537 $(INSTALL_BIN) $(PKG_BUILD_DIR)/codecs/codec_lpc10.so $(1)/usr/lib/asterisk/modules/
538 endef
539
540 define Package/asterisk-codec-speex/install
541 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
542 $(INSTALL_BIN) $(PKG_BUILD_DIR)/codecs/codec_speex.so $(1)/usr/lib/asterisk/modules/
543 endef
544
545 define Package/asterisk-pbx-dundi/install
546 $(INSTALL_DIR) $(1)/etc/asterisk
547 $(INSTALL_DATA) $(PKG_BUILD_DIR)/configs/dundi.conf.sample $(1)/etc/asterisk/dundi.conf
548 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
549 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pbx/pbx_dundi.so $(1)/usr/lib/asterisk/modules/
550 endef
551
552 define Package/asterisk-res-agi/install
553 $(INSTALL_DIR) $(1)/usr/lib/asterisk/agi-bin
554 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
555 $(INSTALL_BIN) $(PKG_BUILD_DIR)/res/res_agi.so $(1)/usr/lib/asterisk/modules/
556 endef
557
558 define Package/asterisk-res-crypto/install
559 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
560 $(INSTALL_BIN) $(PKG_BUILD_DIR)/res/res_crypto.so $(1)/usr/lib/asterisk/modules/
561 endef
562
563 $(eval $(call BuildPackage,asterisk))
564 $(eval $(call BuildPackage,asterisk-mysql))
565 $(eval $(call BuildPackage,asterisk-pgsql))
566 $(eval $(call BuildPackage,asterisk-sqlite))
567 $(eval $(call BuildPackage,asterisk-sounds))
568 $(eval $(call BuildPackage,asterisk-voicemail))
569 $(eval $(call BuildPackage,asterisk-app-meetme))
570 $(eval $(call BuildPackage,asterisk-chan-bluetooth))
571 $(eval $(call BuildPackage,asterisk-chan-h323))
572 $(eval $(call BuildPackage,asterisk-chan-mgcp))
573 $(eval $(call BuildPackage,asterisk-chan-skinny))
574 $(eval $(call BuildPackage,asterisk-codec-ilbc))
575 $(eval $(call BuildPackage,asterisk-codec-lpc10))
576 $(eval $(call BuildPackage,asterisk-codec-speex))
577 $(eval $(call BuildPackage,asterisk-pbx-dundi))
578 $(eval $(call BuildPackage,asterisk-res-agi))
579 $(eval $(call BuildPackage,asterisk-res-crypto))
580 $(eval $(call BuildPackage,asterisk-mini))