freerdp-2.0.0_pre20161219.ebuild 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="6"
  4. inherit cmake-utils
  5. if [[ ${PV} != 9999 ]]; then
  6. COMMIT="8d0809cf26868fc5ff651850a32724650597747f"
  7. SRC_URI="https://github.com/FreeRDP/FreeRDP/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
  8. KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86"
  9. S="${WORKDIR}/FreeRDP-${COMMIT}"
  10. else
  11. inherit git-r3
  12. SRC_URI=""
  13. EGIT_REPO_URI="git://github.com/FreeRDP/FreeRDP.git
  14. https://github.com/FreeRDP/FreeRDP.git"
  15. fi
  16. DESCRIPTION="Free implementation of the Remote Desktop Protocol"
  17. HOMEPAGE="http://www.freerdp.com/"
  18. LICENSE="Apache-2.0"
  19. SLOT="0/2"
  20. IUSE="alsa +client cpu_flags_x86_sse2 cups debug doc ffmpeg gstreamer jpeg libav libressl neon pulseaudio server smartcard systemd test usb wayland X xinerama xv"
  21. RDEPEND="
  22. !libressl? ( dev-libs/openssl:0= )
  23. libressl? ( dev-libs/libressl:0= )
  24. sys-libs/zlib:0
  25. alsa? ( media-libs/alsa-lib )
  26. cups? ( net-print/cups )
  27. client? (
  28. usb? (
  29. virtual/libudev:0=
  30. sys-apps/util-linux:0=
  31. dev-libs/dbus-glib:0=
  32. virtual/libusb:1=
  33. )
  34. X? (
  35. x11-libs/libXcursor
  36. x11-libs/libXext
  37. x11-libs/libXi
  38. x11-libs/libXrender
  39. xinerama? ( x11-libs/libXinerama )
  40. xv? ( x11-libs/libXv )
  41. )
  42. )
  43. ffmpeg? (
  44. libav? ( media-video/libav:0= )
  45. !libav? ( media-video/ffmpeg:0= )
  46. )
  47. gstreamer? (
  48. media-libs/gstreamer:1.0
  49. media-libs/gst-plugins-base:1.0
  50. x11-libs/libXrandr
  51. )
  52. jpeg? ( virtual/jpeg:0 )
  53. pulseaudio? ( media-sound/pulseaudio )
  54. server? (
  55. X? (
  56. x11-libs/libXcursor
  57. x11-libs/libXdamage
  58. x11-libs/libXext
  59. x11-libs/libXfixes
  60. x11-libs/libXrandr
  61. x11-libs/libXtst
  62. xinerama? ( x11-libs/libXinerama )
  63. )
  64. )
  65. smartcard? ( sys-apps/pcsc-lite )
  66. systemd? ( sys-apps/systemd:0= )
  67. wayland? (
  68. dev-libs/wayland
  69. x11-libs/libxkbcommon
  70. )
  71. X? (
  72. x11-libs/libX11
  73. x11-libs/libxkbfile
  74. )
  75. "
  76. DEPEND="${RDEPEND}
  77. virtual/pkgconfig
  78. client? ( X? ( doc? (
  79. app-text/docbook-xml-dtd:4.1.2
  80. app-text/xmlto
  81. ) ) )
  82. "
  83. DOCS=( README )
  84. PATCHES=(
  85. "${FILESDIR}"/freerdp-libressl.patch
  86. )
  87. src_configure() {
  88. local mycmakeargs=(
  89. -DWITH_ALSA=$(usex alsa)
  90. -DWITH_CLIENT=$(usex client)
  91. -DWITH_CUPS=$(usex cups)
  92. -DWITH_DEBUG_ALL=$(usex debug)
  93. -DWITH_MANPAGES=$(usex doc)
  94. -DWITH_FFMPEG=$(usex ffmpeg)
  95. -DWITH_GSTREAMER_1_0=$(usex gstreamer)
  96. -DWITH_JPEG=$(usex jpeg)
  97. -DWITH_NEON=$(usex neon)
  98. -DWITH_PULSE=$(usex pulseaudio)
  99. -DWITH_SERVER=$(usex server)
  100. -DWITH_PCSC=$(usex smartcard)
  101. -DWITH_LIBSYSTEMD=$(usex systemd)
  102. -DWITH_SSE2=$(usex cpu_flags_x86_sse2)
  103. -DCHANNEL_URBDRC=$(usex usb)
  104. -DWITH_X11=$(usex X)
  105. -DWITH_XINERAMA=$(usex xinerama)
  106. -DWITH_XV=$(usex xv)
  107. -DBUILD_TESTING=$(usex test)
  108. -DWITH_WAYLAND=$(usex wayland)
  109. )
  110. cmake-utils_src_configure
  111. }