added ebuilds for ptlib and latest opal
This commit is contained in:
parent
cc9c234eb2
commit
8951e57cf2
5 changed files with 198 additions and 0 deletions
3
net-libs/opal/Manifest
Normal file
3
net-libs/opal/Manifest
Normal file
|
@ -0,0 +1,3 @@
|
|||
DIST opal-3.4.2-htmldoc.tar.gz 7340648 RMD160 00406c37cc9ed8ebb1accf130bc77740db73a9d6 SHA1 25c569d6cec7fd92e33d6d23e42aca1e523489bf SHA256 78b15ba91badf2783541f634bdea437d1ceb39615be1c657c42939f2b3ac7d8e
|
||||
DIST opal-3.4.2.tar.bz2 8260545 RMD160 9c62db97e8cf5d3add9e2c7aa7cecf9953dc0f39 SHA1 53a2adfccd4fa0f2cffece94690cea29c0a38a47 SHA256 fd598df06d472fbedd887f9c44d6a8fe1984730a0a72408352de2d7172f5ab3b
|
||||
EBUILD opal-3.4.2.ebuild 1761 RMD160 56227d4783507070fe021f5326be40988c562be0 SHA1 604cff5230066cf117db6eef0d134f58c6e47c11 SHA256 000aebe683d38bfc45f11ea9f8724f32c9f0f7f29a5464d3f247bf4ab33029db
|
74
net-libs/opal/opal-3.4.2.ebuild
Normal file
74
net-libs/opal/opal-3.4.2.ebuild
Normal file
|
@ -0,0 +1,74 @@
|
|||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
inherit eutils flag-o-matic
|
||||
|
||||
DESCRIPTION="C++ class library normalising numerous telephony protocols"
|
||||
HOMEPAGE="http://www.opalvoip.org/"
|
||||
SRC_URI="mirror://sourceforge/opalvoip/${P}.tar.bz2
|
||||
doc? ( mirror://sourceforge/opalvoip/${P}-htmldoc.tar.gz )"
|
||||
|
||||
LICENSE="MPL-1.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="debug doc java"
|
||||
|
||||
RDEPEND=">=dev-libs/ptlib-2.0.0
|
||||
>=media-video/ffmpeg-0.4.7
|
||||
media-libs/speex
|
||||
java? ( virtual/jdk )"
|
||||
|
||||
pkg_setup() {
|
||||
if use debug && ! built_with_use dev-libs/ptlib debug; then
|
||||
eerror "You need to build dev-libs/ptlib with USE=debug enabled."
|
||||
die "dev-libs/ptlib has to be built with USE=debug"
|
||||
fi
|
||||
|
||||
if ! use debug && built_with_use dev-libs/ptlib debug; then
|
||||
eerror "You need to build dev-libs/ptlib without USE=debug."
|
||||
die "dev-libs/ptlib has not to be built with USE=debug"
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
# move files from ${P}-htmldoc.tar.gz
|
||||
use doc && mv ../html .
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-lpcini.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local makeopts
|
||||
|
||||
filter-ldflags -Wl,--as-needed --as-needed
|
||||
|
||||
# zrtp doesn't depend on net-libs/libzrtpcpp but on libzrtp from
|
||||
# http://zfoneproject.com/ that is not in portage
|
||||
econf \
|
||||
$(use_enable debug) \
|
||||
$(use_enable java) \
|
||||
--enable-plugins \
|
||||
--disable-localspeex \
|
||||
--disable-zrtp \
|
||||
|| die "econf failed"
|
||||
|
||||
if use debug; then
|
||||
makeopts="debug"
|
||||
else
|
||||
makeopts="opt"
|
||||
fi
|
||||
|
||||
emake ${makeopts} || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake PREFIX=/usr DESTDIR="${D}" install || die "emake install failed"
|
||||
|
||||
if use doc; then
|
||||
dohtml -r html/* docs/* || die "documentation installation failed"
|
||||
fi
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue