diff options
author | 2009-07-03 17:25:23 +0000 | |
---|---|---|
committer | 2009-07-03 17:25:23 +0000 | |
commit | e2be48220d990c80624a02335fc80f2a82301177 (patch) | |
tree | 83cabcfc8f661a126df195f9006fdb0286107834 | |
parent | removing net-voip/ekiga from package.mask (diff) | |
download | voip-e2be48220d990c80624a02335fc80f2a82301177.tar.gz voip-e2be48220d990c80624a02335fc80f2a82301177.tar.bz2 voip-e2be48220d990c80624a02335fc80f2a82301177.zip |
net-libs/opal: removing, in gentoo-x86
svn path=/trunk/; revision=870
-rw-r--r-- | net-libs/opal/ChangeLog | 54 | ||||
-rw-r--r-- | net-libs/opal/Manifest | 10 | ||||
-rw-r--r-- | net-libs/opal/files/opal-3.4.5-stats.patch | 12 | ||||
-rw-r--r-- | net-libs/opal/files/opal-lpcini.patch | 11 | ||||
-rw-r--r-- | net-libs/opal/metadata.xml | 36 | ||||
-rw-r--r-- | net-libs/opal/opal-3.4.5.ebuild | 255 | ||||
-rw-r--r-- | net-libs/opal/opal-3.6.1.ebuild | 268 |
7 files changed, 0 insertions, 646 deletions
diff --git a/net-libs/opal/ChangeLog b/net-libs/opal/ChangeLog deleted file mode 100644 index 37a8e9d..0000000 --- a/net-libs/opal/ChangeLog +++ /dev/null @@ -1,54 +0,0 @@ -# ChangeLog for net-libs/opal -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: $ - - 18 Apr 2009; Mounir Lamouri <volkmar@gentoo.org> opal-3.6.1.ebuild: - Add ~amd64 after Manfred Knick tests - - 31 Mar 2009; Mounir Lamouri (volkmar) <mounir.lamouri@gmail.com> - opal-3.6.1.ebuild: - Removing msrp use flag because it breaks the build - - 30 Mar 2009; Mounir Lamouri (volkmar) <mounir.lamouri@gmail.com> - opal-3.6.1.ebuild: - Fix build when h323 is enabled without ptlib[asn] - - 29 Mar 2009; Mounir Lamouri (volkmar) <mounir.lamouri@gmail.com> - opal-3.6.1.ebuild: - Add mandatory stun flag to ptlib dep - - 29 Mar 2009; Mounir Lamouri (volkmar) <mounir.lamouri@gmail.com> - opal-3.6.1.ebuild: - Fixing mpeg4 plugin issue - - 25 Mar 2009; Mounir Lamouri (volkmar) <mounir.lamouri@gmail.com> - +opal-3.6.1.ebuild: - Version bump to 3.6.1 needed by ekiga-3.2 - -*opal-3.6.1 (25 Mar 2009) - - 18 Mar 2009; Mounir Lamouri (volkmar) <mounir.lamouri@gmail.com> - opal-3.4.5.ebuild: - Add ~x86 keyword - - 15 Mar 2009; Mounir Lamouri (volkmar) <mounir.lamouri@gmail.com> - opal-3.4.5.ebuild: - add sip and h323 as default use flags - -*opal-3.4.5 (13 Mar 2009) - - 13 Mar 2009; Mounir Lamouri (volkmar) <mounir.lamouri@gmail.com> - -opal-2.3.0.1.ebuild, +opal-3.4.5.ebuild: - version bump 2.3.0.1 to 3.4.5 - -*opal-2.2.2 (06 Jun 2006) - - 06 Jun 2006; Stefan Schweizer <genstef@gentoo.org> +opal-2.2.2.ebuild: - version bump thanks to David PIRY <klessou@gmail.com> in bug 135785 - -*opal-2.2.1 (20 Mar 2006) - - 20 Mar 2006; Stefan Schweizer <genstef@gentoo.org> - +files/opal-2.1.1-notrace.diff, +metadata.xml, +opal-2.2.1.ebuild: - New ebuild for ekiga, bug 119611 - diff --git a/net-libs/opal/Manifest b/net-libs/opal/Manifest deleted file mode 100644 index 5a99b2f..0000000 --- a/net-libs/opal/Manifest +++ /dev/null @@ -1,10 +0,0 @@ -AUX opal-3.4.5-stats.patch 289 RMD160 00228bd3f714f9c2c2a95d76f0c113375d16afb9 SHA1 c8a872b7316830bab774b8f4ec91daf647e0e6e3 SHA256 467d4754391e935e13af3d994f280913446df11d8a3b5b16efae16c404401839 -AUX opal-lpcini.patch 301 RMD160 1952b7b4b40283615cad283c0407d777b62bd215 SHA1 2dd1bdb7e890e9416f03faf4f327c44267a6b498 SHA256 8a6b3ca1bd2fbe7e14883499b3fb59952f615dc5a954d544f8fdba8186aa41a4 -DIST opal-3.4.5-htmldoc.tar.bz2 5777524 RMD160 241538a00a044add293cd627474c90bb82c08c35 SHA1 ba3a2f465d703f4d1bd030e42da02be3fc913298 SHA256 4fb61f7ba9fb3bb6dd1103a1d4e43242be17b2635354934c5d4630fa8cf44bb1 -DIST opal-3.4.5.tar.bz2 8000318 RMD160 71125ff5237d3efd9c534ce23fcd814614b1fbfb SHA1 2604489702f19860f18b24244a9bd16504471e64 SHA256 efeeaad5a6d6eff7952a9f4f896fae31b0bb852e07a863f6f16f08422602503d -DIST opal-3.6.1-htmldoc.tar.bz2 5863294 RMD160 2d90dda7a6cdbb4cb3743688fc32a3ff9b532511 SHA1 f33af480786d65c1cdb0db564f93c34f68eee9bd SHA256 41dfa29fa213eb65eff9d20c89befe4431979a45b97410d3ad2ed200071eae5d -DIST opal-3.6.1.tar.bz2 6993734 RMD160 3a19a46d67957d26b3261804e1489ffd83ef1662 SHA1 989bad4d3bc35828da8198740eaabe249f4c30df SHA256 e6b48a294b35449c851c2a6ea6969041ed7f4148e92b3faa03a330b7bb5a59af -EBUILD opal-3.4.5.ebuild 7816 RMD160 d513bf19ca565987b02b6d97ae4fda9335775196 SHA1 a203646872853d2c36fc340901609ed04b209c4f SHA256 d65720d9d096d720731c5f907ad2b0d561058a69c18a5637fdf90144ab491dae -EBUILD opal-3.6.1.ebuild 8609 RMD160 d4a0845bde2e29a894da103a8d22701bfe9936d8 SHA1 a2de6fef83c3368b6cd0f836e566f56e38865b32 SHA256 2e36bc0188fa82a7c895033c66755f29f92b4c52fd760832fe20eff774c2a34a -MISC ChangeLog 1676 RMD160 a70b7148ada0bba2614277a440a7888c939a133c SHA1 a338d93f2ddf976c8e96c3ee5a6dcedc9d230b8c SHA256 44635ffe5b2e630347dafcd36c0dad5700836f6e1aafddce91db289d74ce46da -MISC metadata.xml 1786 RMD160 a379aedd7b939d7e016d3bdd3de80b1bd08c8715 SHA1 8f2438477b65459528a8aa065234db19f48137ff SHA256 03694b9b7fc4ebb5ce389b89693d564ae95c9facf0a9f3a4e89e78ccfd89a8a8 diff --git a/net-libs/opal/files/opal-3.4.5-stats.patch b/net-libs/opal/files/opal-3.4.5-stats.patch deleted file mode 100644 index 4b13b76..0000000 --- a/net-libs/opal/files/opal-3.4.5-stats.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- src/opal/rtpconn.cxx.old 2009-03-12 18:45:43.000000000 -0400 -+++ src/opal/rtpconn.cxx 2009-03-12 18:45:49.000000000 -0400 -@@ -250,8 +250,8 @@ - session->SendIntraFrameRequest(); - #if OPAL_STATISTICS - m_VideoUpdateRequestsSent++; -- } - #endif -+ } - } - } - } diff --git a/net-libs/opal/files/opal-lpcini.patch b/net-libs/opal/files/opal-lpcini.patch deleted file mode 100644 index a59ef79..0000000 --- a/net-libs/opal/files/opal-lpcini.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- plugins/audio/LPC_10/src/lpcini.c.orig 2008-09-24 23:01:05.000000000 -0400 -+++ plugins/audio/LPC_10/src/lpcini.c 2008-09-25 00:39:34.000000000 -0400 -@@ -50,6 +50,8 @@ - #ifdef _MSC_VER - #include <malloc.h> - #endif -+#else -+ extern void * malloc(); - #endif - - /* Common Block Declarations */ diff --git a/net-libs/opal/metadata.xml b/net-libs/opal/metadata.xml deleted file mode 100644 index fdee85c..0000000 --- a/net-libs/opal/metadata.xml +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>voip</herd> - <use> - <flag name="audio">Enable audio support</flag> - <flag name="capi">Enable CAPI support</flag> - <flag name="dns">Enable DNS resolver support</flag> - <flag name="dtmf">Enable DTMF encoding/decoding support</flag> - <flag name="fax">Enable T.38 FAX protocol</flag> - <flag name="g711plc">Enable G711 Packet Loss Concealment</flag> - <flag name="h224">Enable H.224 Far-End Camera Control protocol</flag> - <flag name="h323">Enable H.323 protocol</flag> - <flag name="iax">Enable Inter-Asterisk eXchange protocol</flag> - <flag name="ivr">Enable Interactive Voice Response</flag> - <flag name="ixj">Enable xJack cards support</flag> - <flag name="lid">Enable Line Interface Device</flag> -<!-- <flag name="msrp">Enable Message Session Relay Protocol</flag>--> - <flag name="plugins">Enable plugins support</flag> - <flag name="rfc4103">Enable RTP Payload for Text Conversation</flag> - <flag name="rfc4175">Enable RTP Payload Format for Uncompressed Video - </flag> - <flag name="sbc">Enable SubBand Codec</flag> - <flag name="sip">Enable Session Initiation Protocol</flag> - <flag name="sipim">Enable SIP Instant Messages session</flag> - <flag name="srtp">Enable Secure Real-time Transport Protocol</flag> - <flag name="stats">Enable statistic reporting</flag> - <flag name="swig">Use swig to generate bindings</flag> - <flag name="video">Enable video support</flag> - <flag name="vpb">Enable Voicetronics VPB card support</flag> - <flag name="vxml">Enable VXML support</flag> - <flag name="wav">Enable WAVFILE support</flag> - <flag name="x264-static">Install x264 plugin statically linked with x264 - </flag> - </use> -</pkgmetadata> diff --git a/net-libs/opal/opal-3.4.5.ebuild b/net-libs/opal/opal-3.4.5.ebuild deleted file mode 100644 index d4563bb..0000000 --- a/net-libs/opal/opal-3.4.5.ebuild +++ /dev/null @@ -1,255 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -inherit autotools 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.bz2 )" - -LICENSE="MPL-1.0" -SLOT="0" -KEYWORDS="~ppc ~x86" -IUSE="+audio capi debug dns doc dtmf examples fax ffmpeg g711plc h224 +h323 iax -ipv6 ivr ixj java ldap lid +plugins rfc4175 +sip srtp ssl stats theora +video -vpb vxml wav x264 x264-static xml" - -RDEPEND=">=net-libs/ptlib-2.0.0[debug=,audio?,dns?,dtmf?,ipv6?,ldap?,ssl?,video?,vxml?,wav?,xml?] - >=media-libs/speex-1.2_beta - fax? ( net-libs/ptlib[asn] ) - ivr? ( net-libs/ptlib[xml,vxml] ) - java? ( virtual/jdk ) - plugins? ( media-sound/gsm - capi? ( net-dialup/capi4k-utils ) - fax? ( media-libs/spandsp ) - ffmpeg? ( >=media-video/ffmpeg-0.4.7[encode] ) - ixj? ( sys-kernel/linux-headers ) - theora? ( media-libs/libtheora ) - x264? ( >=media-video/ffmpeg-0.4.7 - media-libs/x264 ) ) - srtp? ( net-libs/libsrtp )" -DEPEND="${RDEPEND} - dev-util/pkgconfig - >=sys-devel/gcc-3" - -# NOTES: -# need speexdsp, that means >=speex-1.2 -# ffmpeg[encode] is for h263, h263p and mpeg4 -# fax enable fax, t38 and spandsp support -# h323 auto-enables h450, h460 and h501 wich provide supplementary services -# ssl, xml, vxml, ipv6, dtmf, ldap, audio, wav, dns and video are use flags -# herited from ptlib: feature is enabled if ptlib has enabled it -# however, disabling it if ptlib has it looks hard (coz of buildopts.h) -# forcing ptlib to disable it for opal is not a solution too -# atm, accepting the "auto-feature" looks like a good solution -# asn is used for fax and config for examples -# OPALDIR should not be used anymore, if a package still need it, create it - -pkg_setup() { - local warning=false - - # opal can't be built with --as-needed - # users where experiencing issues with --as-needed, see bug 238610 - # TODO: should be re-tested and, if possible, fixed in a cleanier way - append-ldflags -Wl,--no-as-needed - - # warn user about use flag that are gonna override other ones - - if ! use plugins; then - ewarn "disabling plugins will automatialy disable a lot of ${PN} features" - ewarn "like gsm, capi, spandsp, ffmpeg, ixj, theora and x264" - ewarn "it is _not_ recommended" - warning=true - fi - - if use h224 && ! use h323; then - ewarn "h224 support needs h323 support: h224 support has been disabled" - ewarn "enable h323 support if you want to use the h224 support" - warning=true - fi - - if use rfc4175 && ! use video; then - ewarn "rfc4175 support needs video support: rfc4175 support has been disabled" - ewarn "enable video support if you want to use the rfc4175 support" - warning=true - fi - - if use x264-static && ! use x264; then - ewarn "x264-static has been enabled but x264 support has been disabled" - fi - - if ${warning}; then - echo - ewarn "If one of the warnings above is not volunteer, hit Ctrl+C now" - ewarn "and re-emerge ${PN} with the desired USE flags" - echo - ebeep - epause - fi -} - -src_prepare() { - # move files from ${P}-htmldoc.tar.gz - if use doc; then - mv ../html . || die "moving doc files failed" - fi - - # remove visual studio related files from samples/ - if use examples; then - rm -f samples/*/*.vcproj - rm -f samples/*/*.sln - rm -f samples/*/*.dsp - rm -f samples/*/*.dsw - fi - - # h501 is in configure.ac but not in configure, updating the script - # upstream has been contacted, bug 2686483 in their bugtracker - eautoreconf - - # disable srtp if srtp is not enabled (prevent auto magic dep) - # upstream has been contacted, bug 2686485 in their bugtracker - if ! use srtp; then - sed -i -e "s/OPAL_SRTP=yes/OPAL_SRTP=no/" configure \ - || die "patching configure failed" - fi - - # disable theora if theora is not enabled (prevent auto magic dep) - # upstream has been contacted, bug 2686488 in their bugtracker - if ! use theora; then - sed -i -e "s/HAVE_THEORA=yes/HAVE_THEORA=no/" plugins/configure \ - || die "patching plugins/configure failed" - fi - - # disable mpeg4 and h263p if ffmpeg is not enabled (prevent auto magic dep) - # upstream has been contacted, bug 2686495 in their bugtracker - if ! use ffmpeg; then - sed -i -e "s/HAVE_MPEG4=yes/HAVE_MPEG4=no/" plugins/configure \ - || die "patching plugins/configure failed" - sed -i -e "s/HAVE_H263P=yes/HAVE_H263P=no/" plugins/configure \ - || die "patching plugins/configure failed" - fi - - # fix gsm wav49 support check - # upstream has been contacted, bug 2686500 in their bugtracker - if use plugins; then - sed -i -e "s:gsm\.h:gsm/gsm.h:" plugins/configure \ - || die "patching plugins/configure failed" - fi - - # fix a warning, have been fixed by upstream in vcs - # TODO: check if integrated in next release - epatch "${FILESDIR}"/${PN}-lpcini.patch - - # there is a stupid bug that shown when disabling statistics - # upstream has been contacted, bug 2686504 in their bugtracker - if ! use stats; then - # a sed script is not so cool because of new lines - epatch "${FILESDIR}"/${P}-stats.patch - fi -} - -src_configure() { - local myconf="" - - if use ffmpeg; then - # with-libavcodec-source-dir: no default value - myconf="--with-libavcodec-source-dir=/usr/include" - fi - - # versioncheck: check for ptlib version - # shared: should always be enabled for a lib - # zrtp doesn't depend on net-libs/libzrtpcpp but on libzrtp from - # http://zfoneproject.com/ wich is not in portage - # localspeex, localspeexdsp, localgsm: never use bundled libs - # samples: only build some samples, useless - # libavcodec-stackalign-hack: prevent hack (default disable by upstream) - # default-to-full-capabilties: default enable by upstream - # aec: atm, only used when bundled speex, so it's painless for us - econf ${myconf} \ - --enable-versioncheck \ - --enable-shared \ - --disable-zrtp \ - --disable-localspeex \ - --disable-localspeexdsp \ - --disable-localgsm \ - --disable-samples \ - --disable-libavcodec-stackalign-hack \ - --enable-default-to-full-capabilties \ - --enable-aec \ - $(use_enable debug) \ - $(use_enable capi) \ - $(use_enable fax) \ - $(use_enable fax spandsp) \ - $(use_enable fax t38) \ - $(use_enable ffmpeg ffmpeg-h263) \ - $(use_enable g711plc) \ - $(use_enable h224) \ - $(use_enable h323) \ - $(use_enable h323 h450) \ - $(use_enable h323 h460) \ - $(use_enable h323 h501) \ - $(use_enable iax) \ - $(use_enable ivr) \ - $(use_enable ixj) \ - $(use_enable java) \ - $(use_enable lid) \ - $(use_enable plugins) \ - $(use_enable rfc4175) \ - $(use_enable sip) \ - $(use_enable stats statistics) \ - $(use_enable video) \ - $(use_enable vpb) \ - $(use_enable x264 h264) \ - $(use_enable x264-static x264-link-static) -} - -src_compile() { - local makeopts="" - - use debug && makeopts="debug" - - emake ${makeopts} || die "emake failed" -} - -src_install() { - einstall || die "einstall failed" - - if use doc; then - dohtml -r html/* docs/* || die "dohtml failed" - fi - - dodoc ChangeLog-${PN}-v${PV//./_}.txt || die "dodoc failed" - - if use examples; then - local exampledir="/usr/share/doc/${PF}/examples" - local basedir="samples" - local sampledirs="`ls ${basedir} --hide=configure* \ - --hide=opal_samples* --hide=config.*`" - - # first, install files - insinto ${exampledir}/ - doins ${basedir}/{configure*,opal_samples*,config.*} \ - || die "doins failed" - - # now, all examples - for x in ${sampledirs}; do - insinto ${exampledir}/${x}/ - doins ${basedir}/${x}/* || die "doins failed" - done - - # some examples need version.h - insinto "/usr/share/doc/${PF}/" - doins version.h || die "doins failed" - fi -} - -pkg_postinst() { - if use examples; then - ewarn "all examples have been installed, some of them will not work on your system" - ewarn "it will depend of the enabled use flags in ptlib and opal" - fi -} diff --git a/net-libs/opal/opal-3.6.1.ebuild b/net-libs/opal/opal-3.6.1.ebuild deleted file mode 100644 index e68b0d1..0000000 --- a/net-libs/opal/opal-3.6.1.ebuild +++ /dev/null @@ -1,268 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -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.bz2 )" - -LICENSE="MPL-1.0" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="+audio capi debug dns doc dtmf examples fax ffmpeg g711plc h224 +h323 iax -ipv6 ivr ixj java ldap lid +plugins rfc4103 rfc4175 sbc +sip sipim srtp ssl -stats swig theora +video vpb vxml wav x264 x264-static xml" - -RDEPEND=">=net-libs/ptlib-2.0.0[stun,url,debug=,audio?,dns?,dtmf?,ipv6?,ldap?,ssl?,video?,vxml?,wav?,xml?] - >=media-libs/speex-1.2_beta - fax? ( net-libs/ptlib[asn] ) - h323? ( net-libs/ptlib[asn] ) - ivr? ( net-libs/ptlib[xml,vxml] ) - java? ( virtual/jdk ) - plugins? ( media-sound/gsm - capi? ( net-dialup/capi4k-utils ) - fax? ( media-libs/spandsp ) - ffmpeg? ( >=media-video/ffmpeg-0.4.7[encode] ) - ixj? ( sys-kernel/linux-headers ) - sbc? ( media-libs/libsamplerate ) - theora? ( media-libs/libtheora ) - x264? ( >=media-video/ffmpeg-0.4.7 - media-libs/x264 ) ) - srtp? ( net-libs/libsrtp )" -DEPEND="${RDEPEND} - dev-util/pkgconfig - >=sys-devel/gcc-3 - java? ( swig? ( dev-lang/swig[java] ) )" - -# NOTES: -# needs speexdsp, that means >=speex-1.2 -# ffmpeg[encode] is for h263 and mpeg4 -# fax enable fax, t38 and spandsp support -# h323 auto-enables h450, h460 and h501 wich provide supplementary services -# h224 auto-enables h281 -# ssl, xml, vxml, ipv6, dtmf, ldap, audio, wav, dns and video are use flags -# herited from ptlib: feature is enabled if ptlib has enabled it -# however, disabling it if ptlib has it looks hard (coz of buildopts.h) -# forcing ptlib to disable it for opal is not a solution too -# atm, accepting the "auto-feature" looks like a good solution -# (asn is used for fax and config _only_ for examples) -# OPALDIR should not be used anymore, if a package still need it, create it -# TODO: merge some use-flags or force their values ? -# candidates are: sipim, rfc4103 and any other without a dep -# TODO: celt use flag can't be set because celt is not in portage, add it -# needs to have ptlib url use flag enabled, see bug 2715377 (upstream) -# needs to have ptlib stun use flag enabled, see bug 2721404 (upstream) -# h323 needs ptlib[asn] but not required by opal, see bug 2721707 (upstream) -# TODO: msrp has been disabled because build breaks, see bug 2722818 (upstream) - -pkg_setup() { - local warning=false - - # opal can't be built with --as-needed - # users where experiencing issues with --as-needed, see bug 238610 - # TODO: should be re-tested and, if possible, fixed in a cleanier way - append-ldflags -Wl,--no-as-needed - - # warn user about use flag that are gonna override other ones - - if ! use plugins; then - ewarn "disabling plugins will automatialy disable a lot of ${PN} features" - ewarn "like gsm, capi, spandsp, ffmpeg, ixj, theora and x264" - ewarn "it is _not_ recommended" - warning=true - fi - - if use rfc4175 && ! use video; then - ewarn "rfc4175 support needs video support: rfc4175 support has been disabled" - ewarn "enable video support if you want to use the rfc4175 support" - warning=true - fi - - if use x264-static && ! use x264; then - ewarn "x264-static has been enabled but x264 support has been disabled" - fi - - if ${warning}; then - echo - ewarn "If one of the warnings above is not volunteer, hit Ctrl+C now" - ewarn "and re-emerge ${PN} with the desired USE flags" - echo - ebeep - epause - fi -} - -src_prepare() { - # move files from ${P}-htmldoc.tar.gz - if use doc; then - mv ../html . || die "moving doc files failed" - fi - - # remove visual studio related files from samples/ - if use examples; then - rm -f samples/*/*.vcproj - rm -f samples/*/*.sln - rm -f samples/*/*.dsp - rm -f samples/*/*.dsw - fi - - # disable srtp if srtp is not enabled (prevent auto magic dep) - # upstream has been contacted, bug 2686485 in their bugtracker - if ! use srtp; then - sed -i -e "s/OPAL_SRTP=yes/OPAL_SRTP=no/" configure \ - || die "patching configure failed" - fi - - # disable theora if theora is not enabled (prevent auto magic dep) - # upstream has been contacted, bug 2686488 in their bugtracker - if ! use theora; then - sed -i -e "s/HAVE_THEORA=yes/HAVE_THEORA=no/" plugins/configure \ - || die "patching plugins/configure failed" - fi - - # disable mpeg4 and h263p if ffmpeg is not enabled (prevent auto magic dep) - # upstream has been contacted, bug 2686495 in their bugtracker - if ! use ffmpeg; then - sed -i -e "s/HAVE_H263P=yes/HAVE_H263P=no/" plugins/configure \ - || die "patching plugins/configure failed" - sed -i -e "s/HAVE_MPEG4=yes/HAVE_MPEG4=no/" plugins/configure \ - || die "patching plugins/configure failed" - fi - - # fix gsm wav49 support check - # upstream has been contacted, bug 2686500 in their bugtracker - if use plugins; then - sed -i -e "s:gsm\.h:gsm/gsm.h:" plugins/configure \ - || die "patching plugins/configure failed" - fi - - # fix automatic swig detection - # upstream has been contacted, bug 2712521 in their bugtracker - if ! use swig; then - sed -i -e "/^SWIG=/d" configure || die "patching configure failed" - fi - - # remove plugins install when plugins are disabled - # upstream has been contacted, bug 2715354 in their bugtracker - if ! use plugins; then - sed -i -e "/-C plugins/d" Makefile.in \ - || die "patching Makefile.in failed" - fi - - # there is a stupid bug that shown when disabling statistics - # upstream has been contacted, bug 2686504 in their bugtracker - if ! use stats; then - # a sed script is not so cool because of new lines - epatch "${FILESDIR}"/${PN}-3.4.5-stats.patch - fi -} - -src_configure() { - # --with-libavcodec-source-dir should _not_ be set, it's for trunk sources - # versioncheck: check for ptlib version - # shared: should always be enabled for a lib - # zrtp doesn't depend on net-libs/libzrtpcpp but on libzrtp from - # http://zfoneproject.com/ wich is not in portage - # localspeex, localspeexdsp, localgsm: never use bundled libs - # samples: only build some samples, useless - # libavcodec-stackalign-hack: prevent hack (default disable by upstream) - # default-to-full-capabilties: default enable by upstream - # aec: atm, only used when bundled speex, so it's painless for us - # celt: not in the portage tree nor in the voip overlay - # msrp: disabled because breaking the build - econf \ - --enable-versioncheck \ - --enable-shared \ - --disable-zrtp \ - --disable-localspeex \ - --disable-localspeexdsp \ - --disable-localgsm \ - --disable-samples \ - --disable-libavcodec-stackalign-hack \ - --enable-default-to-full-capabilties \ - --enable-aec \ - --disable-celt \ - --disable-msrp \ - $(use_enable debug) \ - $(use_enable capi) \ - $(use_enable fax) \ - $(use_enable fax spandsp) \ - $(use_enable fax t38) \ - $(use_enable ffmpeg ffmpeg-h263) \ - $(use_enable g711plc) \ - $(use_enable h224) \ - $(use_enable h224 h281) \ - $(use_enable h323) \ - $(use_enable h323 h450) \ - $(use_enable h323 h460) \ - $(use_enable h323 h501) \ - $(use_enable iax) \ - $(use_enable ivr) \ - $(use_enable ixj) \ - $(use_enable java) \ - $(use_enable lid) \ - $(use_enable plugins) \ - $(use_enable rfc4103) \ - $(use_enable rfc4175) \ - $(use_enable sbc) \ - $(use_enable sip) \ - $(use_enable sipim) \ - $(use_enable stats statistics) \ - $(use_enable video) \ - $(use_enable vpb) \ - $(use_enable x264 h264) \ - $(use_enable x264-static x264-link-static) -} - -src_compile() { - local makeopts="" - - use debug && makeopts="debug" - - emake ${makeopts} || die "emake failed" -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - - if use doc; then - dohtml -r html/* docs/* || die "dohtml failed" - fi - - # ChangeLog is not standard - dodoc ChangeLog-${PN}-v${PV//./_}.txt || die "dodoc failed" - - if use examples; then - local exampledir="/usr/share/doc/${PF}/examples" - local basedir="samples" - local sampledirs="`ls ${basedir} --hide=configure* \ - --hide=opal_samples.mak.in`" - - # first, install files - insinto ${exampledir}/ - doins ${basedir}/{configure*,opal_samples*} \ - || die "doins failed" - - # now, all examples - for x in ${sampledirs}; do - insinto ${exampledir}/${x}/ - doins ${basedir}/${x}/* || die "doins failed" - done - - # some examples need version.h - insinto "/usr/share/doc/${PF}/" - doins version.h || die "doins failed" - fi -} - -pkg_postinst() { - if use examples; then - ewarn "all examples have been installed, some of them will not work on your system" - ewarn "it will depend of the enabled use flags in ptlib and opal" - fi -} |