homer-0.25-r1.ebuild 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils multilib toolchain-funcs
  5. DESCRIPTION="Homer Conferencing (short: Homer) is a free SIP softphone with advanced audio and video support"
  6. HOMEPAGE="http://www.homer-conferencing.com"
  7. MY_PN="Homer-Conferencing"
  8. MY_BIN="Homer"
  9. if [[ ${PV} == *9999* ]]; then
  10. inherit git-2
  11. EGIT_REPO_URI="git://github.com/${MY_PN}/${MY_PN}.git"
  12. KEYWORDS=""
  13. else
  14. SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/V${PV}.tar.gz -> ${PN}-${PV}.tar.gz
  15. https://dev.gentoo.org/~hwoarang/distfiles/${P}-ffmpeg2.patch"
  16. KEYWORDS="amd64 x86"
  17. fi
  18. LICENSE="GPL-2"
  19. SLOT="0"
  20. IUSE="pulseaudio"
  21. DEPEND="dev-util/cmake
  22. >=dev-libs/openssl-1.0
  23. media-libs/alsa-lib
  24. media-libs/libsdl[X,sound,video,alsa]
  25. media-libs/portaudio[alsa]
  26. media-libs/sdl-mixer
  27. media-libs/sdl-sound
  28. media-libs/x264:*
  29. media-video/ffmpeg:0[X]
  30. net-libs/sofia-sip
  31. dev-qt/qtcore:4
  32. dev-qt/qtdbus:4
  33. dev-qt/qtgui:4
  34. dev-qt/qtmultimedia:4
  35. dev-qt/qtwebkit:4
  36. pulseaudio? ( media-sound/pulseaudio )"
  37. RDEPEND="${DEPEND}"
  38. S="${WORKDIR}/${MY_PN}-${PV}"
  39. src_prepare() {
  40. epatch "${DISTDIR}/${P}-ffmpeg2.patch"
  41. # Bug #543138
  42. sed -e '/mRtpEncoderStream->reference_dts = 0;/d' \
  43. -i HomerMultimedia/src/RTP.cpp || die
  44. if use pulseaudio; then
  45. sed -i \
  46. -e "/^set(FEATURE_PULSEAUDIO/s:OFF:ON:" \
  47. HomerBuild/config/HomerFeatures.txt || die "sed failed"
  48. fi
  49. }
  50. src_compile() {
  51. tc-export CXX
  52. emake -C HomerBuild default \
  53. INSTALL_PREFIX=/usr/bin \
  54. INSTALL_LIBDIR=/usr/$(get_libdir) \
  55. INSTALL_DATADIR=/usr/share/${PN} \
  56. VERBOSE=1
  57. }
  58. src_install() {
  59. emake -C HomerBuild install \
  60. DESTDIR="${D}" \
  61. VERBOSE=1
  62. # Create .desktop entry
  63. doicon ${MY_BIN}/${MY_BIN}.png
  64. make_desktop_entry "${MY_BIN}" "${MY_PN}" "${MY_BIN}" "Network;InstantMessaging;Telephony;VideoConference"
  65. }