Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 217801 | Differences between
and this patch

Collapse All | Expand All

(-)asterisk-1.6.2.1.ebuild (-2 / +35 lines)
Lines 14-20 Link Here
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~amd64 ~x86"
15
KEYWORDS="~amd64 ~x86"
16
16
17
IUSE="alsa +caps curl dahdi debug freetds iconv jabber ldap keepsrc misdn newt nosamples oss postgres radius snmp span speex ssl sqlite static vorbis"
17
IUSE="alsa +caps curl dahdi debug freetds iconv ilbc jabber ldap keepsrc misdn newt nosamples oss postgres radius snmp span speex ssl sqlite static vorbis"
18
18
19
RDEPEND="sys-libs/ncurses
19
RDEPEND="sys-libs/ncurses
20
	dev-libs/popt
20
	dev-libs/popt
Lines 26-31 Link Here
26
		net-misc/dahdi-tools )
26
		net-misc/dahdi-tools )
27
	freetds? ( dev-db/freetds )
27
	freetds? ( dev-db/freetds )
28
	iconv? ( virtual/libiconv )
28
	iconv? ( virtual/libiconv )
29
	ilbc? ( dev-libs/ilbc-rfc3951 )
29
	jabber? ( dev-libs/iksemel )
30
	jabber? ( dev-libs/iksemel )
30
	ldap?	( net-nds/openldap )
31
	ldap?	( net-nds/openldap )
31
	misdn? ( net-dialup/misdnuser )
32
	misdn? ( net-dialup/misdnuser )
Lines 106-111 Link Here
106
	#
107
	#
107
	epatch "${FILESDIR}"/1.6.2/${P}-parallel-make.patch || die "patch failed"
108
	epatch "${FILESDIR}"/1.6.2/${P}-parallel-make.patch || die "patch failed"
108
109
110
	# patch the ilbc makefile to avoid building ilbc lib since it's already provided by dev-libs/ilbc-rfc3951
111
	use ilbc && epatch "${FILESDIR}"/${PN}-ilbc-v2.diff
112
109
	AT_M4DIR=autoconf eautoreconf
113
	AT_M4DIR=autoconf eautoreconf
110
114
111
	# parse modules list
115
	# parse modules list
Lines 134-139 Link Here
134
138
135
		export MODULES_LIST
139
		export MODULES_LIST
136
	fi
140
	fi
141
142
	if use ilbc ; then
143
		ewarn "      Asterisk iLBC Codec Warning"
144
		ewarn ""
145
		ewarn "Asterisk does not distribute the iLBC codec source code anymore."
146
		ewarn "dev-libs/ilbc-rfc3951 will be used instead."
147
		ewarn "On some systems dev-libs/ilbc-rfc3951 should be compiled with -fPIC"
148
		ewarn "otherwise Asterisk may fail to start when it loads codec_ilbc."
149
		ewarn ""
150
		ewarn "      Asterisk iLBC Codec Warning"
151
		echo
152
		waitaftermsg=1
153
	fi
154
155
	if [[ $waitaftermsg -eq 1 ]]; then
156
		einfo "Press Ctrl+C to abort"
157
		echo
158
		ebeep 10
159
	fi
137
}
160
}
138
161
139
src_compile() {
162
src_compile() {
Lines 219-227 Link Here
219
			then
242
			then
220
				category="$(echo ${category} | tr '[:lower:]' '[:upper:]')"
243
				category="$(echo ${category} | tr '[:lower:]' '[:upper:]')"
221
				sed -i -e "s:^\(MENUSELECT_${category}S?\):\1=${tmp_list}:" \
244
				sed -i -e "s:^\(MENUSELECT_${category}S?\):\1=${tmp_list}:" \
222
					menuselect.makeopts || die "failed to set list of ${category} applications"
245
					emake menuselect.makeopts || die "failed to set list of ${category} applications"
246
					# dirty fix to remove codec_ilbc from menuselect.makeopts
247
					if use ilbc ; then
248
						sed -i -e "s:codec_ilbc::" menuselect.makeopts || die "ilbc: sed failed"
249
					fi
223
			fi
250
			fi
224
		done
251
		done
252
	else
253
		# dirty fix to remove codec_ilbc from menuselect.makeopts
254
		if use ilbc ; then
255
			emake menuselect.makeopts || die "ilbc: emake menuselect.makeopts failed"
256
			sed -i -e "s:codec_ilbc::" menuselect.makeopts || die "ilbc: sed failed"
257
		fi
225
	fi
258
	fi
226
259
227
	ASTLDFLAGS="${LDFLAGS}" emake || die "emake failed"
260
	ASTLDFLAGS="${LDFLAGS}" emake || die "emake failed"

Return to bug 217801