easy-rsa: update to 3.2.1
[oi-userland.git] / components / library / libvncserver / Makefile
blobe2814ecabe7de643f8b087a9fa35bec6be0fbdc1
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 2018 Harry Liebel
13 # Copyright 2023 Andreas Wacknitz
16 BUILD_BITS= 64
17 BUILD_STYLE= cmake
18 OPENSSL_VERSION= 3.1
19 USE_DEFAULT_TEST_TRANSFORMS= yes
20 include ../../../make-rules/shared-macros.mk
22 COMPONENT_NAME= libvncserver
23 COMPONENT_VERSION= 0.9.14
24 COMPONENT_SUMMARY= VNC server and client C libraries
25 COMPONENT_DESCRIPTION= LibVNCServer/LibVNCClient are cross-platform C libraries that allow you to easily implement VNC server or client functionality in your program.
26 COMPONENT_PROJECT_URL= https://libvnc.github.io
27 COMPONENT_SRC= $(COMPONENT_NAME)-LibVNCServer-$(COMPONENT_VERSION)
28 COMPONENT_ARCHIVE= LibVNCServer-$(COMPONENT_VERSION).tar.gz
29 COMPONENT_ARCHIVE_HASH= sha256:83104e4f7e28b02f8bf6b010d69b626fae591f887e949816305daebae527c9a5
30 COMPONENT_ARCHIVE_URL= https://github.com/LibVNC/$(COMPONENT_NAME)/archive/$(COMPONENT_ARCHIVE)
31 COMPONENT_FMRI= library/libvncserver
32 COMPONENT_CLASSIFICATION= Development/C
33 COMPONENT_LICENSE= GPLv2
34 COMPONENT_LICENSE_FILE= COPYING
36 include $(WS_MAKE_RULES)/common.mk
38 LDFLAGS += -lsocket -lnsl
40 CFLAGS += -I$(OPENSSL_INCDIR)
41 LDFLAGS += -L$(OPENSSL_LIBDIR)
43 # build with the system default libjpeg
44 CFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CFLAGS)
45 CXXFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CXXFLAGS)
46 CPPFLAGS += $(JPEG_CPPFLAGS)
47 LDFLAGS += $(JPEG_LDFLAGS)
49 # Needed to find the correct jpeg libs
50 CMAKE_OPTIONS += -DJPEG_INCLUDE_DIR=$(JPEG_INCDIR)
51 CMAKE_OPTIONS += -DJPEG_LIBRARY=$(JPEG_LIBDIR)/libjpeg.so
52 # We prefer openssl over gnutls
53 CMAKE_OPTIONS += -DWITH_GNUTLS=OFF
55 # Auto-generated dependencies
56 REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
57 REQUIRED_PACKAGES += image/library/libpng16
58 REQUIRED_PACKAGES += library/lzo
59 REQUIRED_PACKAGES += library/security/openssl-31
60 REQUIRED_PACKAGES += library/zlib
61 REQUIRED_PACKAGES += system/library
62 REQUIRED_PACKAGES += system/library/security/libgcrypt