2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-06-05 13:19:53 +02:00
|
|
|
#
|
2013-07-22 07:30:22 +02:00
|
|
|
# freerdp
|
2012-06-05 13:19:53 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-06-05 13:19:53 +02:00
|
|
|
|
2014-09-20 19:09:48 +02:00
|
|
|
# Changeset on the stable-1.1 branch
|
2015-04-04 14:56:48 +02:00
|
|
|
FREERDP_VERSION = 770c67d340d5f0a7b48d53a1ae0fc23aff748fc4
|
2014-06-17 00:54:56 +02:00
|
|
|
FREERDP_SITE = $(call github,FreeRDP,FreeRDP,$(FREERDP_VERSION))
|
2015-02-21 23:36:19 +01:00
|
|
|
FREERDP_DEPENDENCIES = openssl zlib
|
2014-01-02 14:01:48 +01:00
|
|
|
FREERDP_LICENSE = Apache-2.0
|
2014-06-24 20:55:54 +02:00
|
|
|
FREERDP_LICENSE_FILES = LICENSE
|
2012-06-05 13:19:53 +02:00
|
|
|
|
2015-02-21 23:36:22 +01:00
|
|
|
FREERDP_INSTALL_STAGING = YES
|
|
|
|
|
2015-02-21 23:36:18 +01:00
|
|
|
FREERDP_CONF_OPTS = -DWITH_MANPAGES=OFF -Wno-dev
|
2014-12-07 12:39:27 +01:00
|
|
|
|
2015-02-21 23:36:15 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GSTREAMER),y)
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_GSTREAMER=ON
|
|
|
|
FREERDP_DEPENDENCIES += gstreamer
|
|
|
|
else
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_GSTREAMER=OFF
|
|
|
|
endif
|
|
|
|
|
2012-06-05 13:19:53 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_CUPS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FREERDP_CONF_OPTS += -DWITH_CUPS=ON
|
2012-06-05 13:19:53 +02:00
|
|
|
FREERDP_DEPENDENCIES += cups
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FREERDP_CONF_OPTS += -DWITH_CUPS=OFF
|
2012-06-05 13:19:53 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FREERDP_CONF_OPTS += -DWITH_FFMPEG=ON
|
2012-06-05 13:19:53 +02:00
|
|
|
FREERDP_DEPENDENCIES += ffmpeg
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FREERDP_CONF_OPTS += -DWITH_FFMPEG=OFF
|
2012-06-05 13:19:53 +02:00
|
|
|
endif
|
|
|
|
|
2014-10-24 21:37:43 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB_MIXER),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FREERDP_CONF_OPTS += -DWITH_ALSA=ON
|
2012-06-05 13:19:53 +02:00
|
|
|
FREERDP_DEPENDENCIES += alsa-lib
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FREERDP_CONF_OPTS += -DWITH_ALSA=OFF
|
2012-06-05 13:19:53 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FREERDP_CONF_OPTS += -DWITH_PULSEAUDIO=ON
|
2012-06-05 13:19:53 +02:00
|
|
|
FREERDP_DEPENDENCIES += pulseaudio
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FREERDP_CONF_OPTS += -DWITH_PULSEAUDIO=OFF
|
2012-06-05 13:19:53 +02:00
|
|
|
endif
|
|
|
|
|
2015-02-21 23:36:20 +01:00
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_NEON=ON
|
|
|
|
else
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_NEON=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE2),y)
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_SSE2=ON
|
|
|
|
else
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_SSE2=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_arm)$(BR2_armeb),y)
|
|
|
|
FREERDP_CONF_OPTS += -DARM_FP_ABI=$(call qstrip,$(BR2_GCC_TARGET_FLOAT_ABI))
|
|
|
|
endif
|
|
|
|
|
2015-02-21 23:36:21 +01:00
|
|
|
#---------------------------------------
|
|
|
|
# Enabling server and/or client
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FREERDP_SERVER),y)
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_SERVER=ON -DWITH_SERVER_INTERFACE=ON
|
2015-02-21 23:36:19 +01:00
|
|
|
else
|
2015-02-21 23:36:21 +01:00
|
|
|
FREERDP_CONF_OPTS += -DWITH_SERVER=OFF -DWITH_SERVER_INTERFACE=OFF
|
2015-02-21 23:36:19 +01:00
|
|
|
endif
|
|
|
|
|
2015-02-21 23:36:21 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FREERDP_CLIENT),y)
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_CLIENT=ON -DWITH_CLIENT_INTERFACE=ON
|
|
|
|
else
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_CLIENT=OFF -DWITH_CLIENT_INTERFACE=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
#---------------------------------------
|
|
|
|
# X.Org libs for client and/or server
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_FREERDP_SERVER)$(BR2_PACKAGE_FREERDP_CLIENT),)
|
|
|
|
|
|
|
|
# Those two are mandatory for both the server and the client
|
|
|
|
FREERDP_DEPENDENCIES += xlib_libX11 xlib_libXext
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_X11=ON
|
|
|
|
|
|
|
|
# The following libs are either optional or mandatory only for either
|
|
|
|
# the server or the client. A mandatory library for either one is
|
|
|
|
# selected from Kconfig, so we can make it conditional here
|
2015-02-21 23:36:19 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXCURSOR),y)
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_XCURSOR=ON
|
|
|
|
FREERDP_DEPENDENCIES += xlib_libXcursor
|
|
|
|
else
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_XCURSOR=OFF
|
|
|
|
endif
|
|
|
|
|
2015-02-21 23:36:21 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXDAMAGE),y)
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_XDAMAGE=ON
|
|
|
|
FREERDP_DEPENDENCIES += xlib_libXdamage
|
|
|
|
else
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_XDAMAGE=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXFIXES),y)
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_XFIXES=ON
|
|
|
|
FREERDP_DEPENDENCIES += xlib_libXfixes
|
|
|
|
else
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_XFIXES=OFF
|
|
|
|
endif
|
|
|
|
|
2015-02-21 23:36:16 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXI),y)
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_XI=ON
|
|
|
|
FREERDP_DEPENDENCIES += xlib_libXi
|
|
|
|
else
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_XI=OFF
|
|
|
|
endif
|
|
|
|
|
2012-06-05 13:19:53 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FREERDP_CONF_OPTS += -DWITH_XINERAMA=ON
|
2012-06-05 13:19:53 +02:00
|
|
|
FREERDP_DEPENDENCIES += xlib_libXinerama
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FREERDP_CONF_OPTS += -DWITH_XINERAMA=OFF
|
2012-06-05 13:19:53 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXKBFILE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FREERDP_CONF_OPTS += -DWITH_XKBFILE=ON
|
2012-06-05 13:19:53 +02:00
|
|
|
FREERDP_DEPENDENCIES += xlib_libxkbfile
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FREERDP_CONF_OPTS += -DWITH_XKBFILE=OFF
|
2012-06-05 13:19:53 +02:00
|
|
|
endif
|
|
|
|
|
2015-02-21 23:36:21 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXRANDR),y)
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_XRANDR=ON
|
|
|
|
FREERDP_DEPENDENCIES += xlib_libXrandr
|
|
|
|
else
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_XRANDR=OFF
|
|
|
|
endif
|
|
|
|
|
2015-02-21 23:36:17 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXRENDER),y)
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_XRENDER=ON
|
|
|
|
FREERDP_DEPENDENCIES += xlib_libXrender
|
|
|
|
else
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_XRENDER=OFF
|
|
|
|
endif
|
|
|
|
|
2015-02-21 23:36:21 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXTST),y)
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_XTEST=ON
|
|
|
|
FREERDP_DEPENDENCIES += xlib_libXtst
|
|
|
|
else
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_XTEST=OFF
|
|
|
|
endif
|
|
|
|
|
2012-06-05 13:19:53 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXV),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FREERDP_CONF_OPTS += -DWITH_XV=ON
|
2012-06-05 13:19:53 +02:00
|
|
|
FREERDP_DEPENDENCIES += xlib_libXv
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FREERDP_CONF_OPTS += -DWITH_XV=OFF
|
2012-06-05 13:19:53 +02:00
|
|
|
endif
|
|
|
|
|
2015-02-21 23:36:21 +01:00
|
|
|
else # ! SERVER && ! CLIENT
|
|
|
|
|
|
|
|
FREERDP_CONF_OPTS += -DWITH_X11=OFF
|
|
|
|
|
2015-02-22 18:45:49 +01:00
|
|
|
endif # ! SERVER && ! CLIENT
|
2015-02-21 23:36:21 +01:00
|
|
|
|
2015-02-22 18:45:50 +01:00
|
|
|
# Install the server key and certificate, so that a client can connect.
|
|
|
|
# A user can override them with its own in a post-build script, if needed.
|
|
|
|
# We install them even if the server is not enabled, since another server
|
|
|
|
# can be built and linked with libfreerdp (e.g. weston with the RDP
|
|
|
|
# backend). Key and cert are installed world-readable, so non-root users
|
|
|
|
# can start a server.
|
|
|
|
define FREERDP_INSTALL_KEYS
|
|
|
|
$(INSTALL) -m 0644 -D $(@D)/server/X11/server.key \
|
|
|
|
$(TARGET_DIR)/etc/freerdp/keys/server.key
|
|
|
|
$(INSTALL) -m 0644 -D $(@D)/server/X11/server.crt \
|
|
|
|
$(TARGET_DIR)/etc/freerdp/keys/server.crt
|
|
|
|
endef
|
|
|
|
FREERDP_POST_INSTALL_TARGET_HOOKS += FREERDP_INSTALL_KEYS
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(cmake-package))
|