2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=asterisk-addons
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://ftp.digium.com
/pub
/asterisk
/old-releases
/
17 PKG_MD5SUM
:=c080b02e6ddc81dab6a64691af890805
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/asterisk-addons
/Default
24 SUBMENU
:=asterisk14
(Complete Open Source PBX
), v1.4.x
27 TITLE
:=Asterisk addons
28 URL
:=http
://www.asterisk.org
/
31 define Package
/asterisk-addons
/Default
/description
32 Asterisk addons contains additional modules for Asterisk which are
, for
33 one reason or another
, not included in the normal base distribution.
37 define Package
/asterisk14-chan-mobile
38 $(call Package
/asterisk-addons
/Default
)
39 DEPENDS
:= +asterisk14
+bluez-libs
40 TITLE
+= Mobile channel support
43 define Package
/asterisk14-chan-mobile
/description
44 $(call Package
/asterisk-addons
/Default
/description
)
45 This package contains the chan_mobile module for Asterisk.
49 define Package
/asterisk14-chan-ooh323
50 $(call Package
/asterisk-addons
/Default
)
52 TITLE
+= OO H
.323 channel support
55 define Package
/asterisk14-chan-ooh323
/description
56 $(call Package
/asterisk-addons
/Default
/description
)
57 This package contains the Objective Open H
.323 support module for Asterisk.
61 define Package
/asterisk14-format-mp3
62 $(call Package
/asterisk-addons
/Default
)
64 TITLE
+= MP3 format support
67 define Package
/asterisk14-format-mp3
/description
68 $(call Package
/asterisk-addons
/Default
/description
)
69 This package contains the MP3 support module for Asterisk.
73 define Package
/asterisk14-mysql
74 $(call Package
/asterisk-addons
/Default
)
75 DEPENDS
:= +asterisk14
+libmysqlclient
79 define Package
/asterisk14-mysql
/description
80 $(call Package
/asterisk-addons
/Default
/description
)
81 This package contains MySQL support modules for Asterisk.
85 EXTRA_CFLAGS
:=$(TARGET_CFLAGS
) $(TARGET_CPPFLAGS
)
86 EXTRA_LDFLAGS
:=$(TARGET_LDFLAGS
)
88 ifneq ($(SDK
)$(CONFIG_PACKAGE_asterisk14-mysql
),)
89 EXTRA_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include/mysql
90 EXTRA_LDFLAGS
+= -L
$(STAGING_DIR
)/usr
/lib
/mysql
94 --with-bluetooth
="$(STAGING_DIR)/usr" \
95 --with-ncurses
="$(STAGING_DIR)/usr" \
96 --with-mysqlclient
="$(STAGING_DIR)/usr" \
99 ac_cv_file__usr_include_asterisk_channel_h
="yes" \
101 define Build
/Configure
102 ( cd
$(PKG_BUILD_DIR
); .
/bootstrap.sh
)
103 $(call Build
/Configure
/Default
,,,)
104 $(call Build
/Configure
/Default
,,,asterisk-ooh323c
)
108 # - use AM_CFLAGS for asterisk-ooh323c
109 # - use OPTIMIZE & OPTIONS for format_mp3
112 AM_CFLAGS
="$(TARGET_CFLAGS)" \
113 OPTIMIZE
="$(TARGET_CFLAGS)" \
115 BLUETOOTH_LIB
="$(TARGET_LDFLAGS) -lbluetooth" \
118 CFLAGS
="$(EXTRA_CFLAGS) -DLOW_MEMORY" \
119 LDFLAGS
="$(EXTRA_LDFLAGS)" \
122 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
/lib
/asterisk
/modules
124 $(MAKE
) -C
"$(PKG_BUILD_DIR)" \
128 $(MAKE
) -C
"$(PKG_BUILD_DIR)" \
130 DESTDIR
="$(PKG_INSTALL_DIR)" \
135 define Package
/asterisk14-chan-mobile
/conffiles
136 /etc
/asterisk
/mobile.conf
139 define Package
/asterisk14-chan-mobile
/install
140 $(INSTALL_DIR
) $(1)/etc
/asterisk
141 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/asterisk
/mobile.conf
$(1)/etc
/asterisk
/
142 $(INSTALL_DIR
) $(1)/usr
/lib
/asterisk
/modules
143 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/asterisk
/modules
/chan_mobile.so
$(1)/usr
/lib
/asterisk
/modules
/
147 define Package
/asterisk14-chan-ooh323
/install
148 $(INSTALL_DIR
) $(1)/usr
/lib
/asterisk
/modules
149 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/asterisk
/modules
/chan_ooh323.so
$(1)/usr
/lib
/asterisk
/modules
/
153 define Package
/asterisk14-format-mp3
/install
154 $(INSTALL_DIR
) $(1)/usr
/lib
/asterisk
/modules
155 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/asterisk
/modules
/format_mp3.so
$(1)/usr
/lib
/asterisk
/modules
/
159 define Package
/asterisk14-mysql
/conffiles
160 /etc
/asterisk
/cdr_mysql.conf
161 /etc
/asterisk
/res_mysql.conf
164 define Package
/asterisk14-mysql
/install
165 $(INSTALL_DIR
) $(1)/etc
/asterisk
166 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/asterisk
/cdr_mysql.conf
$(1)/etc
/asterisk
/
167 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/asterisk
/res_mysql.conf
$(1)/etc
/asterisk
/
168 $(INSTALL_DIR
) $(1)/usr
/lib
/asterisk
/modules
169 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/asterisk
/modules
/app_addon_sql_mysql.so
$(1)/usr
/lib
/asterisk
/modules
/
170 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/asterisk
/modules
/cdr_addon_mysql.so
$(1)/usr
/lib
/asterisk
/modules
/
171 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/asterisk
/modules
/res_config_mysql.so
$(1)/usr
/lib
/asterisk
/modules
/
175 $(eval
$(call BuildPackage
,asterisk14-chan-mobile
))
176 $(eval
$(call BuildPackage
,asterisk14-chan-ooh323
))
177 $(eval
$(call BuildPackage
,asterisk14-format-mp3
))
178 $(eval
$(call BuildPackage
,asterisk14-mysql
))