From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-libs/pjproject/Manifest | 6 ++ net-libs/pjproject/metadata.xml | 24 +++++++ net-libs/pjproject/pjproject-2.5.1.ebuild | 101 ++++++++++++++++++++++++++++++ net-libs/pjproject/pjproject-2.6.ebuild | 101 ++++++++++++++++++++++++++++++ 4 files changed, 232 insertions(+) create mode 100644 net-libs/pjproject/Manifest create mode 100644 net-libs/pjproject/metadata.xml create mode 100644 net-libs/pjproject/pjproject-2.5.1.ebuild create mode 100644 net-libs/pjproject/pjproject-2.6.ebuild (limited to 'net-libs/pjproject') diff --git a/net-libs/pjproject/Manifest b/net-libs/pjproject/Manifest new file mode 100644 index 000000000000..8b0c956d1565 --- /dev/null +++ b/net-libs/pjproject/Manifest @@ -0,0 +1,6 @@ +DIST pjproject-2.5.1.tar.bz2 4180967 SHA256 c5a63bed7a0832ff53ddcd69612cf43148019d0f320b22beb5ca2223bc857dcb SHA512 7722980e5afa4b541614c4117462b0df3fff2bfec45ca5da18a7c3fce2a5dd6c628ed0bb2412da6086abd59c5ba2844bea9466f49737dbc9ca85d32ef67a2628 WHIRLPOOL 5b7845a31a3da765358f0a1b28805e39dadae06b01f94fb84809f01bddec8e5d3bfa3c0ef19be6a5dbb7519e3f5948c4bf1c73eebf3efeb609c6a3bf4598585f +DIST pjproject-2.6.tar.bz2 4933273 SHA256 2f5a1da1c174d845871c758bd80fbb580fca7799d3cfaa0d3c4e082b5161c7b4 SHA512 48be9a80f90b1cb292c6eb0d071d889f6027f56bdd75095c510d9be2d6b5f1df5a6371617009371525ac5797dc61f5814dcc1cc11d14105e5a2576539f89293f WHIRLPOOL a7cc5fe528bc24b9f0563170297539530089202280d7640f84863ae07194c0fe1b81be8c46fb493574350e43dcfcc0f90aeb939ef2eda7940babff955c445f04 +EBUILD pjproject-2.5.1.ebuild 2357 SHA256 4b9c2301330fbfc44bd87e59c0754e7a233272389c7d265bc3f36bfd7a1d9c0a SHA512 69f97760597abffc8c9a0a664615c806a8e30a5464ac0c533c8498a42889b45c4c30915c7e9ad9cfb7ca266d2a0ed5a04d259bc6f1f444b947809e88c05a7e20 WHIRLPOOL 1f780617e9ce42124a76fc2a8e9b01855e9c0ea123e0aaab9e910007e2c9ed276b46b7b7c86e7a0131f444a09258d9c20531033032e600f90540a806c6b7a6fe +EBUILD pjproject-2.6.ebuild 2357 SHA256 4b9c2301330fbfc44bd87e59c0754e7a233272389c7d265bc3f36bfd7a1d9c0a SHA512 69f97760597abffc8c9a0a664615c806a8e30a5464ac0c533c8498a42889b45c4c30915c7e9ad9cfb7ca266d2a0ed5a04d259bc6f1f444b947809e88c05a7e20 WHIRLPOOL 1f780617e9ce42124a76fc2a8e9b01855e9c0ea123e0aaab9e910007e2c9ed276b46b7b7c86e7a0131f444a09258d9c20531033032e600f90540a806c6b7a6fe +MISC ChangeLog 299 SHA256 8607b0f62d9f8fa2b322b4065a8978a5cf0332af58af3244bcee80fd087e9616 SHA512 e1617bc45f730bc90716a1062eb75fc46a769edc84fbd004901cb1e45a12139477dd58b910b7e8af78b7bc661e6ce3b924be7273a953fb40a7e471368ceb218b WHIRLPOOL 290209d5635eea7122ecbfba1655c22245d267b131c537811a428046a0bc371c031adbae8dfe2db92cc0c5f4ce4f3fb14203a521d7656e6edb792aae3b5ef116 +MISC metadata.xml 1187 SHA256 96ae67f2963a89ebe62aa1a71227d97bf91049fe247f29c6e6f01988866c704a SHA512 695aa6fabb06d0462fc96013b386f103949aa653a243e088a572d5d04d35810c6153a98036af04b36cbe69e8b1555ad8bc0205a1fe862e0bec2b56e8988e1946 WHIRLPOOL c3d23674e9c432da3d72235d84c9ee07269dcd0825afe1603cbcecc1707853ec70657dbb5fa740652f48bdde11cdc492ecb25ae652bf5b8bf0def4f30bef9e95 diff --git a/net-libs/pjproject/metadata.xml b/net-libs/pjproject/metadata.xml new file mode 100644 index 000000000000..42ac90f2199b --- /dev/null +++ b/net-libs/pjproject/metadata.xml @@ -0,0 +1,24 @@ + + + + + chainsaw@gentoo.org + Tony Vroon + + + Inlcude AMR codec in the build + Include Video4Linux v2 support in the build + Use /dev/epoll ioqueue on Linux (experimental) + Include G.711 codecs in the build + Include G.722 codec in the build + Include G.722.1 codec in the build + Include iLBC codec in the build + Include Linear/L16 codec family in the build + Include libyuv in the build + Include Open H.264 support in the build + Include OPUS support in the build + Include resampling implementations in the build + Include SILK support in the build + Enable WebRTC support + + diff --git a/net-libs/pjproject/pjproject-2.5.1.ebuild b/net-libs/pjproject/pjproject-2.5.1.ebuild new file mode 100644 index 000000000000..d47ae1c5b9b5 --- /dev/null +++ b/net-libs/pjproject/pjproject-2.5.1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic + +DESCRIPTION="Open source SIP, Media, and NAT Traversal Library" +HOMEPAGE="http://www.pjsip.org/" +SRC_URI="http://www.pjsip.org/release/${PV}/${P}.tar.bz2" +KEYWORDS="~amd64 ~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}" + +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/speex ) + + 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_configure() { + local myconf=() + local videnable="--disable-video" + local t + + use ipv6 && append-flags -DPJ_HAS_IPV6=1 + use debug || append-flags -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) \ + "${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.6.ebuild b/net-libs/pjproject/pjproject-2.6.ebuild new file mode 100644 index 000000000000..d47ae1c5b9b5 --- /dev/null +++ b/net-libs/pjproject/pjproject-2.6.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic + +DESCRIPTION="Open source SIP, Media, and NAT Traversal Library" +HOMEPAGE="http://www.pjsip.org/" +SRC_URI="http://www.pjsip.org/release/${PV}/${P}.tar.bz2" +KEYWORDS="~amd64 ~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}" + +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/speex ) + + 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_configure() { + local myconf=() + local videnable="--disable-video" + local t + + use ipv6 && append-flags -DPJ_HAS_IPV6=1 + use debug || append-flags -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) \ + "${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" +} -- cgit v1.2.3