# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="A native SIP communications system for voice, presence, messaging and collaboration - sipXtackLib" HOMEPAGE="http://www.sipfoundry.org/" SRC_URI="http://sipxecs.sipfoundry.org/temp/sipXecs/3.8/SRC/${P}.tar.gz" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~x86" IUSE="alsa doc java latex ssl test" RESTRICT="nomirror" DEPEND=" >=dev-util/cppunit-1.9 doc? ( app-doc/doxygen ) java? ( >=virtual/jdk-1.5.0 ) java? ( >=dev-java/ant-1.7.0 ) ssl? ( >=dev-libs/openssl-0.9.8d ) test? ( net-dns/bind ) =net-misc/sipxportlib-${PV} " RDEPEND="" pkg_setup() { if ! use java; then einfo "Java is not enabled on your system. The sipviewer utility will" einfo "therefore not be installed. To build sipviewer, add \"java\"" einfo "to your USE flags and re-emerge." einfo "Press Ctrl-C now to interrupt this emerge." sleep 10 fi if use test; then ewarn "You have \"test\" enabled. An instance of named will be started" ewarn "for the unit tests during the build." ewarn "Specify FEATURES=\"test\" to actually run the named unit tests." sleep 10 fi } src_unpack() { unpack ${A} } src_compile() { local myconf myconf=" \ `use_enable doc doxygen` \ `use_enable latex latex-docs` \ `use_enable java sipviewer` \ `use_enable ssl sip-tls` \ --prefix=/usr/lib/sipx \ --bindir=/usr/lib/sipx \ --sbindir=/usr/lib/sipx \ --libexecdir=/usr/lib/sipx \ --libdir=/usr/lib \ --includedir=/usr/include \ --localstatedir=/var \ --with-sipxportinc=/usr/include \ --with-sipxportlib=/usr/lib \ --with-sipxmediainc=/usr/include \ --with-sipxmedialib=/usr/lib \ --with-sipxtackinc=/usr/include \ --with-sipxtacklib=/usr/lib" if use test ; then myconf="${myconf} --with-named=/usr/sbin/named" fi econf \ ${myconf} \ || die "Error: econf failed" emake || die "Error: emake failed" } src_install() { make DESTDIR=${D} install || die "Error: install failed." }