freerdp-2.0.0_pre20160722.ebuild 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. # Copyright 1999-2016 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="5b2455f3147aca395a441fc65b602938600f0788"
  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. xinerama? ( x11-libs/libXinerama )
  61. )
  62. )
  63. smartcard? ( sys-apps/pcsc-lite )
  64. systemd? ( sys-apps/systemd:0= )
  65. wayland? (
  66. dev-libs/wayland
  67. x11-libs/libxkbcommon
  68. )
  69. X? (
  70. x11-libs/libX11
  71. x11-libs/libxkbfile
  72. )
  73. "
  74. DEPEND="${RDEPEND}
  75. virtual/pkgconfig
  76. client? ( X? ( doc? (
  77. app-text/docbook-xml-dtd:4.1.2
  78. app-text/xmlto
  79. ) ) )
  80. "
  81. DOCS=( README )
  82. src_configure() {
  83. local mycmakeargs=(
  84. -DWITH_ALSA=$(usex alsa)
  85. -DWITH_CLIENT=$(usex client)
  86. -DWITH_CUPS=$(usex cups)
  87. -DWITH_DEBUG_ALL=$(usex debug)
  88. -DWITH_MANPAGES=$(usex doc)
  89. -DWITH_FFMPEG=$(usex ffmpeg)
  90. -DWITH_GSTREAMER_1_0=$(usex gstreamer)
  91. -DWITH_JPEG=$(usex jpeg)
  92. -DWITH_NEON=$(usex neon)
  93. -DWITH_PULSE=$(usex pulseaudio)
  94. -DWITH_SERVER=$(usex server)
  95. -DWITH_PCSC=$(usex smartcard)
  96. -DWITH_LIBSYSTEMD=$(usex systemd)
  97. -DWITH_SSE2=$(usex cpu_flags_x86_sse2)
  98. -DCHANNEL_URBDRC=$(usex usb)
  99. -DWITH_X11=$(usex X)
  100. -DWITH_XINERAMA=$(usex xinerama)
  101. -DWITH_XV=$(usex xv)
  102. -DBUILD_TESTING=$(usex test)
  103. -DWITH_WAYLAND=$(usex wayland)
  104. )
  105. cmake-utils_src_configure
  106. }