2012-11-13 11:40:00 +01:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
EAPI=4
|
|
|
|
|
2012-11-13 16:10:34 +01:00
|
|
|
inherit eutils multilib
|
2012-11-13 15:26:22 +01:00
|
|
|
|
2012-11-13 16:25:59 +01:00
|
|
|
DESCRIPTION="Homer Conferencing (short: Homer) is a free SIP softphone with advanced audio and video support."
|
2012-11-13 11:40:00 +01:00
|
|
|
HOMEPAGE="http://www.homer-conferencing.com"
|
|
|
|
|
2012-11-13 11:47:15 +01:00
|
|
|
MY_PN="Homer-Conferencing"
|
2012-11-13 16:10:34 +01:00
|
|
|
BINARY="Homer"
|
2012-11-13 11:47:15 +01:00
|
|
|
|
2012-11-13 11:40:00 +01:00
|
|
|
if [[ ${PV} == *9999* ]]; then
|
2012-11-13 11:43:02 +01:00
|
|
|
inherit git-2
|
2012-11-13 11:47:15 +01:00
|
|
|
EGIT_REPO_URI="git://github.com/${MY_PN}/${MY_PN}.git"
|
2012-11-13 11:40:00 +01:00
|
|
|
KEYWORDS=""
|
|
|
|
else
|
2012-11-13 11:47:15 +01:00
|
|
|
SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/V${PV}.tar.gz -> ${PN}-${PV}.tar.gz"
|
2012-11-13 11:40:00 +01:00
|
|
|
KEYWORDS="~x86 ~amd64"
|
|
|
|
fi
|
|
|
|
|
2012-11-13 17:08:47 +01:00
|
|
|
LICENSE="GPL-2"
|
2012-11-13 11:40:00 +01:00
|
|
|
SLOT="0"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
RDEPEND=">=dev-libs/openssl-1.0
|
|
|
|
media-libs/alsa-lib
|
2012-11-13 18:00:27 +01:00
|
|
|
>=media-libs/libsdl-1.2[X,audio,video,alsa]
|
2012-11-13 11:40:00 +01:00
|
|
|
media-libs/portaudio[alsa]
|
|
|
|
>=media-libs/sdl-mixer-1.2
|
|
|
|
>=media-libs/sdl-sound-1.0
|
|
|
|
media-libs/x264
|
|
|
|
media-video/ffmpeg
|
|
|
|
>=net-libs/sofia-sip-1.12
|
2012-11-13 18:00:27 +01:00
|
|
|
>=x11-libs/qt-core-4.6:4
|
|
|
|
>=x11-libs/qt-gui-4.6:4
|
|
|
|
>=x11-libs/qt-multimedia-4.6:4
|
|
|
|
>=x11-libs/qt-webkit-4.6:4"
|
2012-11-13 11:40:00 +01:00
|
|
|
DEPEND="dev-util/cmake
|
|
|
|
${RDEPEND}"
|
|
|
|
|
2012-11-13 11:47:15 +01:00
|
|
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
|
|
|
|
2012-11-13 11:40:00 +01:00
|
|
|
src_compile() {
|
2012-11-13 18:00:27 +01:00
|
|
|
emake -C HomerBuild all \
|
|
|
|
INSTALL_PREFIX=/usr/bin \
|
|
|
|
INSTALL_LIBDIR=/usr/$(get_libdir) \
|
|
|
|
INSTALL_DATADIR=/usr/share/${PN} \
|
2012-11-13 15:31:48 +01:00
|
|
|
|| die "make failed"
|
2012-11-13 11:40:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2012-11-13 18:00:27 +01:00
|
|
|
emake -C HomerBuild install \
|
|
|
|
DESTDIR="${D}" \
|
|
|
|
|| die "make install failed"
|
2012-11-13 16:10:34 +01:00
|
|
|
|
|
|
|
# Create .desktop entry
|
2012-11-13 18:00:27 +01:00
|
|
|
newicon "${BINARY}"/"${BINARY}".png "${MY_PN}".png
|
|
|
|
make_desktop_entry "${BINARY}" "${MY_PN}" "${MY_PN}" "Network;InstantMessaging;Telephony;VideoConference"
|
2012-11-13 11:40:00 +01:00
|
|
|
}
|