python/hypothesis: update to 6.122.3
[oi-userland.git] / components / desktop / freerdp / Makefile
blob4fb3ce573e3bb0239496210c4466aad5fe47672a
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2019 Michal Nowak
13 # Copyright 2020 Marco van Wieringen
14 # Copyright 2023 Niklas Poslovski
17 BUILD_BITS= 64
18 BUILD_STYLE= cmake
19 OPENSSL_VERSION= 3.1
20 include ../../../make-rules/shared-macros.mk
22 COMPONENT_NAME= freerdp
23 COMPONENT_VERSION= 2.11.7
24 COMPONENT_SUMMARY= Remote Desktop Viewer Client
25 COMPONENT_PROJECT_URL= https://www.freerdp.com
26 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
27 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
28 COMPONENT_ARCHIVE_HASH= sha256:5a2d54e1ca0f1facd1632bcc94c73b9f071a80c5fdbbb3f26e79f02aaa586ca3
29 COMPONENT_ARCHIVE_URL= https://github.com/FreeRDP/FreeRDP/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
30 COMPONENT_FMRI= desktop/remote-desktop/freerdp
31 COMPONENT_CLASSIFICATION= Applications/Internet
32 COMPONENT_LICENSE= Apache v2.0
33 COMPONENT_LICENSE_FILE= LICENSE
35 TEST_TARGET= $(NO_TESTS)
36 include $(WS_MAKE_RULES)/common.mk
38 # https://github.com/FreeRDP/FreeRDP/issues/5504
39 CFLAGS += $(XPG6MODE)
41 CFLAGS += -I$(OPENSSL_INCDIR)
42 LDFLAGS += -L$(OPENSSL_LIBDIR)
44 ifeq ($(strip $(MACH)),i386)
45 CMAKE_OPTIONS += -DWITH_SSE2=ON
46 else
47 CMAKE_OPTIONS += -DWITH_SSE2=OFF
48 endif
50 CMAKE_OPTIONS += -DCMAKE_SKIP_RPATH=ON
51 CMAKE_OPTIONS += -DWITH_ALSA=OFF
52 CMAKE_OPTIONS += -DWITH_CAIRO=ON
53 CMAKE_OPTIONS += -DWITH_PCSC=OFF
54 CMAKE_OPTIONS += -DWITH_CUPS=ON
55 CMAKE_OPTIONS += -DWITH_PULSE=ON
56 CMAKE_OPTIONS += -DWITH_OSS=OFF
57 CMAKE_OPTIONS += -DWITH_LIBRARY_VERSIONING=ON
58 CMAKE_OPTIONS += -DWITH_OPENSSL=ON
59 CMAKE_OPTIONS += -DWITH_LIBSYSTEMD=OFF
60 CMAKE_OPTIONS += -DWITH_CLIENT=ON
61 CMAKE_OPTIONS += -DWITH_SERVER=ON
62 CMAKE_OPTIONS += -DCHANNEL_GEOMETRY=ON
63 CMAKE_OPTIONS += -DWITH_CHANNELS=ON
64 CMAKE_OPTIONS += -DBUILTIN_CHANNELS=OFF
65 CMAKE_OPTIONS += -DWITH_DIRECTFB=OFF
66 CMAKE_OPTIONS += -DWITH_GSTREAMER_1_0=ON
67 CMAKE_OPTIONS += -DWITH_GSTREAMER_0_10=OFF
68 CMAKE_OPTIONS += -DWITH_ICU=ON
69 CMAKE_OPTIONS += -DWITH_IPP=OFF
70 CMAKE_OPTIONS += -DWITH_JPEG=ON
71 CMAKE_OPTIONS += -DWITH_LAME=ON
72 CMAKE_OPTIONS += -DWITH_MANPAGES=ON
73 CMAKE_OPTIONS += -DWITH_ZLIB=ON
74 CMAKE_OPTIONS += -DWITH_X11=ON
75 CMAKE_OPTIONS += -DWITH_XCURSOR=ON
76 CMAKE_OPTIONS += -DWITH_XEXT=ON
77 CMAKE_OPTIONS += -DWITH_XKBFILE=ON
78 CMAKE_OPTIONS += -DWITH_XI=ON
79 CMAKE_OPTIONS += -DWITH_XINERAMA=ON
80 CMAKE_OPTIONS += -DWITH_XRENDER=ON
81 CMAKE_OPTIONS += -DWITH_WAYLAND=OFF
82 CMAKE_OPTIONS += -DWITH_XV=ON
84 # dependencies on encumbered packages
85 CMAKE_OPTIONS += -DWITH_GSM=OFF
86 CMAKE_OPTIONS += -DWITH_X264=OFF
87 CMAKE_OPTIONS += -DWITH_OPENH264=OFF
88 CMAKE_OPTIONS += -DWITH_FFMPEG=OFF
90 # https://github.com/FreeRDP/FreeRDP/issues/4348
91 # GSS API is not detected correctly anyway
92 CMAKE_OPTIONS += -DWITH_KRB5=ON
93 CMAKE_OPTIONS += -DWITH_GSSAPI=OFF
95 LIBFREERDP2_LIBDIR = /usr/lib/$(MACH64)/freerdp2
97 COMPONENT_POST_INSTALL_ACTION = \
98 for file in $(PROTO_DIR)/usr/bin/freerdp-proxy $(PROTO_DIR)/usr/lib/$(MACH64)/freerdp2/liburbdrc-client-libusb.so; do \
99 /usr/bin/elfedit -e 'dyn:value -s RUNPATH "$(GCC_LIBDIR):$(LIBFREERDP2_LIBDIR)"' $$file ; \
100 /usr/bin/elfedit -e 'dyn:value -s RPATH "$(GCC_LIBDIR):$(LIBFREERDP2_LIBDIR)"' $$file ; \
101 done ;
103 # Auto-generated dependencies
104 REQUIRED_PACKAGES += $(ICU_LIBRARY_PKG)
105 REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
106 REQUIRED_PACKAGES += $(OPENSSL_PKG)
107 REQUIRED_PACKAGES += audio/lame
108 REQUIRED_PACKAGES += image/library/libjpeg-turbo
109 REQUIRED_PACKAGES += library/audio/pulseaudio
110 REQUIRED_PACKAGES += library/desktop/cairo
111 REQUIRED_PACKAGES += library/libusb-1
112 REQUIRED_PACKAGES += library/print/cups-libs
113 REQUIRED_PACKAGES += system/library
114 REQUIRED_PACKAGES += system/library/math
115 REQUIRED_PACKAGES += x11/library/libx11
116 REQUIRED_PACKAGES += x11/library/libxcursor
117 REQUIRED_PACKAGES += x11/library/libxdamage
118 REQUIRED_PACKAGES += x11/library/libxext
119 REQUIRED_PACKAGES += x11/library/libxfixes
120 REQUIRED_PACKAGES += x11/library/libxi
121 REQUIRED_PACKAGES += x11/library/libxinerama
122 REQUIRED_PACKAGES += x11/library/libxkbfile
123 REQUIRED_PACKAGES += x11/library/libxrandr
124 REQUIRED_PACKAGES += x11/library/libxrender
125 REQUIRED_PACKAGES += x11/library/libxtst