2016-07-08 03:04:00 +02:00
|
|
|
# Created by: Koichiro IWAO <meta+ports@vmeta.jp>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tigervnc
|
2017-05-20 12:07:19 +02:00
|
|
|
PORTVERSION= 1.7.90
|
2016-07-08 03:04:00 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
|
|
|
CATEGORIES= net x11-servers
|
|
|
|
PKGNAMESUFFIX= -devel
|
|
|
|
|
2016-07-08 07:00:36 +02:00
|
|
|
MAINTAINER= meta+ports@vmeta.jp
|
2016-07-08 03:04:00 +02:00
|
|
|
COMMENT= High-performance, platform-neutral implementation of VNC
|
|
|
|
|
|
|
|
LICENSE= GPLv2+
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENCE.TXT
|
|
|
|
|
|
|
|
PATCH_DEPENDS= ${NONEXISTENT}:x11-servers/xorg-server:patch
|
Consolidate the Mesa ports, update to 17.0.4, and add Wayland option
* libGL, libEGL, libglesv2, libglapi, and gbm have been moved into mesa-libs,
graphics/dri has been renamed to mesa-dri, and USE_GL has been adjusted
* mesa-libs has a new WAYLAND option that enables platform support in libEGL
* mesa-dri now depends on graphics/s2tc for compressed texture support [1]
* re-remove obsolete dependency on makedepends [2]
* correct sed fix backported from 17.1 [3]
PR: 218799 (exp-run), 212762 [1], 218552 [2], 218562 [3]
Submitted by: dbn [1], jbeich [2,3]
Reported by: afiskon@devzen.ru [1]
Reviewed by: kwm, johalun0@gmail.com
Approved by: portmgr, swills (mentor)
Differential Revision: https://reviews.freebsd.org/D10448
2017-05-12 20:46:53 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/GL/internal/dri_interface.h:graphics/mesa-dri \
|
2016-07-08 03:04:00 +02:00
|
|
|
${LOCALBASE}/libdata/pkgconfig/fontutil.pc:x11-fonts/font-util \
|
2017-05-20 12:07:19 +02:00
|
|
|
${LOCALBASE}/include/FL/Fl.H:x11-toolkits/fltk \
|
2016-07-08 03:04:00 +02:00
|
|
|
bash:shells/bash
|
2017-05-27 01:03:53 +02:00
|
|
|
LIB_DEPENDS= libunwind.so:devel/libunwind \
|
|
|
|
libxshmfence.so:x11/libxshmfence \
|
|
|
|
libfontconfig.so:x11-fonts/fontconfig
|
2016-07-08 03:04:00 +02:00
|
|
|
# almost equivalent to x11-servers/xorg-server's
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/X11/xkb/rules/base:x11/xkeyboard-config \
|
|
|
|
xkbcomp:x11/xkbcomp
|
|
|
|
|
2016-07-09 06:20:22 +02:00
|
|
|
CONFLICTS= tigervnc-[0-9]* \
|
2016-07-08 03:04:00 +02:00
|
|
|
tightvnc-[0-9]* \
|
2017-05-27 01:03:53 +02:00
|
|
|
tridiavnc-[0-9]*
|
2016-07-08 03:04:00 +02:00
|
|
|
|
2016-12-11 09:25:56 +01:00
|
|
|
USES= autoreconf:build cmake cpe iconv jpeg libtool pkgconfig \
|
2016-07-09 06:20:22 +02:00
|
|
|
python ssl
|
2016-07-08 03:04:00 +02:00
|
|
|
USE_GL= gl
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= TigerVNC
|
|
|
|
|
|
|
|
USE_XORG+= bigreqsproto compositeproto damageproto fixesproto fontsproto glproto \
|
2016-07-09 06:20:22 +02:00
|
|
|
ice inputproto kbproto pixman presentproto randrproto renderproto \
|
|
|
|
resourceproto scrnsaverproto sm videoproto x11 xau xcmiscproto xdamage \
|
|
|
|
xdmcp xext xextproto xfont xkbfile xorg-macros xproto xrandr xrender \
|
|
|
|
xtrans xtst
|
2016-07-08 03:04:00 +02:00
|
|
|
|
|
|
|
CFLAGS+= -fPIC
|
|
|
|
|
2017-05-27 01:03:53 +02:00
|
|
|
IGNORE= no development version available right now. Please use net/tigervnc instead
|
|
|
|
|
2016-07-08 03:04:00 +02:00
|
|
|
OPTIONS_DEFINE= GNUTLS NLS PAM VIEWER DOCS
|
|
|
|
OPTIONS_DEFAULT= GNUTLS PAM VIEWER
|
|
|
|
VIEWER_DESC= Build vncviewer
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
CMAKE_ARGS= -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=${STAGE}${PREFIX}
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MGNUTLS}
|
|
|
|
LIB_DEPENDS+= libtasn1.so:security/libtasn1 \
|
|
|
|
libgcrypt.so:security/libgcrypt \
|
|
|
|
libgpg-error.so:security/libgpg-error \
|
|
|
|
libgnutls.so:security/gnutls
|
|
|
|
CONFIGURE_ARGS+= --enable-glx-tls
|
|
|
|
CMAKE_ARGS+= -DENABLE_GNUTLS=1
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DENABLE_GNUTLS=0
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
|
|
USES+= gettext
|
|
|
|
CMAKE_ARGS+= -DENABLE_NLS=1
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DENABLE_NLS=0
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MPAM}
|
|
|
|
CMAKE_ARGS+= -DENABLE_PAM=1
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DENABLE_PAM=0
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MVIEWER}
|
|
|
|
CMAKE_ARGS+= -DBUILD_VIEWER=1
|
|
|
|
LIB_DEPENDS+= libpng.so:graphics/png \
|
|
|
|
libfltk.so:x11-toolkits/fltk
|
|
|
|
# ImageMagick is required to generate icons during build process
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/convert:graphics/ImageMagick
|
|
|
|
USE_XORG+= xcursor xfixes xft xinerama
|
|
|
|
PLIST_SUB+= VIEWER=""
|
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
DESKTOP_ENTRIES= "TigerVNC viewer" "Connect to VNC server and display remote desktop" \
|
|
|
|
"${PORTNAME}" "vncviewer" "Network;" false
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DBUILD_VIEWER=0
|
|
|
|
PLIST_SUB+= VIEWER="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MAKE_ARGS+= TIGERVNC_SRCDIR=${WRKSRC}
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--prefix=${PREFIX} --mandir=${PREFIX}/man/ \
|
|
|
|
--docdir=${PREFIX}/share/doc/${PORTNAME}/ --with-pic --without-dtrace \
|
|
|
|
--disable-static --disable-dri --disable-unit-tests \
|
|
|
|
--disable-xinerama --disable-xvfb --disable-xnest --disable-xorg \
|
|
|
|
--disable-dmx --disable-xwin --disable-xephyr --disable-kdrive \
|
|
|
|
--disable-config-dbus --disable-config-hal \
|
|
|
|
--disable-dri2 --enable-install-libxf86config --enable-glx \
|
|
|
|
--with-default-font-path="catalogue:${LOCALBASE}/share/fonts,built-ins" \
|
|
|
|
--with-xkb-path=${LOCALBASE}/share/X11/xkb \
|
|
|
|
--with-xkb-bin-directory=${LOCALBASE}/bin \
|
|
|
|
--with-serverconfig-path=${LOCALBASE}/lib/X11 \
|
|
|
|
--disable-selective-werror \
|
2017-05-20 12:07:19 +02:00
|
|
|
--disable-xwayland \
|
2016-07-08 03:04:00 +02:00
|
|
|
--with-fontrootdir=${LOCALBASE}/share/fonts
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2017-05-20 12:07:19 +02:00
|
|
|
TIGERVNC_XORG_PATCH_VER= 118
|
2016-07-08 03:04:00 +02:00
|
|
|
|
|
|
|
# import from x11-server/xorg-server/Makefile
|
|
|
|
.if ${SSL_DEFAULT} == base
|
|
|
|
# The reason why I use this is cause openssl from base doesn't
|
|
|
|
# install a .pc file and configure will fail trying to find it.
|
|
|
|
# Setting both of those variables to a *non-empty* value by-passes
|
|
|
|
# the pkg-config check.
|
|
|
|
CONFIGURE_ENV= SHA1_LIB="-L/usr/lib -lcrypto" SHA1_CFLAGS="-I/usr/include"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
XORG_WRKDIR= ${MAKE} -C ${PORTSDIR}/x11-servers/xorg-server -VWRKSRC
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
@${CP} -R `${XORG_WRKDIR}`/ ${WRKSRC}/unix/xserver/
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@cd ${WRKSRC}/unix/xserver/ && ${PATCH} -p1 < ${WRKSRC}/unix/xserver${TIGERVNC_XORG_PATCH_VER}.patch
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@cd ${WRKSRC}/unix/xserver/ && ${SETENV} ${CONFIGURE_ENV} ${MAKE_ENV} ${AUTORECONF} -fiv
|
|
|
|
@cd ${WRKSRC}/unix/xserver/ && ${SETENV} ${CONFIGURE_ENV} ${MAKE_ENV} ./configure ${CONFIGURE_ARGS}
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC}/unix/xserver/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} SHELL=${LOCALBASE}/bin/bash
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@cd ${WRKSRC}/unix/xserver/hw/vnc/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install
|
2016-10-05 17:38:16 +02:00
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/Xvnc ${STAGEDIR}${PREFIX}/lib/xorg/modules/extensions/libvnc.so
|
2016-07-08 03:04:00 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|