summaryrefslogtreecommitdiff
path: root/recipes/asterisk/asterisk-addons_1.6.0-beta2.bb
blob: cab5b85e88f82ad02345777a84b8dac8fdf2bae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright (c) 2008, Ovidiu Sas - VoIP Embedded Inc., All Rights Reserved
# Released under the MIT license (see packages/COPYING)
DESCRIPTION = "The Asterisk open source software PBX"
HOMEPAGE = "http://www.asterisk.org"
SECTION = "voip"
LICENSE = "GPLv2"
PRIORITY = "optional"
SECTION = "console/telephony"
DEPENDS = "asterisk openssl curl"
PR = "r1"

DEFAULT_PREFERENCE = "-1"

SRC_URI="http://downloads.digium.com/pub/asterisk/asterisk-addons-${PV}.tar.gz"

SRC_URI[md5sum] = "190622fb25b4d1402594dd2e1833808b"
SRC_URI[sha256sum] = "1af141e3d74b802e37bee75ef93f873b424363a287b6ca3d3f9e2e41dc2e88cf"

ARCH_efika="ppc"
ARCH_dht-walnut="ppc"
ARCH_magicbox="ppc"
ARCH_sequoia="ppc"


inherit autotools

EXTRA_OECONF =  "--with-ssl=${STAGING_EXECPREFIXDIR}\
		--with-termcap=${STAGING_EXECPREFIXDIR}\
		--with-curl=${STAGING_EXECPREFIXDIR}\
		--without-curses\
		--with-ncurses=${STAGING_EXECPREFIXDIR}\
		--without-mysqlclient\
		--with-h323\
		"

#export NOISY_BUILD=yes

export ASTCFLAGS = "-fsigned-char -I${STAGING_INCDIR} -DPATH_MAX=4096"
export ASTLDFLAGS="${LDFLAGS} -lpthread -ldl -lresolv "
export PROC="${ARCH}"

do_configure () {
	# Looks like rebuilding configure doesn't work, so we are skipping
	# that and are just using the shipped one
	gnu-configize
	libtoolize --force
	oe_runconf
}

do_compile() {
	(
	#make sure that menuselect gets build using host toolchain
	unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS
	cd menuselect 
	./configure
	oe_runmake
	cd ../
	) || exit 1
	oe_runmake
}

CONFFILES_${PN} += "${sysconfdir}/asterisk/mobile.conf"
CONFFILES_${PN} += "${sysconfdir}/asterisk/res_mysql.conf"
CONFFILES_${PN} += "${sysconfdir}/asterisk/ooh323.conf"
CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_mysql.conf"