homer-9999.ebuild 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Copyright 1999-2014 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. KEYWORDS="~amd64 ~x86"
  16. fi
  17. LICENSE="GPL-2"
  18. SLOT="0"
  19. IUSE="pulseaudio"
  20. DEPEND=">=dev-libs/openssl-1.0
  21. media-libs/alsa-lib
  22. media-libs/libsdl[X,sound,video,alsa]
  23. media-libs/portaudio[alsa]
  24. media-libs/sdl-mixer
  25. media-libs/sdl-sound
  26. media-libs/x264:*
  27. media-video/ffmpeg:0[X]
  28. net-libs/sofia-sip
  29. dev-qt/qtcore:4
  30. dev-qt/qtdbus:4
  31. dev-qt/qtgui:4
  32. dev-qt/qtmultimedia:4
  33. dev-qt/qtwebkit:4
  34. pulseaudio? ( media-sound/pulseaudio )"
  35. RDEPEND="${DEPEND}"
  36. S="${WORKDIR}/${MY_PN}-${PV}"
  37. src_prepare() {
  38. if use pulseaudio; then
  39. sed -i \
  40. -e "/^set(FEATURE_PULSEAUDIO/s:OFF:ON:" \
  41. HomerBuild/config/HomerFeatures.txt || die "sed failed"
  42. fi
  43. }
  44. src_compile() {
  45. tc-export CXX
  46. emake -C HomerBuild default \
  47. INSTALL_PREFIX=/usr/bin \
  48. INSTALL_LIBDIR=/usr/$(get_libdir) \
  49. INSTALL_DATADIR=/usr/share/${PN} \
  50. VERBOSE=1
  51. }
  52. src_install() {
  53. emake -C HomerBuild install \
  54. DESTDIR="${D}" \
  55. VERBOSE=1
  56. # Create .desktop entry
  57. doicon ${MY_BIN}/${MY_BIN}.png
  58. make_desktop_entry "${MY_BIN}" "${MY_PN}" "${MY_BIN}" "Network;InstantMessaging;Telephony;VideoConference"
  59. }