freerdp-1.2.1_pre20150326-r1.ebuild 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. inherit cmake-utils vcs-snapshot
  5. if [[ ${PV} != 9999* ]]; then
  6. COMMIT="aa2181dcf2dd98693767ba738c5b2ad8c3d742d4"
  7. SRC_URI="https://github.com/FreeRDP/FreeRDP/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
  8. KEYWORDS="alpha amd64 arm ppc ppc64 x86"
  9. else
  10. inherit git-r3
  11. SRC_URI=""
  12. EGIT_REPO_URI="git://github.com/FreeRDP/FreeRDP.git
  13. https://github.com/FreeRDP/FreeRDP.git"
  14. fi
  15. DESCRIPTION="Free implementation of the Remote Desktop Protocol"
  16. HOMEPAGE="http://www.freerdp.com/"
  17. LICENSE="Apache-2.0"
  18. SLOT="0/1.2"
  19. IUSE="alsa +client cpu_flags_x86_sse2 cups debug doc ffmpeg gstreamer jpeg libav
  20. libressl neon pulseaudio server smartcard test usb wayland X xinerama xv"
  21. RDEPEND="
  22. !libressl? ( dev-libs/openssl:0 )
  23. libressl? ( dev-libs/libressl )
  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. wayland? ( dev-libs/wayland )
  65. X? (
  66. x11-libs/libX11
  67. x11-libs/libxkbfile
  68. )
  69. "
  70. DEPEND="${RDEPEND}
  71. virtual/pkgconfig
  72. client? ( X? ( doc? (
  73. app-text/docbook-xml-dtd:4.1.2
  74. app-text/xmlto
  75. ) ) )
  76. "
  77. DOCS=( README )
  78. PATCHES=(
  79. "${FILESDIR}/freerdp-armfp.patch"
  80. "${FILESDIR}/freerdp-ffmpeg29.patch"
  81. "${FILESDIR}/1.2.1-gstreamer.patch"
  82. )
  83. src_configure() {
  84. local mycmakeargs=(
  85. $(cmake-utils_use_with alsa ALSA)
  86. $(cmake-utils_use_with client CLIENT)
  87. $(cmake-utils_use_with cups CUPS)
  88. $(cmake-utils_use_with debug DEBUG_ALL)
  89. $(cmake-utils_use_with doc MANPAGES)
  90. $(cmake-utils_use_with ffmpeg FFMPEG)
  91. $(cmake-utils_use_with gstreamer GSTREAMER_1_0)
  92. $(cmake-utils_use_with jpeg JPEG)
  93. $(cmake-utils_use_with neon NEON)
  94. $(cmake-utils_use_with pulseaudio PULSE)
  95. $(cmake-utils_use_with server SERVER)
  96. $(cmake-utils_use_with smartcard PCSC)
  97. $(cmake-utils_use_with cpu_flags_x86_sse2 SSE2)
  98. $(cmake-utils_use usb CHANNEL_URBDRC)
  99. $(cmake-utils_use_with X X11)
  100. $(cmake-utils_use_with xinerama XINERAMA)
  101. $(cmake-utils_use_with xv XV)
  102. $(cmake-utils_use_build test TESTING)
  103. $(cmake-utils_use_with wayland WAYLAND)
  104. )
  105. cmake-utils_src_configure
  106. }