ssvnc-1.0.29.ebuild 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="3"
  4. inherit eutils multilib toolchain-funcs
  5. DESCRIPTION="VNC viewer that adds encryption security to VNC connections"
  6. HOMEPAGE="http://www.karlrunge.com/x11vnc/ssvnc.html"
  7. SRC_URI="mirror://sourceforge/ssvnc/${P}.src.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86 ~amd64-linux ~arm-linux ~x86-linux"
  11. IUSE="java"
  12. RDEPEND="sys-libs/zlib
  13. virtual/jpeg
  14. dev-libs/openssl
  15. dev-lang/tk
  16. net-misc/stunnel
  17. java? ( virtual/jre )
  18. x11-terms/xterm
  19. x11-libs/libICE
  20. x11-libs/libSM
  21. x11-libs/libXaw
  22. x11-libs/libX11
  23. x11-libs/libXext
  24. x11-libs/libXmu
  25. x11-libs/libXp
  26. x11-libs/libXpm
  27. x11-libs/libXt"
  28. DEPEND="${RDEPEND}
  29. java? ( virtual/jdk )"
  30. src_prepare() {
  31. epatch "${FILESDIR}"/${PN}-1.0.29-build.patch
  32. sed -i \
  33. -e "/^LIB/s:lib/:$(get_libdir)/:" \
  34. -e "$(use java || echo '/^JSRC/s:=.*:=:')" \
  35. Makefile
  36. sed -i \
  37. -e '/^CC/s:=.*:+= $(CFLAGS) $(CPPFLAGS) $(LDFLAGS):' \
  38. vncstorepw/Makefile
  39. cp "${FILESDIR}"/Makefile.libvncauth vnc_unixsrc/libvncauth/Makefile
  40. cd "${S}"/vnc_unixsrc/vncviewer
  41. sed -n '/^SRCS/,/^$/p' Imakefile > Makefile.in
  42. cp "${FILESDIR}"/Makefile.vncviewer Makefile
  43. }
  44. src_compile() {
  45. tc-export AR CC CXX RANLIB
  46. emake all || die
  47. }
  48. src_install() {
  49. emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install || die
  50. dodoc README
  51. }