Commit b185c5b2 authored by Terra Branford's avatar Terra Branford Committed by Ed Reel

Add FreeRDP package (#3109)

* Add FreeRDP

* Fix FreeRDP installation directory

* Remove redundant dependencies

* Enable some features

* More cmake options

* f o r m a t t i n g

* Add Xprop dependency
parent b05ee130
require 'package'
class Freerdp < Package
description 'FreeRDP is a free implementation of the Remote Desktop Protocol.'
homepage 'http://www.freerdp.com/'
version '2.0.0-rc4'
source_url 'https://github.com/FreeRDP/FreeRDP/archive/2.0.0-rc4.tar.gz'
source_sha256 '3406f3bfab63f81c1533029a5bf73949ff60f22f6e155c5a08005b8b8afe6d49'
depends_on 'ffmpeg'
depends_on 'gst_plugins_base'
depends_on 'cups'
depends_on 'xmlto'
depends_on 'libxslt'
depends_on 'ninja'
depends_on 'xprop'
depends_on 'sommelier'
def self.build
system 'cmake', "-DCMAKE_INSTALL_PREFIX:PATH=#{CREW_PREFIX}", '-DWITH_SERVER=yes', '-DWITH_CLIENT=yes', '-DWITH_CHANNELS=yes',
'-DBUILD_SHARED_LIBS=yes', '-DWITH_GSSAPI=yes', '-DWITH_DSP_FFMPEG=yes', '-DWITH_LIBSYSTEMD=OFF', '-DWITH_CUPS=ON',
'-DWITH_PULSE=ON', "-DDOCBOOKXSL_DIR=#{CREW_PREFIX}/share/doc/docbook-xsl-1.79.2", '-GUnix Makefiles', '.'
system 'make'
end
def self.install
system 'make', 'install', "DESTDIR=#{CREW_DEST_DIR}"
end
def self.postinstall
puts
puts 'To test this package, try the following command to connect to the Windows server at https://www.secure-od.com/:'.lightblue
puts 'xfreerdp -g 800x600 -u demo2 -p D3m02014*Test 109.168.97.222'.lightblue
puts 'If you don\'t have the Sommelier daemon running, you may need to prepend that with "sommelier -X ".'.lightblue
puts
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment