rdesktop: import from homebrew/x11.
This commit is contained in:
parent
810495fb70
commit
c60a2e7977
1 changed files with 65 additions and 0 deletions
65
Formula/rdesktop.rb
Normal file
65
Formula/rdesktop.rb
Normal file
|
@ -0,0 +1,65 @@
|
|||
class Rdesktop < Formula
|
||||
desc "UNIX client for connecting to Windows Remote Desktop Services"
|
||||
homepage "http://www.rdesktop.org/"
|
||||
url "https://downloads.sourceforge.net/project/rdesktop/rdesktop/1.8.3/rdesktop-1.8.3.tar.gz"
|
||||
mirror "https://mirrors.kernel.org/debian/pool/main/r/rdesktop/rdesktop_1.8.3.orig.tar.gz"
|
||||
sha256 "88b20156b34eff5f1b453f7c724e0a3ff9370a599e69c01dc2bf0b5e650eece4"
|
||||
|
||||
option "with-smartcard", "Build with Smart Card Support"
|
||||
|
||||
depends_on "openssl"
|
||||
depends_on :x11
|
||||
|
||||
# Note: The patch below is meant to remove the reference to the
|
||||
# undefined symbol SCARD_CTL_CODE. Since we are compiling with
|
||||
# --disable-smartcard (by default), we don't need it anyway (and it should
|
||||
# probably have been #ifdefed in the original code).
|
||||
# upstream bug report: https://sourceforge.net/p/rdesktop/bugs/352/
|
||||
patch :DATA
|
||||
|
||||
def install
|
||||
args = %W[
|
||||
--prefix=#{prefix}
|
||||
--disable-credssp
|
||||
--with-openssl=#{Formula["openssl"].opt_prefix}
|
||||
--x-includes=#{MacOS::X11.include}
|
||||
--x-libraries=#{MacOS::X11.lib}
|
||||
]
|
||||
|
||||
if build.with? "smartcard"
|
||||
args << "--enable-smartcard"
|
||||
else
|
||||
args << "--disable-smartcard"
|
||||
end
|
||||
|
||||
system "./configure", *args
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match version.to_s, shell_output("#{bin}/rdesktop -help 2>&1", 64)
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
diff --git a/scard.c b/scard.c
|
||||
index caa0745..5521ee9 100644
|
||||
--- a/scard.c
|
||||
+++ b/scard.c
|
||||
@@ -2152,7 +2152,6 @@ TS_SCardControl(STREAM in, STREAM out)
|
||||
{
|
||||
/* Translate to local encoding */
|
||||
dwControlCode = (dwControlCode & 0x3ffc) >> 2;
|
||||
- dwControlCode = SCARD_CTL_CODE(dwControlCode);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2198,7 +2197,7 @@ TS_SCardControl(STREAM in, STREAM out)
|
||||
}
|
||||
|
||||
#ifdef PCSCLITE_VERSION_NUMBER
|
||||
- if (dwControlCode == SCARD_CTL_CODE(3400))
|
||||
+ if (0)
|
||||
{
|
||||
int i;
|
||||
SERVER_DWORD cc;
|
Loading…
Reference in a new issue