2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
10 # - create smaller default config files (sip.conf and extensions.conf)
11 # - ldd /usr/sbin/asterisk result:
12 # + libssl.so.0.9.8 dep. is missing (and zlib sub dep.) => libopenssl
13 # + libcrypto.so.0.9.8 dep. is missing => libopenssl
14 # => need 1063071 and 223551 bytes!
16 # + load_dynamic_module: Error loading module 'func_strings.so': File not found
17 # + Unable to open Asterisk database '/var/lib/asterisk/astdb
18 # + Error loading module 'res_musiconhold.so': File not found
19 # - mkdir -p /var/lib/asterisk/
20 # - app_echo.so need app_playback.so
21 # - I need app_macro.so
22 # - Function "CALLERID not registered
25 # 20090111 nm build brcm47xx failde: add --without-sdl to CONFIGURE_ARGS
26 # build x86: Package gtk+-2.0 was not found in the pkg-config search path.
27 # => --without-gtk and --without-gtk2 added to CONFIGURE_ARGS but libpopt
30 include $(TOPDIR
)/rules.mk
33 PKG_VERSION
:=1.6.1-rc1
36 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
37 PKG_SOURCE_URL
:=http
://downloads.digium.com
/pub
/asterisk
/releases
/
38 PKG_MD5SUM
:=29f7285b673d52b49d91c8e797acbbb0
40 include $(INCLUDE_DIR
)/package.mk
42 define Package
/asterisk16
/Default
43 SUBMENU
:=asterisk16
(Complete Open Source PBX
), v1.6.x
46 URL
:=http
://www.asterisk.org
/
49 define Package
/asterisk16
/Default
/description
50 Asterisk is a complete PBX in software. It provides
all of the features
51 you would expect from a PBX and more. Asterisk does voice over IP in three
52 protocols
, and can interoperate with almost
all standards-based telephony
53 equipment using relatively inexpensive hardware.
57 define Package
/asterisk16
58 $(call Package
/asterisk16
/Default
)
59 TITLE
:=Complete open source PBX
60 DEPENDS
:= +libncurses
+libpopt
+libpthread
+zlib @
!TARGET_avr32 @
!PACKAGE_asterisk14
63 define Package
/asterisk16
/description
64 $(call Package
/asterisk16
/Default
/description
)
67 define Package
/asterisk16-sounds
68 $(call Package
/asterisk16
/Default
)
73 define Package
/asterisk16-sounds
/description
74 $(call Package
/asterisk16
/Default
/description
)
75 This package contains sound files for Asterisk.
79 define Package
/asterisk16-voicemail
80 $(call Package
/asterisk16
/Default
)
81 TITLE
:=Voicemail support
85 define Package
/asterisk16-voicemail
/description
86 $(call Package
/asterisk16
/Default
/description
)
87 This package contains voicemail related modules for Asterisk.
90 define Package
/asterisk16-app-meetme
91 $(call Package
/asterisk16
/Default
)
92 TITLE
:=conferencing support
93 DEPENDS
:= +asterisk16
+dahdi-tools-libtonezone
+kmod-dahdi-linux
96 define Package
/asterisk16-app-meetme
/description
97 $(call Package
/asterisk16
/Default
/description
)
98 This package provides the MeetMe application driver Conferencing support to
105 --with-gsm
=internal \
112 --with-ncurses
="$(STAGING_DIR)/usr" \
118 --with-popt
="$(STAGING_DIR)/usr" \
130 --with-z
="$(STAGING_DIR)/usr" \
132 ifneq ($(SDK
)$(CONFIG_PACKAGE_asterisk16-app-meetme
),)
134 --with-dahdi
="$(STAGING_DIR)/usr"
140 EXTRA_CFLAGS
:= $(TARGET_CPPFLAGS
)
141 EXTRA_LDFLAGS
:= $(TARGET_LDFLAGS
)
143 define Build
/Configure
144 -rm $(PKG_BUILD_DIR
)/menuselect.makeopts
145 $(call Build
/Configure
/Default
,,$(SITE_VARS
))
149 $(MAKE
) -C
"$(PKG_BUILD_DIR)" \
150 include/asterisk
/version.h \
151 include/asterisk
/buildopts.h defaults.h \
153 ASTCFLAGS
="$(EXTRA_CFLAGS) -DLOW_MEMORY $(TARGET_CFLAGS)" \
154 ASTLDFLAGS
="$(EXTRA_LDFLAGS)" \
155 $(MAKE
) -C
"$(PKG_BUILD_DIR)" \
156 ASTVARLIBDIR
="/usr/lib/asterisk" \
160 DESTDIR
="$(PKG_INSTALL_DIR)" \
162 $(SED
) 's|/var/lib/asterisk|/usr/lib/asterisk|g' $(PKG_INSTALL_DIR
)/etc
/asterisk
/musiconhold.conf
165 #define Build/InstallDev
166 # mkdir -p $(1)/usr/include/asterisk/
167 # $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h $(1)/usr/include/asterisk/
168 # $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk.h $(1)/usr/include/
171 define Package
/asterisk16
/conffiles
172 /etc
/asterisk
/asterisk.conf
173 /etc
/asterisk
/modules.conf
174 /etc
/asterisk
/extensions.conf
175 /etc
/asterisk
/sip.conf
176 /etc
/asterisk
/sip_notify.conf
177 /etc
/asterisk
/features.conf
178 /etc
/asterisk
/logger.conf
179 /etc
/asterisk
/manager.conf
180 /etc
/asterisk
/rtp.conf
181 /etc
/default
/asterisk
185 define Package
/asterisk16
/install
186 $(INSTALL_DIR
) $(1)/etc
/asterisk
187 for f in asterisk extensions features \
188 logger manager modules \
189 sip sip_notify rtp
; do \
190 $(CP
) $(PKG_INSTALL_DIR
)/etc
/asterisk
/$$$$f.conf
$(1)/etc
/asterisk
/ ; \
192 $(INSTALL_DIR
) $(1)/usr
/lib
/asterisk
/modules
193 for f in app_dial chan_sip \
194 codec_ulaw codec_gsm \
195 format_gsm format_pcm format_wav format_wav_gsm \
196 pbx_config func_timeout
; do \
197 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/asterisk
/modules
/$$$$f.so
$(1)/usr
/lib
/asterisk
/modules
/ ; \
199 $(INSTALL_DIR
) $(1)/usr
/sbin
200 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/asterisk
$(1)/usr
/sbin
/
201 $(INSTALL_DIR
) $(1)/etc
/default
202 $(INSTALL_DATA
) .
/files
/asterisk.default
$(1)/etc
/default
/asterisk
203 $(INSTALL_DIR
) $(1)/etc
/init.d
204 $(INSTALL_BIN
) .
/files
/asterisk.init
$(1)/etc
/init.d
/asterisk
207 define Package
/asterisk16-sounds
/install
208 $(INSTALL_DIR
) $(1)/usr
/lib
/asterisk
/sounds
/
209 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/asterisk
/sounds
/en
/* $(1)/usr
/lib
/asterisk
/sounds
/
210 rm -f
$(1)/usr
/lib
/asterisk
/sounds
/vm-
*
211 rm -f
$(1)/usr
/lib
/asterisk
/sounds
/conf-
*
215 define Package
/asterisk16-voicemail
/conffiles
216 /etc
/asterisk
/voicemail.conf
219 define Package
/asterisk16-voicemail
/install
220 $(INSTALL_DIR
) $(1)/etc
/asterisk
221 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/asterisk
/voicemail.conf
$(1)/etc
/asterisk
/
222 $(INSTALL_DIR
) $(1)/usr
/lib
/asterisk
/modules
223 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/asterisk
/modules
/*voicemail.so
$(1)/usr
/lib
/asterisk
/modules
/
224 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/asterisk
/modules
/res_adsi.so
$(1)/usr
/lib
/asterisk
/modules
/
225 $(INSTALL_DIR
) $(1)/usr
/lib
/asterisk
/sounds
/
226 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/asterisk
/sounds
/en
/vm-
*.gsm
$(1)/usr
/lib
/asterisk
/sounds
/
229 define Package
/asterisk16-app-meetme
/conffiles
230 /etc
/asterisk
/meetme.conf
233 define Package
/asterisk16-app-meetme
/install
234 $(INSTALL_DIR
) $(1)/etc
/asterisk
235 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/asterisk
/meetme.conf
$(1)/etc
/asterisk
/
236 $(INSTALL_DIR
) $(1)/usr
/lib
/asterisk
/modules
237 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/asterisk
/modules
/app_meetme.so
$(1)/usr
/lib
/asterisk
/modules
/
238 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/asterisk
/modules
/chan_dahdi.so
$(1)/usr
/lib
/asterisk
/modules
/
239 $(INSTALL_DIR
) $(1)/usr
/lib
/asterisk
/sounds
/
240 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/asterisk
/sounds
/en
/conf-
*.gsm
$(1)/usr
/lib
/asterisk
/sounds
/
243 $(eval
$(call BuildPackage
,asterisk16
))
244 $(eval
$(call BuildPackage
,asterisk16-voicemail
))
245 $(eval
$(call BuildPackage
,asterisk16-sounds
))
246 #$(eval $(call BuildPackage,asterisk16-app-meetme))