summaryrefslogtreecommitdiff
path: root/package/x11vnc/Makefile
blob: dce2d013970c458337b0cb2d3b654ae14473e46c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		x11vnc
PKG_VERSION:=		0.9.16
PKG_RELEASE:=		1
PKG_HASH:=		885e5b5f5f25eec6f9e4a1e8be3d0ac71a686331ee1cfb442dba391111bd32bd
PKG_DESCR:=		vnc server for x11 displays
PKG_SECTION:=		x11/apps
PKG_DEPENDS:=		libvncserver libpng libjpeg-turbo zlib liblzo
PKG_DEPENDS+=		libgnutls libxi libxdamage libxtst cairo
PKG_DEPENDS+=		libxfixes libxrandr
PKG_BUILDDEP:=		libX11 libXtst libjpeg-turbo libvncserver
PKG_URL:=		http://www.karlrunge.com/x11vnc/
PKG_SITES:=		https://github.com/LibVNC/x11vnc/archive/refs/tags/

DISTFILES:=		${PKG_VERSION}.tar.gz

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,X11VNC,x11vnc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

ifeq ($(ADK_TARGET_USE_STATIC_LIBS_ONLY),y)
MAKE_FLAGS+=		CFLAGS="${TARGET_CFLAGS} -static" \
			LIBS="-lxcb -lXau -lXdmcp -ldl -pthread -ljpeg -lz"
endif

AUTOTOOL_STYLE:=	autoreconf
CONFIGURE_ARGS+=	--without-ssl \
			--without-crypto

x11vnc-install:
	$(INSTALL_DIR) $(IDIR_X11VNC)/usr/bin
	$(INSTALL_BIN) $(WRKINST)/usr/bin/x11vnc \
		$(IDIR_X11VNC)/usr/bin

include ${ADK_TOPDIR}/mk/pkg-bottom.mk