From 5cf15fe97a22e9a5b6ad3c0d1f9ff2e5413b665f Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sun, 26 Apr 2020 12:59:00 +0200 Subject: net-libs/pjproject: Replace virtual/ffmpeg Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: David Seifert --- net-libs/pjproject/pjproject-2.7.1-r1.ebuild | 110 ++++++++++++++++++++++++ net-libs/pjproject/pjproject-2.7.1.ebuild | 110 ------------------------ net-libs/pjproject/pjproject-2.7.2-r1.ebuild | 117 -------------------------- net-libs/pjproject/pjproject-2.7.2-r2.ebuild | 117 ++++++++++++++++++++++++++ net-libs/pjproject/pjproject-2.9-r1.ebuild | 120 --------------------------- net-libs/pjproject/pjproject-2.9-r2.ebuild | 120 +++++++++++++++++++++++++++ 6 files changed, 347 insertions(+), 347 deletions(-) create mode 100644 net-libs/pjproject/pjproject-2.7.1-r1.ebuild delete mode 100644 net-libs/pjproject/pjproject-2.7.1.ebuild delete mode 100644 net-libs/pjproject/pjproject-2.7.2-r1.ebuild create mode 100644 net-libs/pjproject/pjproject-2.7.2-r2.ebuild delete mode 100644 net-libs/pjproject/pjproject-2.9-r1.ebuild create mode 100644 net-libs/pjproject/pjproject-2.9-r2.ebuild (limited to 'net-libs/pjproject') diff --git a/net-libs/pjproject/pjproject-2.7.1-r1.ebuild b/net-libs/pjproject/pjproject-2.7.1-r1.ebuild new file mode 100644 index 000000000000..a9e3fdf624df --- /dev/null +++ b/net-libs/pjproject/pjproject-2.7.1-r1.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools flag-o-matic + +DESCRIPTION="Open source SIP, Media, and NAT Traversal Library" +HOMEPAGE="https://www.pjsip.org/" +SRC_URI="https://www.pjsip.org/release/${PV}/${P}.tar.bz2" +KEYWORDS="amd64 ~ppc x86" + +LICENSE="GPL-2" +SLOT="0" +CODEC_FLAGS="g711 g722 g7221 gsm ilbc speex l16" +VIDEO_FLAGS="sdl ffmpeg v4l2 openh264 libyuv" +SOUND_FLAGS="alsa oss portaudio" +IUSE="amr debug doc epoll examples ipv6 opus resample silk ssl static-libs webrtc ${CODEC_FLAGS} ${VIDEO_FLAGS} ${SOUND_FLAGS}" + +PATCHES=( "${FILESDIR}"/${P}-ssl-flipflop.patch ) + +RDEPEND="alsa? ( media-libs/alsa-lib ) + oss? ( media-libs/portaudio[oss] ) + portaudio? ( media-libs/portaudio ) + + amr? ( media-libs/opencore-amr ) + gsm? ( media-sound/gsm ) + ilbc? ( dev-libs/ilbc-rfc3951 ) + opus? ( media-libs/opus ) + speex? ( media-libs/speexdsp ) + + ffmpeg? ( media-video/ffmpeg:= ) + sdl? ( media-libs/libsdl ) + openh264? ( media-libs/openh264 ) + resample? ( media-libs/libsamplerate ) + + ssl? ( dev-libs/openssl:= ) + + net-libs/libsrtp:0" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +REQUIRED_USE="?? ( ${SOUND_FLAGS} )" + +src_prepare() { + default + rm configure || die "Unable to remove unwanted wrapper" + mv aconfigure.ac configure.ac || die "Unable to rename configure script source" + eautoreconf +} + +src_configure() { + local myconf=() + local videnable="--disable-video" + local t + + use ipv6 && append-cflags -DPJ_HAS_IPV6=1 + use debug || append-cflags -DNDEBUG=1 + + for t in ${CODEC_FLAGS}; do + myconf+=( $(use_enable ${t} ${t}-codec) ) + done + + for t in ${VIDEO_FLAGS}; do + myconf+=( $(use_enable ${t}) ) + use "${t}" && videnable="--enable-video" + done + + econf \ + --enable-shared \ + --with-external-srtp \ + ${videnable} \ + $(use_enable epoll) \ + $(use_with gsm external-gsm) \ + $(use_with speex external-speex) \ + $(use_enable speex speex-aec) \ + $(use_enable resample) \ + $(use_enable resample libsamplerate) \ + $(use_enable resample resample-dll) \ + $(use_enable alsa sound) \ + $(use_enable oss) \ + $(use_with portaudio external-pa) \ + $(use_enable portaudio ext-sound) \ + $(use_enable amr opencore-amr) \ + $(use_enable silk) \ + $(use_enable opus) \ + $(use_enable ssl) \ + $(use_enable webrtc libwebrtc) \ + "${myconf[@]}" +} + +src_compile() { + emake dep + emake +} + +src_install() { + emake DESTDIR="${D}" install + + if use doc; then + dodoc README.txt README-RTEMS + fi + + if use examples; then + insinto "/usr/share/doc/${PF}/examples" + doins -r pjsip-apps/src/samples + fi + + use static-libs || rm "${D}/usr/$(get_libdir)/*.a" +} diff --git a/net-libs/pjproject/pjproject-2.7.1.ebuild b/net-libs/pjproject/pjproject-2.7.1.ebuild deleted file mode 100644 index 2c434a83d12c..000000000000 --- a/net-libs/pjproject/pjproject-2.7.1.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools flag-o-matic - -DESCRIPTION="Open source SIP, Media, and NAT Traversal Library" -HOMEPAGE="https://www.pjsip.org/" -SRC_URI="https://www.pjsip.org/release/${PV}/${P}.tar.bz2" -KEYWORDS="amd64 ~ppc x86" - -LICENSE="GPL-2" -SLOT="0" -CODEC_FLAGS="g711 g722 g7221 gsm ilbc speex l16" -VIDEO_FLAGS="sdl ffmpeg v4l2 openh264 libyuv" -SOUND_FLAGS="alsa oss portaudio" -IUSE="amr debug doc epoll examples ipv6 opus resample silk ssl static-libs webrtc ${CODEC_FLAGS} ${VIDEO_FLAGS} ${SOUND_FLAGS}" - -PATCHES=( "${FILESDIR}"/${P}-ssl-flipflop.patch ) - -RDEPEND="alsa? ( media-libs/alsa-lib ) - oss? ( media-libs/portaudio[oss] ) - portaudio? ( media-libs/portaudio ) - - amr? ( media-libs/opencore-amr ) - gsm? ( media-sound/gsm ) - ilbc? ( dev-libs/ilbc-rfc3951 ) - opus? ( media-libs/opus ) - speex? ( media-libs/speexdsp ) - - ffmpeg? ( virtual/ffmpeg:= ) - sdl? ( media-libs/libsdl ) - openh264? ( media-libs/openh264 ) - resample? ( media-libs/libsamplerate ) - - ssl? ( dev-libs/openssl:= ) - - net-libs/libsrtp:0" -DEPEND="${RDEPEND} - virtual/pkgconfig" - -REQUIRED_USE="?? ( ${SOUND_FLAGS} )" - -src_prepare() { - default - rm configure || die "Unable to remove unwanted wrapper" - mv aconfigure.ac configure.ac || die "Unable to rename configure script source" - eautoreconf -} - -src_configure() { - local myconf=() - local videnable="--disable-video" - local t - - use ipv6 && append-cflags -DPJ_HAS_IPV6=1 - use debug || append-cflags -DNDEBUG=1 - - for t in ${CODEC_FLAGS}; do - myconf+=( $(use_enable ${t} ${t}-codec) ) - done - - for t in ${VIDEO_FLAGS}; do - myconf+=( $(use_enable ${t}) ) - use "${t}" && videnable="--enable-video" - done - - econf \ - --enable-shared \ - --with-external-srtp \ - ${videnable} \ - $(use_enable epoll) \ - $(use_with gsm external-gsm) \ - $(use_with speex external-speex) \ - $(use_enable speex speex-aec) \ - $(use_enable resample) \ - $(use_enable resample libsamplerate) \ - $(use_enable resample resample-dll) \ - $(use_enable alsa sound) \ - $(use_enable oss) \ - $(use_with portaudio external-pa) \ - $(use_enable portaudio ext-sound) \ - $(use_enable amr opencore-amr) \ - $(use_enable silk) \ - $(use_enable opus) \ - $(use_enable ssl) \ - $(use_enable webrtc libwebrtc) \ - "${myconf[@]}" -} - -src_compile() { - emake dep - emake -} - -src_install() { - emake DESTDIR="${D}" install - - if use doc; then - dodoc README.txt README-RTEMS - fi - - if use examples; then - insinto "/usr/share/doc/${PF}/examples" - doins -r pjsip-apps/src/samples - fi - - use static-libs || rm "${D}/usr/$(get_libdir)/*.a" -} diff --git a/net-libs/pjproject/pjproject-2.7.2-r1.ebuild b/net-libs/pjproject/pjproject-2.7.2-r1.ebuild deleted file mode 100644 index e272ba0b04f5..000000000000 --- a/net-libs/pjproject/pjproject-2.7.2-r1.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools flag-o-matic - -DESCRIPTION="Open source SIP, Media, and NAT Traversal Library" -HOMEPAGE="https://www.pjsip.org/" -SRC_URI="https://www.pjsip.org/release/${PV}/${P}.tar.bz2" -KEYWORDS="amd64 ~ppc x86" - -LICENSE="GPL-2" -SLOT="0" -CODEC_FLAGS="g711 g722 g7221 gsm ilbc speex l16" -VIDEO_FLAGS="sdl ffmpeg v4l2 openh264 libyuv" -SOUND_FLAGS="alsa oss portaudio" -IUSE="amr debug doc epoll examples ipv6 libressl opus resample silk ssl static-libs webrtc ${CODEC_FLAGS} ${VIDEO_FLAGS} ${SOUND_FLAGS}" - -PATCHES=( - "${FILESDIR}"/${P}-ssl-flipflop.patch - "${FILESDIR}"/${P}-libressl.patch -) - -RDEPEND="alsa? ( media-libs/alsa-lib ) - oss? ( media-libs/portaudio[oss] ) - portaudio? ( media-libs/portaudio ) - - amr? ( media-libs/opencore-amr ) - gsm? ( media-sound/gsm ) - ilbc? ( media-libs/libilbc ) - opus? ( media-libs/opus ) - speex? ( media-libs/speexdsp ) - - ffmpeg? ( virtual/ffmpeg:= ) - sdl? ( media-libs/libsdl ) - openh264? ( media-libs/openh264 ) - resample? ( media-libs/libsamplerate ) - - ssl? ( - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - ) - - net-libs/libsrtp:0" -DEPEND="${RDEPEND} - virtual/pkgconfig - !!media-plugins/mediastreamer-bcg729" - -REQUIRED_USE="?? ( ${SOUND_FLAGS} )" - -src_prepare() { - default - rm configure || die "Unable to remove unwanted wrapper" - mv aconfigure.ac configure.ac || die "Unable to rename configure script source" - eautoreconf -} - -src_configure() { - local myconf=() - local videnable="--disable-video" - local t - - use ipv6 && append-cflags -DPJ_HAS_IPV6=1 - use debug || append-cflags -DNDEBUG=1 - - for t in ${CODEC_FLAGS}; do - myconf+=( $(use_enable ${t} ${t}-codec) ) - done - - for t in ${VIDEO_FLAGS}; do - myconf+=( $(use_enable ${t}) ) - use "${t}" && videnable="--enable-video" - done - - econf \ - --enable-shared \ - --with-external-srtp \ - ${videnable} \ - $(use_enable epoll) \ - $(use_with gsm external-gsm) \ - $(use_with speex external-speex) \ - $(use_enable speex speex-aec) \ - $(use_enable resample) \ - $(use_enable resample libsamplerate) \ - $(use_enable resample resample-dll) \ - $(use_enable alsa sound) \ - $(use_enable oss) \ - $(use_with portaudio external-pa) \ - $(use_enable portaudio ext-sound) \ - $(use_enable amr opencore-amr) \ - $(use_enable silk) \ - $(use_enable opus) \ - $(use_enable ssl) \ - $(use_enable webrtc libwebrtc) \ - "${myconf[@]}" -} - -src_compile() { - emake dep - emake -} - -src_install() { - emake DESTDIR="${D}" install - - if use doc; then - dodoc README.txt README-RTEMS - fi - - if use examples; then - insinto "/usr/share/doc/${PF}/examples" - doins -r pjsip-apps/src/samples - fi - - use static-libs || rm "${D}/usr/$(get_libdir)/*.a" -} diff --git a/net-libs/pjproject/pjproject-2.7.2-r2.ebuild b/net-libs/pjproject/pjproject-2.7.2-r2.ebuild new file mode 100644 index 000000000000..ec4e011b9c83 --- /dev/null +++ b/net-libs/pjproject/pjproject-2.7.2-r2.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools flag-o-matic + +DESCRIPTION="Open source SIP, Media, and NAT Traversal Library" +HOMEPAGE="https://www.pjsip.org/" +SRC_URI="https://www.pjsip.org/release/${PV}/${P}.tar.bz2" +KEYWORDS="amd64 ~ppc x86" + +LICENSE="GPL-2" +SLOT="0" +CODEC_FLAGS="g711 g722 g7221 gsm ilbc speex l16" +VIDEO_FLAGS="sdl ffmpeg v4l2 openh264 libyuv" +SOUND_FLAGS="alsa oss portaudio" +IUSE="amr debug doc epoll examples ipv6 libressl opus resample silk ssl static-libs webrtc ${CODEC_FLAGS} ${VIDEO_FLAGS} ${SOUND_FLAGS}" + +PATCHES=( + "${FILESDIR}"/${P}-ssl-flipflop.patch + "${FILESDIR}"/${P}-libressl.patch +) + +RDEPEND="alsa? ( media-libs/alsa-lib ) + oss? ( media-libs/portaudio[oss] ) + portaudio? ( media-libs/portaudio ) + + amr? ( media-libs/opencore-amr ) + gsm? ( media-sound/gsm ) + ilbc? ( media-libs/libilbc ) + opus? ( media-libs/opus ) + speex? ( media-libs/speexdsp ) + + ffmpeg? ( media-video/ffmpeg:= ) + sdl? ( media-libs/libsdl ) + openh264? ( media-libs/openh264 ) + resample? ( media-libs/libsamplerate ) + + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + + net-libs/libsrtp:0" +DEPEND="${RDEPEND} + virtual/pkgconfig + !!media-plugins/mediastreamer-bcg729" + +REQUIRED_USE="?? ( ${SOUND_FLAGS} )" + +src_prepare() { + default + rm configure || die "Unable to remove unwanted wrapper" + mv aconfigure.ac configure.ac || die "Unable to rename configure script source" + eautoreconf +} + +src_configure() { + local myconf=() + local videnable="--disable-video" + local t + + use ipv6 && append-cflags -DPJ_HAS_IPV6=1 + use debug || append-cflags -DNDEBUG=1 + + for t in ${CODEC_FLAGS}; do + myconf+=( $(use_enable ${t} ${t}-codec) ) + done + + for t in ${VIDEO_FLAGS}; do + myconf+=( $(use_enable ${t}) ) + use "${t}" && videnable="--enable-video" + done + + econf \ + --enable-shared \ + --with-external-srtp \ + ${videnable} \ + $(use_enable epoll) \ + $(use_with gsm external-gsm) \ + $(use_with speex external-speex) \ + $(use_enable speex speex-aec) \ + $(use_enable resample) \ + $(use_enable resample libsamplerate) \ + $(use_enable resample resample-dll) \ + $(use_enable alsa sound) \ + $(use_enable oss) \ + $(use_with portaudio external-pa) \ + $(use_enable portaudio ext-sound) \ + $(use_enable amr opencore-amr) \ + $(use_enable silk) \ + $(use_enable opus) \ + $(use_enable ssl) \ + $(use_enable webrtc libwebrtc) \ + "${myconf[@]}" +} + +src_compile() { + emake dep + emake +} + +src_install() { + emake DESTDIR="${D}" install + + if use doc; then + dodoc README.txt README-RTEMS + fi + + if use examples; then + insinto "/usr/share/doc/${PF}/examples" + doins -r pjsip-apps/src/samples + fi + + use static-libs || rm "${D}/usr/$(get_libdir)/*.a" +} diff --git a/net-libs/pjproject/pjproject-2.9-r1.ebuild b/net-libs/pjproject/pjproject-2.9-r1.ebuild deleted file mode 100644 index b5d5bbcf318c..000000000000 --- a/net-libs/pjproject/pjproject-2.9-r1.ebuild +++ /dev/null @@ -1,120 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools flag-o-matic - -DESCRIPTION="Open source SIP, Media, and NAT Traversal Library" -HOMEPAGE="https://www.pjsip.org/" -SRC_URI="https://www.pjsip.org/release/${PV}/${P}.tar.bz2" -KEYWORDS="~amd64 ~ppc ~x86" - -LICENSE="GPL-2" -SLOT="0" - -# g729 not included due to special bcg729 handling. -CODEC_FLAGS="g711 g722 g7221 gsm ilbc speex l16" -VIDEO_FLAGS="sdl ffmpeg v4l2 openh264 libyuv" -SOUND_FLAGS="alsa portaudio" -IUSE="amr debug epoll examples ipv6 libressl opus resample silk ssl static-libs webrtc - ${CODEC_FLAGS} g729 - ${VIDEO_FLAGS} - ${SOUND_FLAGS}" - -PATCHES=( - "${FILESDIR}/pjproject-2.9-ssl-enable.patch" -) - -RDEPEND="net-libs/libsrtp:= - - alsa? ( media-libs/alsa-lib ) - amr? ( media-libs/opencore-amr ) - ffmpeg? ( virtual/ffmpeg:= ) - g729? ( media-libs/bcg729 ) - gsm? ( media-sound/gsm ) - ilbc? ( media-libs/libilbc ) - openh264? ( media-libs/openh264 ) - opus? ( media-libs/opus ) - portaudio? ( media-libs/portaudio ) - resample? ( media-libs/libsamplerate ) - sdl? ( media-libs/libsdl ) - speex? ( media-libs/speexdsp ) - ssl? ( - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - ) -" -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" - -src_prepare() { - default - rm configure || die "Unable to remove unwanted wrapper" - mv aconfigure.ac configure.ac || die "Unable to rename configure script source" - eautoreconf - - cp "${FILESDIR}/pjproject-2.9-config_site.h" "${S}/pjlib/include/pj/config_site.h" || die "Unable to create config_site.h" -} - -src_configure() { - local myconf=() - local videnable="--disable-video" - local t - - use debug || append-cflags -DNDEBUG=1 - use ipv6 && append-cflags -DPJ_HAS_IPV6=1 - append-cflags -DPJMEDIA_HAS_SRTP=1 - - for t in ${CODEC_FLAGS}; do - myconf+=( $(use_enable ${t} ${t}-codec) ) - done - myconf+=( $(use_enable g729 bcg729) ) - - for t in ${VIDEO_FLAGS}; do - myconf+=( $(use_enable ${t}) ) - use "${t}" && videnable="--enable-video" - done - - [ "${videnable}" = "--enable-video" ] && append-cflags -DPJMEDIA_HAS_VIDEO=1 - - econf \ - --enable-shared \ - --with-external-srtp \ - ${videnable} \ - $(use_enable alsa sound) \ - $(use_enable amr opencore-amr) \ - $(use_enable epoll) \ - $(use_enable opus) \ - $(use_enable portaudio ext-sound) \ - $(use_enable resample libsamplerate) \ - $(use_enable resample resample-dll) \ - $(use_enable resample) \ - $(use_enable silk) \ - $(use_enable speex speex-aec) \ - $(use_enable ssl) \ - $(use_with gsm external-gsm) \ - $(use_with portaudio external-pa) \ - $(use_with speex external-speex) \ - $(usex webrtc '' --disable-libwebrtc) \ - "${myconf[@]}" -} - -src_compile() { - emake dep - emake -} - -src_install() { - default - - newbin pjsip-apps/bin/pjsua-${CHOST} pjsua - newbin pjsip-apps/bin/pjsystest-${CHOST} pjsystest - - if use examples; then - insinto "/usr/share/doc/${PF}/examples" - doins -r pjsip-apps/src/samples - fi - - use static-libs || rm "${ED}/usr/$(get_libdir)"/*.a || die "Error removing static archives" -} diff --git a/net-libs/pjproject/pjproject-2.9-r2.ebuild b/net-libs/pjproject/pjproject-2.9-r2.ebuild new file mode 100644 index 000000000000..e2ec02af2a3f --- /dev/null +++ b/net-libs/pjproject/pjproject-2.9-r2.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools flag-o-matic + +DESCRIPTION="Open source SIP, Media, and NAT Traversal Library" +HOMEPAGE="https://www.pjsip.org/" +SRC_URI="https://www.pjsip.org/release/${PV}/${P}.tar.bz2" +KEYWORDS="~amd64 ~ppc ~x86" + +LICENSE="GPL-2" +SLOT="0" + +# g729 not included due to special bcg729 handling. +CODEC_FLAGS="g711 g722 g7221 gsm ilbc speex l16" +VIDEO_FLAGS="sdl ffmpeg v4l2 openh264 libyuv" +SOUND_FLAGS="alsa portaudio" +IUSE="amr debug epoll examples ipv6 libressl opus resample silk ssl static-libs webrtc + ${CODEC_FLAGS} g729 + ${VIDEO_FLAGS} + ${SOUND_FLAGS}" + +PATCHES=( + "${FILESDIR}/pjproject-2.9-ssl-enable.patch" +) + +RDEPEND="net-libs/libsrtp:= + + alsa? ( media-libs/alsa-lib ) + amr? ( media-libs/opencore-amr ) + ffmpeg? ( media-video/ffmpeg:= ) + g729? ( media-libs/bcg729 ) + gsm? ( media-sound/gsm ) + ilbc? ( media-libs/libilbc ) + openh264? ( media-libs/openh264 ) + opus? ( media-libs/opus ) + portaudio? ( media-libs/portaudio ) + resample? ( media-libs/libsamplerate ) + sdl? ( media-libs/libsdl ) + speex? ( media-libs/speexdsp ) + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +src_prepare() { + default + rm configure || die "Unable to remove unwanted wrapper" + mv aconfigure.ac configure.ac || die "Unable to rename configure script source" + eautoreconf + + cp "${FILESDIR}/pjproject-2.9-config_site.h" "${S}/pjlib/include/pj/config_site.h" || die "Unable to create config_site.h" +} + +src_configure() { + local myconf=() + local videnable="--disable-video" + local t + + use debug || append-cflags -DNDEBUG=1 + use ipv6 && append-cflags -DPJ_HAS_IPV6=1 + append-cflags -DPJMEDIA_HAS_SRTP=1 + + for t in ${CODEC_FLAGS}; do + myconf+=( $(use_enable ${t} ${t}-codec) ) + done + myconf+=( $(use_enable g729 bcg729) ) + + for t in ${VIDEO_FLAGS}; do + myconf+=( $(use_enable ${t}) ) + use "${t}" && videnable="--enable-video" + done + + [ "${videnable}" = "--enable-video" ] && append-cflags -DPJMEDIA_HAS_VIDEO=1 + + econf \ + --enable-shared \ + --with-external-srtp \ + ${videnable} \ + $(use_enable alsa sound) \ + $(use_enable amr opencore-amr) \ + $(use_enable epoll) \ + $(use_enable opus) \ + $(use_enable portaudio ext-sound) \ + $(use_enable resample libsamplerate) \ + $(use_enable resample resample-dll) \ + $(use_enable resample) \ + $(use_enable silk) \ + $(use_enable speex speex-aec) \ + $(use_enable ssl) \ + $(use_with gsm external-gsm) \ + $(use_with portaudio external-pa) \ + $(use_with speex external-speex) \ + $(usex webrtc '' --disable-libwebrtc) \ + "${myconf[@]}" +} + +src_compile() { + emake dep + emake +} + +src_install() { + default + + newbin pjsip-apps/bin/pjsua-${CHOST} pjsua + newbin pjsip-apps/bin/pjsystest-${CHOST} pjsystest + + if use examples; then + insinto "/usr/share/doc/${PF}/examples" + doins -r pjsip-apps/src/samples + fi + + use static-libs || rm "${ED}/usr/$(get_libdir)"/*.a || die "Error removing static archives" +} -- cgit v1.2.3-65-gdbad