summaryrefslogtreecommitdiffstats
path: root/net-misc/rdesktop
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/rdesktop')
-rw-r--r--net-misc/rdesktop/Manifest15
-rw-r--r--net-misc/rdesktop/files/rdesktop-1.6.0-smartcard_configure.patch22
-rw-r--r--net-misc/rdesktop/files/rdesktop-1.6.0-sound_configure.patch15
-rw-r--r--net-misc/rdesktop/files/rdesktop-1.7.0-libao_crash.patch18
-rw-r--r--net-misc/rdesktop/files/rdesktop-1.8.3-xrandr_configure.patch17
-rw-r--r--net-misc/rdesktop/files/rdesktop-keymap-additional64
-rw-r--r--net-misc/rdesktop/files/rdesktop-keymap-cs122
-rw-r--r--net-misc/rdesktop/files/rdesktop-keymap-sk124
-rw-r--r--net-misc/rdesktop/files/rdesktop-xinerama.patch180
-rw-r--r--net-misc/rdesktop/files/rdesktop171-ds-xinerama.patch181
-rw-r--r--net-misc/rdesktop/rdesktop-1.6.0-r2.ebuild78
-rw-r--r--net-misc/rdesktop/rdesktop-1.7.1-r1.ebuild85
-rw-r--r--net-misc/rdesktop/rdesktop-1.8.3-r3.ebuild81
13 files changed, 1002 insertions, 0 deletions
diff --git a/net-misc/rdesktop/Manifest b/net-misc/rdesktop/Manifest
new file mode 100644
index 0000000..de8bdf5
--- /dev/null
+++ b/net-misc/rdesktop/Manifest
@@ -0,0 +1,15 @@
+AUX rdesktop-1.6.0-smartcard_configure.patch 616 SHA256 04130d39c0472eda28600fd24592cf46ca0c222ef6c40d3bdd141670e388f365 SHA512 6f2651f5863f03bdecfbd59921f6031a72bf85f8025d72ca5f9dcf4231055dbb2436296684a647c72079df9c499bcbfb4d9af9c2432be84de41f70299b900544 WHIRLPOOL a298c5750039aae80a61242f25afc27e4c637be5ec1b66363c9a167560e2fdd2fbff00fbc4e6135ca5e084a16da5c79497081cc1184c1e078989d5f51f4fbd93
+AUX rdesktop-1.6.0-sound_configure.patch 799 SHA256 71db62d88e3c3bf5cbfceeddeb33958b2f24980ab3d7734511f13fd48a43e119 SHA512 d2f5cf974b042ca752fc5f114c7f3c87647cbf757c986bf163b183b19a1072942c413827331f74847f4cd5b3aa1d91a0a1f609fca8440ff0dd791a44ab74b888 WHIRLPOOL c1988ebf1e32a76df3e7b9ab1898c0ee66edb6a75cd0ec7b84fa1311025147bd8e7368a5bd61ded9af664a6057535f4b8bfce43d343e8707944ffe8d3243f722
+AUX rdesktop-1.7.0-libao_crash.patch 494 SHA256 0366402ca2319059d658004834d2189e38b89676bef654238439d0ed1b90c3cb SHA512 65477259452d78cadfe73679b70a7fde2486d2ec3dcacc3248174dc5869a62f7de97b9823801ce8c98dd956c2f92032076691b2f8820b05cbcd52fca4605f8ce WHIRLPOOL 61a96267378ad324a9187234bee680ba1336511d10f375fdea59a9cdf756e73a3160c3a4f6df9aa73c4d136503461f4a3f0295fb8a8ef8ea265841076fb2ce90
+AUX rdesktop-1.8.3-xrandr_configure.patch 647 SHA256 7ee48e138eca5917ca3b4b5a875caad890e21193ae335b12aa4a8ea175bf4636 SHA512 a0ef25458c2468b472a606e12502c1867cb06cb69f10e077f774396cd17f80af51ee2748385b203b63fb11280f8849cd70cc9d87dcc0ed2165e10597eb92cfa3 WHIRLPOOL fa0a2058fc97eb7bdc50606a474e7b3895670ce469c07024381955aa800bdfec8b88e75abd4a1adaed351e5f60a00dbb8b3478fd6f97d2a4086d478d8c9b28ee
+AUX rdesktop-keymap-additional 1568 SHA256 3642f38bff8902fa1b5093001ce8e076dcfeddf906b745173dec4ce61da42196 SHA512 b8bdb3a9b7354d1ef8f3bb503ba908befcc150ebb64882fb0cc4da4f638becdd450295a880359176e09813762f9b4a931c6cecf1e1d16001d01fd50e97b8347d WHIRLPOOL 610dd37cbd5023280b63bdd0bd71b764a7030ef2246f8ba8c8790fea952f496ab2742938507f33befb8ba92c93d7c6542168e1edcd666ad66393f696e5215d2c
+AUX rdesktop-keymap-cs 1536 SHA256 91bd229fdb7fb1f0d9e6d0dcf35a429a2c51afa1fb8e2b3414852dc528218b6e SHA512 ce12e9b05220e2d6d16ee2d283a69c4ef72e6b2438e0b76be1e96a7e20f8502b349706d4f9321723307c2e04cb687558cdbd3596b71b022fd47b3e0133178d96 WHIRLPOOL 1455435aaed5e6e2e79dbbbaad79b0cc43360559a0ccf28cb1cbd29e719b85b0c80f1d9905dfa881a9dcbccf59f3c5e73c40a78ae3e0e0147efc14678da106dc
+AUX rdesktop-keymap-sk 1561 SHA256 33024ca566d97b5c041d3ca45634d3baa075b456389140bd5991e3927fd37b07 SHA512 208fb85b60a0734ff76c71e9375b4cf014857d5d434ea9fa36d6bdc7e313a8f7225a9d2e4547cf0485d9fec65b22d7dfc555bc74d6a01ef87ab66deb824f864e WHIRLPOOL b6026e1291bf4af591852f7e7f6571f23d5fc8b27488101f9dde280a7b857691f2f374a666075c325ebc3d15c5cd404c511774fbf560338a7ca96c6763282528
+AUX rdesktop-xinerama.patch 4841 SHA256 4658c15112f7b244b56efc6a5fd676954d29286a9e807a303e0cabd6f5e24d05 SHA512 6b815d8a3850428385032a4bb6ecea3893c7d0578b217f0eecefde58f18b138f563a632da18825ac15f4c0b8eefbe1e09075cddd68311e0303fcf03b9bb5c402 WHIRLPOOL f032cb03217fd970ce8a635a635b6e4b2493952b3cd729d775e78bdef797725c97aef5ddbe0f81816efc604b418f5e8ad0ce95f8eb66e8c73ee567bed01129e4
+AUX rdesktop171-ds-xinerama.patch 5157 SHA256 2892fb88f29e8e2f99b5ec8d31a8377c29f466811a6fab1b704e762c09e456fb SHA512 22d5ade03413ec3b790c5dfce90df0f930a5d68ff8f8fe933c79f9b07ee37b416166369ed7bb8639f682bad74c86137c94af6531d6af01eef7b0c72900b4321d WHIRLPOOL 7ba91d737a856fc6eccc559261db02687156d285c5b484e69c633ce9f1455160a28a302fffe9ecc8f3cd578d5bd82331401f05a2e0b096723cad48a93109d723
+DIST rdesktop-1.6.0.tar.gz 284728 SHA256 35026eaa8e14ca8bd0ba3730926f14222f8452f2ac662623bbf1909d8b060979 SHA512 ba7dcdeabdb85ce93b66e1a71d6c3aea7df244d9ed288aee79ea63680de2384ea313772eed2c6b861c53dd1564c8f8c6d6c5baf798fe9c405f3a17cf4f1b0756 WHIRLPOOL 74cedf394b29d1568515f04df3fd94264491e3255234e7f06fd4e256a870c4710f605f089d23afa7cf13de93341329ed23ef7380978350c55c04a08caf410188
+DIST rdesktop-1.7.1.tar.gz 298808 SHA256 d1ea43adeb23ef1ba425983670372a87cd7560baf8c94ba34215105ed2ef8479 SHA512 aaefbcda77a333ec065e42aa20e5335e48c51858dab860495528b399696c0ed6594ab9c5234716682e7ebef81d36cc6d157eedae700e0df209da9034d04887fc WHIRLPOOL a186bbf3200af87ef6e111210e3dbf9d71f2a495c44dca583673466ccc9f67606a9a9c2bf3c801addd7c3b1af26a0a03e4e63b15bb72a52d7cfb4e4f381596ae
+DIST rdesktop-1.8.3.tar.gz 320212 SHA256 88b20156b34eff5f1b453f7c724e0a3ff9370a599e69c01dc2bf0b5e650eece4 SHA512 06b94ad3b09430b05e424ef31a3e6f2388190b4920e348603cb66a414244896e0dc8906b9f12920e9406cf153ffa7f6507b23bf6713c3a675c0540a8ef57902d WHIRLPOOL 24d12882ab04fe535fea6e59b78df2e8c23634703ab13bb385446a6e8c49703ca7344053cf1f6bbc4fecc04ce21354a9e5d3a0261b3d3c015289c2ec3b8af8c3
+EBUILD rdesktop-1.6.0-r2.ebuild 1954 SHA256 6623463ab84cf781454ef607329d7848421fe771fa1d95c38a7f49cb4f53579f SHA512 703d971ed4b02dde176d4bd4d23816f88cd09bd0d0d99463ffa7d6fe1c0f83b7ccb9716c6000657aa2b62b8dee69cba96ec931cc09339d66f8ea94961172faa1 WHIRLPOOL 12f092288d80c622e5a71c245e2c8720031279cff8112687793a41444e2c49c1c2394813e5dfe68636413c9428a6b90fd27811291cc3d79585279beae45d4215
+EBUILD rdesktop-1.7.1-r1.ebuild 2402 SHA256 b2812b114f2ddf838e502e6eab692527472f6fc99635a7bcf3dcda1447aaf581 SHA512 8c6731a4013a88a2fc1a16d7e5a68991cb0704854337488899ddc3e55e01a23e2b018cb6b0bc2fe69bb8e970e8adb0e98e0f204b2e56ea0d9ddd493b4291639b WHIRLPOOL 3b27405b9e776fc7b4af44a19c5bfd1138213c254c92031ce066f3aee89a7afa51639cdc87679972b80f6404dc1d3c672d7eed8ad8398fa378647e10a3736c3c
+EBUILD rdesktop-1.8.3-r3.ebuild 1995 SHA256 24d7572b042a70e1ef83eb723f7c570f519df6cbb92494f8a3c7b38ed034f0d7 SHA512 d51758b3c53e163b0b9aa0b75e087de543a442a6136b96e2ab4b50a53002172148004061314c05a6c18d360ace20feca0f88b10a3e29ad8953133b5443dc93af WHIRLPOOL a6b916de53d85e8e5fea7ca03ecf646bd9b501bda1435ea0f2d219b7060f333491aeb5f4c8bbe46b06381f0a9b9557ea28e13e3957620c575b5a529bdee71008
diff --git a/net-misc/rdesktop/files/rdesktop-1.6.0-smartcard_configure.patch b/net-misc/rdesktop/files/rdesktop-1.6.0-smartcard_configure.patch
new file mode 100644
index 0000000..a237966
--- /dev/null
+++ b/net-misc/rdesktop/files/rdesktop-1.6.0-smartcard_configure.patch
@@ -0,0 +1,22 @@
+--- configure.ac.orig 2009-07-05 16:13:23.000000000 +0200
++++ configure.ac 2009-07-05 16:19:39.000000000 +0200
+@@ -108,7 +108,10 @@
+ AC_ARG_ENABLE(smartcard,
+ [ --enable-smartcard Enables smart-card support.
+ ],
+- [
++ [
++ if test "$enableval" = no; then
++ WITH_SCARD=0
++ else
+ case "$OSTYPE" in
+ darwin*)
+ AC_CHECK_HEADER(PCSC/pcsclite.h, [WITH_SCARD=1], [WITH_SCARD=0])
+@@ -143,6 +146,7 @@
+ [AC_MSG_RESULT(yes) AC_DEFINE(WITH_PCSC120, 1, [old version of PCSC])],
+ [AC_MSG_RESULT(no)]
+ )
++ fi
+ ])
+
+ AC_SUBST(SCARDOBJ)
diff --git a/net-misc/rdesktop/files/rdesktop-1.6.0-sound_configure.patch b/net-misc/rdesktop/files/rdesktop-1.6.0-sound_configure.patch
new file mode 100644
index 0000000..8e64ba8
--- /dev/null
+++ b/net-misc/rdesktop/files/rdesktop-1.6.0-sound_configure.patch
@@ -0,0 +1,15 @@
+--- configure.ac.orig 2009-06-30 10:35:14.000000000 +0200
++++ configure.ac 2009-06-30 11:35:10.000000000 +0200
+@@ -228,7 +228,11 @@
+ if test -n "$PKG_CONFIG"; then
+ PKG_CHECK_MODULES(LIBAO, ao, [HAVE_LIBAO=1], [HAVE_LIBAO=0])
+ PKG_CHECK_MODULES(ALSA, alsa, [HAVE_ALSA=1], [HAVE_ALSA=0])
+- PKG_CHECK_MODULES(LIBSAMPLERATE, samplerate, [HAVE_LIBSAMPLERATE=1], [HAVE_LIBSAMPLERATE=0])
++ AC_ARG_WITH(libsamplerate,
++ [ --without-libsamplerate disable libsamplerate support])
++ if test "x$with_libsamplerate" != "xno"; then
++ PKG_CHECK_MODULES(LIBSAMPLERATE, samplerate, [HAVE_LIBSAMPLERATE=1], [HAVE_LIBSAMPLERATE=0])
++ fi
+ if test x"$HAVE_LIBSAMPLERATE" = "x1"; then
+ AC_DEFINE(HAVE_LIBSAMPLERATE)
+ if test x"$static_libsamplerate" = "xyes"; then
diff --git a/net-misc/rdesktop/files/rdesktop-1.7.0-libao_crash.patch b/net-misc/rdesktop/files/rdesktop-1.7.0-libao_crash.patch
new file mode 100644
index 0000000..3afb9b2
--- /dev/null
+++ b/net-misc/rdesktop/files/rdesktop-1.7.0-libao_crash.patch
@@ -0,0 +1,18 @@
+--- rdpsnd_libao.c.orig 2010-11-29 14:55:31.124907038 +0100
++++ rdpsnd_libao.c 2010-11-29 14:55:51.708464083 +0100
+@@ -76,6 +76,7 @@
+ format.channels = 2;
+ format.rate = 44100;
+ format.byte_format = AO_FMT_NATIVE;
++ format.matrix = NULL;
+
+
+ o_device = ao_open_live(default_driver, &format, NULL);
+@@ -115,6 +116,7 @@
+ format.channels = pwfx->nChannels;
+ format.rate = 44100;
+ format.byte_format = AO_FMT_NATIVE;
++ format.matrix = NULL;
+
+ if (o_device != NULL)
+ ao_close(o_device);
diff --git a/net-misc/rdesktop/files/rdesktop-1.8.3-xrandr_configure.patch b/net-misc/rdesktop/files/rdesktop-1.8.3-xrandr_configure.patch
new file mode 100644
index 0000000..f57a86b
--- /dev/null
+++ b/net-misc/rdesktop/files/rdesktop-1.8.3-xrandr_configure.patch
@@ -0,0 +1,17 @@
+--- configure.ac.orig 2015-09-14 11:27:54.974472081 +0200
++++ configure.ac 2015-09-14 11:34:37.729155044 +0200
+@@ -151,9 +151,12 @@
+ AC_SUBST(CREDSSPOBJ)
+
+ # xrandr
+-if test -n "$PKG_CONFIG"; then
+- PKG_CHECK_MODULES(XRANDR, xrandr, [HAVE_XRANDR=1], [HAVE_XRANDR=0])
++AC_ARG_WITH([xrandr], AS_HELP_STRING([--without-xrandr], [Build without Xrandr library (default: true)]))
++AS_IF([test "x$with_xrandr" != "xno"], [
++ if test -n "$PKG_CONFIG"; then
++ PKG_CHECK_MODULES(XRANDR, xrandr, [HAVE_XRANDR=1], [HAVE_XRANDR=0])
+ fi
++])
+ if test x"$HAVE_XRANDR" = "x1"; then
+ CFLAGS="$CFLAGS $XRANDR_CFLAGS"
+ LIBS="$LIBS $XRANDR_LIBS"
diff --git a/net-misc/rdesktop/files/rdesktop-keymap-additional b/net-misc/rdesktop/files/rdesktop-keymap-additional
new file mode 100644
index 0000000..04a03a5
--- /dev/null
+++ b/net-misc/rdesktop/files/rdesktop-keymap-additional
@@ -0,0 +1,64 @@
+#Additional sequences
+#2007-05-28 by Jaroslav Jiricka <giahra@atlas.cz>
+
+sequence ecaron dead_caron e
+sequence Ecaron dead_caron E
+sequence eogonek dead_ogonek e
+sequence Eogonek dead_ogonek E
+
+sequence rcaron dead_caron r
+sequence Rcaron dead_caron R
+sequence racute dead_acute r
+sequence Racute dead_acute R
+
+sequence tcaron dead_caron t
+sequence Tcaron dead_caron T
+sequence tcedilla dead_cedilla t
+sequence Tcedilla dead_cedilla T
+
+sequence zcaron dead_caron z
+sequence Zcaron dead_caron Z
+sequence zacute dead_acute z
+sequence Zacute dead_acute Z
+sequence zabovedot dead_abovedot z
+sequence Zabovedot dead_abovedot Z
+
+sequence uring dead_abovering u
+sequence Uring dead_abovering U
+sequence udoubleacute dead_doubleacute u
+sequence Udoubleacute dead_doubleacute U
+
+sequence odoubleacute dead_doubleacute o
+sequence Odoubleacute dead_doubleacute O
+
+sequence aogonek dead_ogonek a
+sequence Aogonek dead_ogonek A
+sequence abreve dead_breve a
+sequence Abreve dead_breve A
+
+sequence scaron dead_caron s
+sequence Scaron dead_caron S
+sequence sacute dead_acute s
+sequence Sacute dead_acute S
+sequence scedilla dead_cedilla s
+sequence Scedilla dead_cedilla S
+
+sequence dcaron dead_caron d
+sequence Dcaron dead_caron D
+
+sequence gbreve dead_breve g
+sequence Gbreve dead_breve G
+
+sequence lcaron dead_caron l
+sequence Lcaron dead_caron L
+sequence lacute dead_acute l
+sequence Lacute dead_acute L
+
+sequence ccaron dead_caron c
+sequence Ccaron dead_caron C
+
+sequence ncaron dead_caron n
+sequence Ncaron dead_caron N
+sequence nacute dead_acute n
+sequence Nacute dead_acute N
+
diff --git a/net-misc/rdesktop/files/rdesktop-keymap-cs b/net-misc/rdesktop/files/rdesktop-keymap-cs
new file mode 100644
index 0000000..0467628
--- /dev/null
+++ b/net-misc/rdesktop/files/rdesktop-keymap-cs
@@ -0,0 +1,122 @@
+#Czech keymap
+#2007-05-28 by Jaroslav Jiricka <giahra@atlas.cz>
+include common
+include additional
+map 0x405
+
+semicolon 0x29
+dead_abovering 0x29 shift
+
+plus 0x02
+1 0x02 shift
+dead_tilde 0x02 altgr
+asciitilde 0x02 altgr
+
+ecaron 0x03
+2 0x03 shift
+dead_caron 0x03 altgr
+
+scaron 0x04
+3 0x04 shift
+dead_circumflex 0x04 altgr
+
+ccaron 0x05
+4 0x05 shift
+dead_breve 0x05 altgr
+
+rcaron 0x06
+5 0x06 shift
+dead_abovering 0x06 altgr
+
+zcaron 0x07
+6 0x07 shift
+dead_ogonek 0x07 altgr
+
+yacute 0x08
+7 0x08 shift
+dead_grave 0x08 altgr
+
+aacute 0x09
+8 0x09 shift
+dead_abovedot 0x08 altgr
+
+iacute 0x0a
+9 0x0a shift
+dead_acute 0x08 altgr
+
+eacute 0x0b
+0 0x0b shift
+dead_doubleacute 0x0b altgr
+
+equal 0x0c
+percent 0x0c shift
+dead_macron 0x0c altgr
+
+dead_acute 0x0d
+dead_caron 0x0d shift
+dead_cedilla 0x0d altgr
+
+backslash 0x10 altgr
+
+bar 0x11 altgr
+
+EuroSign 0x12 altgr
+
+z 0x15 addupper
+
+uacute 0x1a
+slash 0x1a shift
+division 0x1a altgr
+
+parenright 0x1b
+parenleft 0x1b shift
+multiply 0x1b altgr
+
+dead_diaeresis 0x2b
+apostrophe 0x2b shift
+currency 0x2b altgr
+
+dstroke 0x1f altgr
+
+Dstroke 0x20 altgr
+
+bracketleft 0x21 altgr
+
+bracketright 0x22 altgr
+
+lstroke 0x25 altgr
+
+Lstroke 0x26 altgr
+
+uring 0x27
+quotedbl 0x27 shift
+dollar 0x27 altgr
+
+section 0x28
+exclam 0x28 shift
+ssharp 0x28 altgr
+
+y 0x2c addupper
+
+numbersign 0x2d altgr
+
+ampersand 0x2e altgr
+
+at 0x2f altgr
+
+braceleft 0x30 altgr
+
+braceright 0x31 altgr
+
+comma 0x33
+question 0x33 shift
+less 0x33 altgr
+
+period 0x34
+colon 0x34 shift
+greater 0x34 altgr
+
+minus 0x35
+underscore 0x35 shift
+asterisk 0x35 altgr
+
diff --git a/net-misc/rdesktop/files/rdesktop-keymap-sk b/net-misc/rdesktop/files/rdesktop-keymap-sk
new file mode 100644
index 0000000..afa1a3b
--- /dev/null
+++ b/net-misc/rdesktop/files/rdesktop-keymap-sk
@@ -0,0 +1,124 @@
+#Slovak keymap
+#2007-05-28 by Jaroslav Jiricka <giahra@atlas.cz>
+include common
+include additional
+map 0x41B
+
+semicolon 0x29
+dead_abovering 0x29 shift
+
+plus 0x02
+1 0x02 shift
+dead_tilde 0x02 altgr
+asciitilde 0x02 altgr
+
+lcaron 0x03
+2 0x03 shift
+dead_caron 0x03 altgr
+
+scaron 0x04
+3 0x04 shift
+dead_circumflex 0x04 altgr
+
+ccaron 0x05
+4 0x05 shift
+dead_breve 0x05 altgr
+
+tcaron 0x06
+5 0x06 shift
+dead_abovering 0x06 altgr
+
+zcaron 0x07
+6 0x07 shift
+dead_ogonek 0x07 altgr
+
+yacute 0x08
+7 0x08 shift
+dead_grave 0x08 altgr
+
+aacute 0x09
+8 0x09 shift
+dead_abovedot 0x08 altgr
+
+iacute 0x0a
+9 0x0a shift
+dead_acute 0x08 altgr
+
+eacute 0x0b
+0 0x0b shift
+dead_doubleacute 0x0b altgr
+
+equal 0x0c
+percent 0x0c shift
+dead_diaeresis 0x0c altgr
+
+dead_acute 0x0d
+dead_caron 0x0d shift
+dead_cedilla 0x0d altgr
+
+backslash 0x10 altgr
+
+bar 0x11 altgr
+
+EuroSign 0x12 altgr
+
+z 0x15 addupper
+
+apostrophe 0x19 altgr
+
+uacute 0x1a
+slash 0x1a shift
+division 0x1a altgr
+
+adiaeresis 0x1b
+parenleft 0x1b shift
+multiply 0x1b altgr
+
+ncaron 0x2b
+parenright 0x2b shift
+currency 0x2b altgr
+
+dstroke 0x1f altgr
+
+Dstroke 0x20 altgr
+
+bracketleft 0x21 altgr
+
+bracketright 0x22 altgr
+
+lstroke 0x25 altgr
+
+Lstroke 0x26 altgr
+
+ocircumflex 0x27
+quotedbl 0x27 shift
+dollar 0x27 altgr
+
+section 0x28
+exclam 0x28 shift
+ssharp 0x28 altgr
+
+y 0x2c addupper
+
+numbersign 0x2d altgr
+
+ampersand 0x2e altgr
+
+at 0x2f altgr
+
+braceleft 0x30 altgr
+
+braceright 0x31 altgr
+
+comma 0x33
+question 0x33 shift
+less 0x33 altgr
+
+period 0x34
+colon 0x34 shift
+greater 0x34 altgr
+
+minus 0x35
+underscore 0x35 shift
+asterisk 0x35 altgr
+
diff --git a/net-misc/rdesktop/files/rdesktop-xinerama.patch b/net-misc/rdesktop/files/rdesktop-xinerama.patch
new file mode 100644
index 0000000..3421cc5
--- /dev/null
+++ b/net-misc/rdesktop/files/rdesktop-xinerama.patch
@@ -0,0 +1,180 @@
+--- configure.ac.orig 2008-06-25 23:22:27.000000000 +0200
++++ configure.ac 2008-06-25 23:17:51.000000000 +0200
+@@ -18,6 +18,8 @@
+ AC_SEARCH_LIBS(socket, socket)
+ AC_SEARCH_LIBS(inet_aton, resolv)
+
++AC_CHECK_LIB(Xinerama, XineramaQueryScreens, AC_DEFINE(HAVE_XINERAMA) LIBS="$LIBS -lXinerama", [], [])
++
+ AC_CHECK_HEADER(sys/select.h, AC_DEFINE(HAVE_SYS_SELECT_H))
+ AC_CHECK_HEADER(sys/modem.h, AC_DEFINE(HAVE_SYS_MODEM_H))
+ AC_CHECK_HEADER(sys/filio.h, AC_DEFINE(HAVE_SYS_FILIO_H))
+--- xwin.c.orig 2008-06-25 23:50:02.000000000 +0200
++++ xwin.c 2008-06-25 23:49:25.000000000 +0200
+@@ -21,6 +21,9 @@
+
+ #include <X11/Xlib.h>
+ #include <X11/Xutil.h>
++#ifdef HAVE_XINERAMA
++ #include <X11/extensions/Xinerama.h>
++#endif
+ #include <X11/Xproto.h>
+ #include <unistd.h>
+ #include <sys/time.h>
+@@ -570,6 +573,71 @@
+ #define LOUT24(o, x) { *(o++) = x; *(o++) = x >> 8; *(o++) = x >> 16; }
+ #define LOUT32(o, x) { *(o++) = x; *(o++) = x >> 8; *(o++) = x >> 16; *(o++) = x >> 24; }
+
++#ifdef HAVE_XINERAMA
++// IF XINERAMA LIBRARY
++
++int g_last_wnd_pos_x;
++int g_last_wnd_pos_y;
++
++void
++ScreenSize(XRectangle *screen)
++{
++ int screens;
++ int event_base;
++ int error_base;
++
++ if (XineramaQueryExtension(g_display, &event_base, &error_base))
++ {
++ XineramaScreenInfo *screeninfo;
++ int i;
++
++ /* Get the Xinerama screen infomation. */
++ screeninfo = XineramaQueryScreens(g_display, &screens);
++
++ /* Search for the appropriate screen. */
++ i = 0;
++ while (!(screeninfo[i].x_org <= g_last_wnd_pos_x
++ && screeninfo[i].y_org <= g_last_wnd_pos_y
++ && screeninfo[i].x_org + screeninfo[i].width >= g_last_wnd_pos_x
++ && screeninfo[i].y_org + screeninfo[i].height >= g_last_wnd_pos_y ))
++ {
++ i++;
++ }
++ if (i >= screens) i = 0;
++
++ /* Position according to the present screen. */
++ screen->x = screeninfo[i].x_org;
++ screen->y = screeninfo[i].y_org;
++ screen->width = screeninfo[i].width;
++ screen->height = screeninfo[i].height;
++
++ /* Free allocated memory. */
++ XFree(screeninfo);
++ }
++ else
++ {
++ /* Xinerama is not in use, default to the XLib screensize call. */
++ screen->x = 0;
++ screen->y = 0;
++ screen->width = WidthOfScreen(g_screen);
++ screen->height = HeightOfScreen(g_screen);
++ }
++}
++
++#else
++// IF NO XINERAMA LIBRARY
++
++void
++ScreenSize(XRectangle *screen)
++{
++ screen->x = 0;
++ screen->y = 0;
++ screen->width = WidthOfScreen(g_screen);
++ screen->height = HeightOfScreen(g_screen);
++}
++
++#endif
++
+ static uint32
+ translate_colour(uint32 colour)
+ {
+@@ -1615,17 +1683,26 @@
+ */
+ if (g_fullscreen)
+ {
+- g_width = WidthOfScreen(g_screen);
+- g_height = HeightOfScreen(g_screen);
++ XRectangle screen;
++ ScreenSize(&screen);
++
++ g_width = screen.width;
++ g_height = screen.height;
+ g_using_full_workarea = True;
+ }
+ else if (g_width < 0)
+ {
++ XRectangle screen;
++ ScreenSize(&screen);
++
++ g_width = screen.width;
++ g_height = screen.height;
++
+ /* Percent of screen */
+ if (-g_width >= 100)
+ g_using_full_workarea = True;
+- g_height = HeightOfScreen(g_screen) * (-g_width) / 100;
+- g_width = WidthOfScreen(g_screen) * (-g_width) / 100;
++ g_width = screen.width * (-g_width) / 100;
++ g_height = screen.height * (-g_width) / 100;
+ }
+ else if (g_width == 0)
+ {
+@@ -1734,14 +1811,19 @@
+ long input_mask, ic_input_mask;
+ XEvent xevent;
+
+- wndwidth = g_fullscreen ? WidthOfScreen(g_screen) : g_width;
+- wndheight = g_fullscreen ? HeightOfScreen(g_screen) : g_height;
++ XRectangle screen;
++
++ ScreenSize(&screen);
++ wndwidth = g_fullscreen ? screen.width : g_width;
++ wndheight = g_fullscreen ? screen.height : g_height;
++ g_xpos = g_fullscreen ? screen.x : g_xpos;
++ g_ypos = g_fullscreen ? screen.y : g_ypos;
+
+ /* Handle -x-y portion of geometry string */
+ if (g_xpos < 0 || (g_xpos == 0 && (g_pos & 2)))
+- g_xpos = WidthOfScreen(g_screen) + g_xpos - g_width;
++ g_xpos = screen.width + g_xpos - g_width;
+ if (g_ypos < 0 || (g_ypos == 0 && (g_pos & 4)))
+- g_ypos = HeightOfScreen(g_screen) + g_ypos - g_height;
++ g_ypos = screen.height + g_ypos - g_height;
+
+ get_window_attribs(&attribs);
+
+@@ -1882,6 +1964,11 @@
+ void
+ xwin_toggle_fullscreen(void)
+ {
++#ifdef HAVE_XINERAMA
++ Window root, parent, *children;
++ unsigned int nchildren;
++ XWindowAttributes win_attrib;
++#endif
+ Pixmap contents = 0;
+
+ if (g_seamless_active)
+@@ -1895,6 +1982,17 @@
+ XCopyArea(g_display, g_wnd, contents, g_gc, 0, 0, g_width, g_height, 0, 0);
+ }
+
++#ifdef HAVE_XINERAMA
++ /* Determine the parent window. */
++ XQueryTree(g_display, g_wnd, &root, &parent, &children, &nchildren);
++ if (children != NULL) XFree(children);
++
++ /* Find the present coordinates of the window. */
++ XGetWindowAttributes(g_display, parent, &win_attrib);
++ g_last_wnd_pos_x = win_attrib.x + 1;
++ g_last_wnd_pos_y = win_attrib.y + 1;
++#endif
++
+ ui_destroy_window();
+ g_fullscreen = !g_fullscreen;
+ ui_create_window();
diff --git a/net-misc/rdesktop/files/rdesktop171-ds-xinerama.patch b/net-misc/rdesktop/files/rdesktop171-ds-xinerama.patch
new file mode 100644
index 0000000..0d66e3d
--- /dev/null
+++ b/net-misc/rdesktop/files/rdesktop171-ds-xinerama.patch
@@ -0,0 +1,181 @@
+diff -dPNur rdesktop-1.7.1/configure.ac rdesktop-1.7.1-ds/configure.ac
+--- rdesktop-1.7.1/configure.ac 2012-01-09 13:29:39.000000000 +0100
++++ rdesktop-1.7.1-ds/configure.ac 2012-11-21 00:55:34.000000000 +0100
+@@ -32,6 +32,8 @@
+ AC_SEARCH_LIBS(socket, socket)
+ AC_SEARCH_LIBS(inet_aton, resolv)
+
++AC_CHECK_LIB(Xinerama, XineramaQueryScreens, AC_DEFINE(HAVE_XINERAMA) LIBS="$LIBS -lXinerama", [], [])
++
+ AC_CHECK_HEADER(sys/select.h, AC_DEFINE(HAVE_SYS_SELECT_H))
+ AC_CHECK_HEADER(sys/modem.h, AC_DEFINE(HAVE_SYS_MODEM_H))
+ AC_CHECK_HEADER(sys/filio.h, AC_DEFINE(HAVE_SYS_FILIO_H))
+diff -dPNur rdesktop-1.7.1/configure.ac.orig rdesktop-1.7.1-ds/configure.ac.orig
+diff -dPNur rdesktop-1.7.1/rdesktop-xinerama.patch rdesktop-1.7.1-ds/rdesktop-xinerama.patch
+diff -dPNur rdesktop-1.7.1/xwin.c rdesktop-1.7.1-ds/xwin.c
+--- rdesktop-1.7.1/xwin.c 2011-04-13 13:13:04.000000000 +0200
++++ rdesktop-1.7.1-ds/xwin.c 2012-11-21 01:00:46.000000000 +0100
+@@ -21,6 +21,9 @@
+
+ #include <X11/Xlib.h>
+ #include <X11/Xutil.h>
++#ifdef HAVE_XINERAMA
++ #include <X11/extensions/Xinerama.h>
++#endif
+ #include <X11/Xproto.h>
+ #include <unistd.h>
+ #include <sys/time.h>
+@@ -817,6 +820,71 @@
+ #define LOUT24(o, x) { *(o++) = x; *(o++) = x >> 8; *(o++) = x >> 16; }
+ #define LOUT32(o, x) { *(o++) = x; *(o++) = x >> 8; *(o++) = x >> 16; *(o++) = x >> 24; }
+
++#ifdef HAVE_XINERAMA
++// IF XINERAMA LIBRARY
++
++int g_last_wnd_pos_x;
++int g_last_wnd_pos_y;
++
++void
++ScreenSize(XRectangle *screen)
++{
++ int screens;
++ int event_base;
++ int error_base;
++
++ if (XineramaQueryExtension(g_display, &event_base, &error_base))
++ {
++ XineramaScreenInfo *screeninfo;
++ int i;
++
++ /* Get the Xinerama screen infomation. */
++ screeninfo = XineramaQueryScreens(g_display, &screens);
++
++ /* Search for the appropriate screen. */
++ i = 0;
++ while (!(screeninfo[i].x_org <= g_last_wnd_pos_x
++ && screeninfo[i].y_org <= g_last_wnd_pos_y
++ && screeninfo[i].x_org + screeninfo[i].width >= g_last_wnd_pos_x
++ && screeninfo[i].y_org + screeninfo[i].height >= g_last_wnd_pos_y ))
++ {
++ i++;
++ }
++ if (i >= screens) i = 0;
++
++ /* Position according to the present screen. */
++ screen->x = screeninfo[i].x_org;
++ screen->y = screeninfo[i].y_org;
++ screen->width = screeninfo[i].width;
++ screen->height = screeninfo[i].height;
++
++ /* Free allocated memory. */
++ XFree(screeninfo);
++ }
++ else
++ {
++ /* Xinerama is not in use, default to the XLib screensize call. */
++ screen->x = 0;
++ screen->y = 0;
++ screen->width = WidthOfScreen(g_screen);
++ screen->height = HeightOfScreen(g_screen);
++ }
++}
++
++#else
++// IF NO XINERAMA LIBRARY
++
++void
++ScreenSize(XRectangle *screen)
++{
++ screen->x = 0;
++ screen->y = 0;
++ screen->width = WidthOfScreen(g_screen);
++ screen->height = HeightOfScreen(g_screen);
++}
++
++#endif
++
+ static uint32
+ translate_colour(uint32 colour)
+ {
+@@ -1913,17 +1981,23 @@
+ */
+ if (g_fullscreen)
+ {
+- g_width = WidthOfScreen(g_screen);
+- g_height = HeightOfScreen(g_screen);
++ XRectangle screen;
++ ScreenSize(&screen);
++
++ g_width = screen.width;
++ g_height = screen.height;
+ g_using_full_workarea = True;
+ }
+ else if (g_sizeopt < 0)
+ {
++ XRectangle screen;
++ ScreenSize(&screen);
++
+ /* Percent of screen */
+ if (-g_sizeopt >= 100)
+ g_using_full_workarea = True;
+- g_height = HeightOfScreen(g_screen) * (-g_sizeopt) / 100;
+- g_width = WidthOfScreen(g_screen) * (-g_sizeopt) / 100;
++ g_height = screen.height * (-g_sizeopt) / 100;
++ g_width = screen.width * (-g_sizeopt) / 100;
+ }
+ else if (g_sizeopt == 1)
+ {
+@@ -2006,14 +2080,19 @@
+ long input_mask, ic_input_mask;
+ XEvent xevent;
+
+- wndwidth = g_fullscreen ? WidthOfScreen(g_screen) : g_width;
+- wndheight = g_fullscreen ? HeightOfScreen(g_screen) : g_height;
++ XRectangle screen;
++
++ ScreenSize(&screen);
++ wndwidth = g_fullscreen ? screen.width : g_width;
++ wndheight = g_fullscreen ? screen.height : g_height;
++ g_xpos = g_fullscreen ? screen.x : g_xpos;
++ g_ypos = g_fullscreen ? screen.y : g_ypos;
+
+ /* Handle -x-y portion of geometry string */
+ if (g_xpos < 0 || (g_xpos == 0 && (g_pos & 2)))
+- g_xpos = WidthOfScreen(g_screen) + g_xpos - g_width;
++ g_xpos = screen.width + g_xpos - g_width;
+ if (g_ypos < 0 || (g_ypos == 0 && (g_pos & 4)))
+- g_ypos = HeightOfScreen(g_screen) + g_ypos - g_height;
++ g_ypos = screen.height + g_ypos - g_height;
+
+ get_window_attribs(&attribs);
+
+@@ -2170,6 +2249,11 @@
+ void
+ xwin_toggle_fullscreen(void)
+ {
++#ifdef HAVE_XINERAMA
++ Window root, parent, *children;
++ unsigned int nchildren;
++ XWindowAttributes win_attrib;
++#endif
+ Pixmap contents = 0;
+
+ if (g_seamless_active)
+@@ -2183,6 +2267,17 @@
+ XCopyArea(g_display, g_wnd, contents, g_gc, 0, 0, g_width, g_height, 0, 0);
+ }
+
++#ifdef HAVE_XINERAMA
++ /* Determine the parent window. */
++ XQueryTree(g_display, g_wnd, &root, &parent, &children, &nchildren);
++ if (children != NULL) XFree(children);
++
++ /* Find the present coordinates of the window. */
++ XGetWindowAttributes(g_display, parent, &win_attrib);
++ g_last_wnd_pos_x = win_attrib.x + 1;
++ g_last_wnd_pos_y = win_attrib.y + 1;
++#endif
++
+ ui_destroy_window();
+ g_fullscreen = !g_fullscreen;
+ ui_create_window();
diff --git a/net-misc/rdesktop/rdesktop-1.6.0-r2.ebuild b/net-misc/rdesktop/rdesktop-1.6.0-r2.ebuild
new file mode 100644
index 0000000..da93167
--- /dev/null
+++ b/net-misc/rdesktop/rdesktop-1.6.0-r2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/rdesktop/rdesktop-1.6.0-r1.ebuild,v 1.1 2008/05/21 14:13:19 voyageur Exp $
+
+inherit eutils
+
+MY_PV=${PV/_/-}
+
+DESCRIPTION="A Remote Desktop Protocol Client"
+HOMEPAGE="http://rdesktop.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~x86-fbsd"
+IUSE="ao debug ipv6 oss pcsc-lite"
+
+S=${WORKDIR}/${PN}-${MY_PV}
+
+RDEPEND=">=dev-libs/openssl-0.9.6b
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ ao? ( >=media-libs/libao-0.8.6 )
+ pcsc-lite? ( sys-apps/pcsc-lite )"
+DEPEND="${RDEPEND}
+ x11-libs/libXt"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+#SDS
+ epatch "${FILESDIR}"/rdesktop-xinerama.patch || die
+#EDS
+
+ # Prevent automatic stripping
+ local strip="$(echo '$(STRIP) $(DESTDIR)$(bindir)/rdesktop')"
+ sed -i -e "s:${strip}::" Makefile.in \
+ || die "sed failed in Makefile.in"
+}
+
+src_compile() {
+ if use oss; then
+ extra_conf=$(use_with oss sound)
+ else
+ extra_conf=$(use_with ao sound libao)
+ fi
+
+#SDS
+ ./bootstrap || die
+#EDS
+
+ econf \
+ --with-openssl=/usr \
+ $(use_with debug) \
+ $(use_with ipv6) \
+ $(use_enable pcsc-lite smartcard) \
+ ${extra_conf} \
+ || die "configuration failed"
+
+ emake || die "compilation failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "installation failed"
+ dodoc doc/HACKING doc/TODO doc/keymapping.txt
+
+ # For #180313 - applies to versions >= 1.5.0
+ # Fixes sf.net bug
+ # http://sourceforge.net/tracker/index.php?func=detail&aid=1725634&group_id=24366&atid=381349
+ # check for next version to see if this needs to be removed
+ insinto /usr/share/rdesktop/keymaps
+ newins "${FILESDIR}/rdesktop-keymap-additional" additional
+ newins "${FILESDIR}/rdesktop-keymap-cs" cs
+ newins "${FILESDIR}/rdesktop-keymap-sk" sk
+}
diff --git a/net-misc/rdesktop/rdesktop-1.7.1-r1.ebuild b/net-misc/rdesktop/rdesktop-1.7.1-r1.ebuild
new file mode 100644
index 0000000..04a15c1
--- /dev/null
+++ b/net-misc/rdesktop/rdesktop-1.7.1-r1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/rdesktop/rdesktop-1.7.1.ebuild,v 1.9 2012/08/19 23:47:24 ottxor Exp $
+
+EAPI=4
+
+inherit autotools eutils
+
+MY_PV=${PV/_/-}
+
+DESCRIPTION="A Remote Desktop Protocol Client"
+HOMEPAGE="http://rdesktop.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="alsa ao debug ipv6 libsamplerate oss pcsc-lite"
+
+S=${WORKDIR}/${PN}-${MY_PV}
+
+RDEPEND=">=dev-libs/openssl-0.9.6b
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ alsa? ( media-libs/alsa-lib )
+ ao? ( >=media-libs/libao-0.8.6 )
+ libsamplerate? ( media-libs/libsamplerate )
+ pcsc-lite? ( >=sys-apps/pcsc-lite-1.6.6 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ x11-libs/libXt"
+
+src_prepare() {
+ # Prevent automatic stripping
+ local strip="$(echo '$(STRIP) $(DESTDIR)$(bindir)/rdesktop')"
+ sed -i -e "s:${strip}::" Makefile.in \
+ || die "sed failed in Makefile.in"
+
+ # Automagic dependency on libsamplerate
+ epatch "${FILESDIR}"/${PN}-1.6.0-sound_configure.patch
+ # Fix --enable-smartcard logic
+ epatch "${FILESDIR}"/${PN}-1.6.0-smartcard_configure.patch
+ # bug #280923
+ epatch "${FILESDIR}"/${PN}-1.7.0-libao_crash.patch
+#SDS
+ epatch "${FILESDIR}"/rdesktop171-ds-xinerama.patch
+#EDS
+
+ eautoreconf
+}
+
+src_configure() {
+ if use ao; then
+ sound_conf=$(use_with ao sound libao)
+ else if use alsa; then
+ sound_conf=$(use_with alsa sound alsa)
+ else
+ sound_conf=$(use_with oss sound oss)
+ fi
+ fi
+
+ econf \
+ --with-openssl="${EPREFIX}"/usr \
+ $(use_with debug) \
+ $(use_with ipv6) \
+ $(use_with libsamplerate) \
+ $(use_enable pcsc-lite smartcard) \
+ ${sound_conf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc doc/HACKING doc/TODO doc/keymapping.txt
+
+ # For #180313 - applies to versions >= 1.5.0
+ # Fixes sf.net bug
+ # http://sourceforge.net/tracker/index.php?func=detail&aid=1725634&group_id=24366&atid=381349
+ # check for next version to see if this needs to be removed
+ insinto /usr/share/rdesktop/keymaps
+ newins "${FILESDIR}/rdesktop-keymap-additional" additional
+ newins "${FILESDIR}/rdesktop-keymap-cs" cs
+ newins "${FILESDIR}/rdesktop-keymap-sk" sk
+}
diff --git a/net-misc/rdesktop/rdesktop-1.8.3-r3.ebuild b/net-misc/rdesktop/rdesktop-1.8.3-r3.ebuild
new file mode 100644
index 0000000..81ce914
--- /dev/null
+++ b/net-misc/rdesktop/rdesktop-1.8.3-r3.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils
+
+MY_PV=${PV/_/-}
+
+DESCRIPTION="A Remote Desktop Protocol Client"
+HOMEPAGE="http://rdesktop.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="alsa ao debug ipv6 kerberos libressl libsamplerate oss pcsc-lite xrandr"
+
+S=${WORKDIR}/${PN}-${MY_PV}
+
+RDEPEND="
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ alsa? ( media-libs/alsa-lib )
+ ao? ( >=media-libs/libao-0.8.6 )
+ kerberos? ( net-libs/libgssglue )
+ libsamplerate? ( media-libs/libsamplerate )
+ pcsc-lite? ( >=sys-apps/pcsc-lite-1.6.6 )
+ xrandr? ( x11-libs/libXrandr )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ x11-libs/libXt"
+
+src_prepare() {
+ # Prevent automatic stripping
+ local strip="$(echo '$(STRIP) $(DESTDIR)$(bindir)/rdesktop')"
+ sed -i -e "s:${strip}::" Makefile.in \
+ || die "sed failed in Makefile.in"
+
+ # Automagic dependencies
+ epatch "${FILESDIR}"/${PN}-1.6.0-sound_configure.patch
+ epatch "${FILESDIR}"/${P}-xrandr_configure.patch
+
+#SDS
+ epatch "${FILESDIR}"/rdesktop171-ds-xinerama.patch
+#EDS
+
+ epatch_user
+
+ eautoreconf
+}
+
+src_configure() {
+ if use ao; then
+ sound_conf=$(use_with ao sound libao)
+ else if use alsa; then
+ sound_conf=$(use_with alsa sound alsa)
+ else
+ sound_conf=$(use_with oss sound oss)
+ fi
+ fi
+
+ econf \
+ --with-openssl="${EPREFIX}"/usr \
+ $(use_with debug) \
+ $(use_with ipv6) \
+ $(use_with libsamplerate) \
+ $(use_with xrandr) \
+ $(use_enable kerberos credssp) \
+ $(use_enable pcsc-lite smartcard) \
+ ${sound_conf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc doc/HACKING doc/TODO doc/keymapping.txt
+}