blob: 22fc83a64fc03f5fd74c8961461755960940a801 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001DESCRIPTION = "library for easy implementation of a RDP/VNC server"
2HOMEPAGE = "https://libvnc.github.io"
3SECTION = "libs"
4PRIORITY = "optional"
5LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://COPYING;md5=361b6b837cad26c6900a926b62aada5f"
7
8PACKAGECONFIG ??= " \
Brad Bishope42b3e32020-01-15 22:08:42 -05009 24bpp \
10 filetransfer \
11 ${@bb.utils.contains('LICENSE_FLAGS_WHITELIST','commercial','ffmpeg','',d)} \
Brad Bishop19323692019-04-05 15:28:33 -040012 gcrypt \
13 gnutls \
14 jpeg \
15 lzo \
16 png \
Brad Bishope42b3e32020-01-15 22:08:42 -050017 pthread \
Brad Bishop19323692019-04-05 15:28:33 -040018 ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)} \
Brad Bishope42b3e32020-01-15 22:08:42 -050019 ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '',d)} \
20 sasl \
Brad Bishop19323692019-04-05 15:28:33 -040021 sdl \
Brad Bishope42b3e32020-01-15 22:08:42 -050022 websockets \
Brad Bishop19323692019-04-05 15:28:33 -040023 zlib \
24"
Brad Bishope42b3e32020-01-15 22:08:42 -050025
26PACKAGECONFIG[24bpp] = "-DWITH_24BPP=ON,-DWITH_24BPP=OFF,"
27PACKAGECONFIG[filetransfer] = "-DWITH_TIGHTVNC_FILETRANSFER=ON,-DWITH_TIGHTVNC_FILETRANSFER=OFF,"
28PACKAGECONFIG[ffmpeg] = "-DWITH_FFMPEG=ON,-DWITH_FFMPEG=OFF,ffmpeg,ffmpeg"
Brad Bishop19323692019-04-05 15:28:33 -040029PACKAGECONFIG[gcrypt] = "-DWITH_GCRYPT=ON,-DWITH_GCRYPT=OFF,libgcrypt,libgcrypt"
30PACKAGECONFIG[gnutls] = "-DWITH_GNUTLS=ON,-DWITH_GNUTLS=OFF,gnutls"
31PACKAGECONFIG[jpeg] = "-DWITH_JPEG=ON,-DWITH_JPEG=OFF,jpeg"
Brad Bishope42b3e32020-01-15 22:08:42 -050032PACKAGECONFIG[ipv6] = "-DWITH_IPv6=ON,-DWITH_IPv6=OFF,"
Brad Bishop19323692019-04-05 15:28:33 -040033PACKAGECONFIG[lzo] = "-DWITH_LZO=ON,-DWITH_LZO=OFF,lzo"
34PACKAGECONFIG[openssl] = "-DWITH_OPENSSL=ON,-DWITH_OPENSSL=OFF,openssl"
35PACKAGECONFIG[png] = "-DWITH_PNG=ON,-DWITH_PNG=OFF,libpng,libpng"
Brad Bishope42b3e32020-01-15 22:08:42 -050036PACKAGECONFIG[pthread] = "-DWITH_THREADS=ON,-DWITH_THREADS=OFF,"
Brad Bishop19323692019-04-05 15:28:33 -040037PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF,systemd"
Brad Bishope42b3e32020-01-15 22:08:42 -050038PACKAGECONFIG[sasl] = "-DWITH_SASL=ON,-DWITH_SASL=OFF,cyrus-sasl"
Brad Bishop19323692019-04-05 15:28:33 -040039PACKAGECONFIG[sdl] = "-DWITH_SDL=ON,-DWITH_SDL=OFF,libsdl2"
Brad Bishope42b3e32020-01-15 22:08:42 -050040PACKAGECONFIG[websockets] = "-DWITH_WEBSOCKETS=ON,-DWITH_WEBSOCKETS=OFF,"
Brad Bishop19323692019-04-05 15:28:33 -040041PACKAGECONFIG[zlib] = "-DWITH_ZLIB=ON,-DWITH_ZLIB=OFF,zlib"
42
Brad Bishop34ae6002019-04-08 15:21:03 -040043PACKAGE_BEFORE_PN = "libvncclient"
44FILES_libvncclient = "${libdir}/libvncclient.*"
45
Brad Bishop19323692019-04-05 15:28:33 -040046inherit cmake
47
48SRC_URI = "git://github.com/LibVNC/libvncserver"
Brad Bishop26bdd442019-08-16 17:08:17 -040049SRCREV = "1354f7f1bb6962dab209eddb9d6aac1f03408110"
50PV .= "+git${SRCPV}"
Brad Bishop19323692019-04-05 15:28:33 -040051
52S = "${WORKDIR}/git"
Brad Bishop26bdd442019-08-16 17:08:17 -040053
54EXTRA_OECMAKE = "-DMAKE_INSTALL_LIBDIR=${libdir}"