Changeset View
Changeset View
Standalone View
Standalone View
net/tigervnc-server/Makefile
| PORTREVISION= 5 | PORTREVISION= 6 | ||||
| PKGNAMESUFFIX= -server | PKGNAMESUFFIX= -server | ||||
| COMMENT= TigerVNC Server | COMMENT= TigerVNC Server | ||||
| WWW= https://tigervnc.org/ | WWW= https://tigervnc.org/ | ||||
| EXTRA_PATCHES= ${FILESDIR}/xorg-1.21.patch:-p1 \ | EXTRA_PATCHES= ${FILESDIR}/xorg-1.21.patch:-p1 \ | ||||
| ${FILESDIR}/xvnc-adapt-xorg-1.21.patch:-p1 | ${FILESDIR}/xvnc-adapt-xorg-1.21.patch:-p1 | ||||
| PATCH_DEPENDS+= ${NONEXISTENT}:x11-servers/xorg-server:patch | PATCH_DEPENDS+= ${NONEXISTENT}:x11-servers/xorg-server:patch | ||||
| BUILD_DEPENDS+= ${LOCALBASE}/include/GL/internal/dri_interface.h:graphics/mesa-dri \ | BUILD_DEPENDS+= ${LOCALBASE}/include/GL/internal/dri_interface.h:graphics/mesa-dri \ | ||||
| ${LOCALBASE}/libdata/pkgconfig/fontutil.pc:x11-fonts/font-util \ | ${LOCALBASE}/libdata/pkgconfig/fontutil.pc:x11-fonts/font-util \ | ||||
| bash:shells/bash | bash:shells/bash | ||||
| LIB_DEPENDS= libxshmfence.so:x11/libxshmfence \ | LIB_DEPENDS= libxshmfence.so:x11/libxshmfence \ | ||||
| libxcvt.so:x11/libxcvt | libxcvt.so:x11/libxcvt | ||||
| # almost equivalent to x11-servers/xorg-server's | # almost equivalent to x11-servers/xorg-server's | ||||
| RUN_DEPENDS+= ${LOCALBASE}/share/X11/xkb/rules/base:x11/xkeyboard-config \ | RUN_DEPENDS+= ${LOCALBASE}/share/X11/xkb/rules/base:x11/xkeyboard-config \ | ||||
| xkbcomp:x11/xkbcomp | xkbcomp:x11/xkbcomp | ||||
| USES+= autoreconf:build compiler:c11 gl jpeg libtool pkgconfig ssl shebangfix xorg | USES+= autoreconf:build compiler:c11 gl jpeg libtool pkgconfig ssl shebangfix xorg | ||||
| USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
| USE_GL+= gl | USE_GL+= gl | ||||
| USE_XORG+= ice pixman sm x11 xau xdamage xdmcp xext xfixes xfont2 \ | USE_XORG+= ice pixman sm x11 xau xdamage xdmcp xext xfixes xfont2 \ | ||||
| xkbfile xorg-macros xorgproto xrandr xrender xtrans xtst | xkbfile xorg-macros xorgproto xrandr xrender xtrans xtst | ||||
| SHEBANG_LANG= bash | |||||
| SHEBANG_FILES= unix/vncserver/vncsession-start.in | SHEBANG_FILES= unix/vncserver/vncsession-start.in | ||||
| BINARY_WRAPPERS= gm4 | BINARY_WRAPPERS= gm4 | ||||
| OPTIONS_DEFINE= DOCS GNUTLS PAM | OPTIONS_DEFINE= DOCS GNUTLS PAM | ||||
| OPTIONS_DEFAULT= GNUTLS PAM | OPTIONS_DEFAULT= GNUTLS PAM | ||||
| OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
| GNUTLS_CMAKE_BOOL= ENABLE_GNUTLS | GNUTLS_CMAKE_BOOL= ENABLE_GNUTLS | ||||
| GNUTLS_CONFIGURE_ARGS= --enable-glx-tls | GNUTLS_CONFIGURE_ARGS= --enable-glx-tls | ||||
| GNUTLS_LIB_DEPENDS= libtasn1.so:security/libtasn1 \ | GNUTLS_LIB_DEPENDS= libtasn1.so:security/libtasn1 \ | ||||
| libgcrypt.so:security/libgcrypt \ | libgcrypt.so:security/libgcrypt \ | ||||
| libgpg-error.so:security/libgpg-error \ | libgpg-error.so:security/libgpg-error \ | ||||
| libgnutls.so:security/gnutls | libgnutls.so:security/gnutls | ||||
| PAM_CMAKE_BOOL= ENABLE_PAM | PAM_CMAKE_BOOL= ENABLE_PAM | ||||
| CONFIGURE_ARGS+= \ | CONFIGURE_ARGS+= \ | ||||
| --prefix=${PREFIX} --mandir=${PREFIX}/share/man/ \ | --prefix=${PREFIX} --mandir=${MANPREFIX}/share/man \ | ||||
| --docdir=${PREFIX}/share/doc/${PORTNAME}/ --with-pic --without-dtrace \ | --docdir=${PREFIX}/share/doc/${PORTNAME}/ --with-pic --without-dtrace \ | ||||
| --disable-static --disable-dri --disable-unit-tests \ | --disable-static --disable-dri --disable-unit-tests \ | ||||
| --disable-xinerama --disable-xvfb --disable-xnest --disable-xorg \ | --disable-xinerama --disable-xvfb --disable-xnest --disable-xorg \ | ||||
| --disable-dmx --disable-xwin --disable-xephyr --disable-kdrive \ | --disable-dmx --disable-xwin --disable-xephyr --disable-kdrive \ | ||||
| --disable-config-dbus --disable-config-hal \ | --disable-config-dbus --disable-config-hal \ | ||||
| --disable-dri2 --enable-install-libxf86config --enable-glx \ | --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-path=${LOCALBASE}/share/X11/xkb \ | ||||
| --with-xkb-bin-directory=${LOCALBASE}/bin \ | --with-xkb-bin-directory=${LOCALBASE}/bin \ | ||||
| --with-serverconfig-path=${LOCALBASE}/lib/X11 \ | --with-serverconfig-path=${LOCALBASE}/lib/X11 \ | ||||
| --disable-selective-werror \ | --disable-selective-werror \ | ||||
| --disable-xwayland \ | --disable-xwayland \ | ||||
| --with-fontrootdir=${LOCALBASE}/share/fonts | --with-fontrootdir=${LOCALBASE}/share/fonts | ||||
| FONTPATH_ROOT?= ${LOCALBASE}/share/fonts | |||||
| FONTPATHD?= ${PREFIX}/etc/X11/fontpath.d | |||||
| DEFAULT_FONTPATH_LIST= \ | |||||
| ${FONTPATH_ROOT}/misc/ \ | |||||
| ${FONTPATH_ROOT}/TTF/ \ | |||||
| ${FONTPATH_ROOT}/OTF/ \ | |||||
| ${FONTPATH_ROOT}/Type1/ \ | |||||
| ${FONTPATH_ROOT}/100dpi/ \ | |||||
| ${FONTPATH_ROOT}/75dpi/ \ | |||||
| catalogue:${FONTPATHD} | |||||
| CONFIGURE_ARGS+= --with-default-font-path="${DEFAULT_FONTPATH_LIST:ts,}" | |||||
| CFLAGS+= -I${LOCALBASE}/include/libdrm | CFLAGS+= -I${LOCALBASE}/include/libdrm | ||||
| # This is server port, disabling some features | # This is server port, disabling some features | ||||
| # - disable vncviewer | # - disable vncviewer | ||||
| # - server is not internationalized | # - server is not internationalized | ||||
| CMAKE_ARGS+= -DBUILD_VIEWER:BOOL=false -DENABLE_NLS:BOOL=false | CMAKE_ARGS+= -DBUILD_VIEWER:BOOL=false -DENABLE_NLS:BOOL=false | ||||
| TIGERVNC_XORG_PATCH_VER= ${MAKE} -C "${.CURDIR}/../../x11-servers/xorg-server" -V PORTVERSION:R:S,\.,,g | TIGERVNC_XORG_PATCH_VER= ${MAKE} -C "${.CURDIR}/../../x11-servers/xorg-server" -V PORTVERSION:R:S,\.,,g | ||||
| XORG_WRKSRC= ${MAKE} -C ${.CURDIR}/../../x11-servers/xorg-server -VWRKSRC | XORG_WRKSRC= ${MAKE} -C ${.CURDIR}/../../x11-servers/xorg-server -VWRKSRC | ||||
| pre-patch: | pre-patch: | ||||
| @${CP} -R $$(${XORG_WRKSRC})/ ${WRKSRC}/unix/xserver/ | @${CP} -R $$(${XORG_WRKSRC})/ ${WRKSRC}/unix/xserver/ | ||||
| post-patch: | post-patch: | ||||
| # do not build tests | # do not build tests | ||||
| @${REINPLACE_CMD} -e 's|add_subdirectory(tests)||' ${WRKSRC}/CMakeLists.txt | @${REINPLACE_CMD} -e 's|add_subdirectory(tests)||' ${WRKSRC}/CMakeLists.txt | ||||
| @cd ${WRKSRC}/unix/xserver/ && ${PATCH} -p1 < ${FILESDIR}/xserver$$(${TIGERVNC_XORG_PATCH_VER}).patch | @cd ${WRKSRC}/unix/xserver/ && ${PATCH} -p1 < ${FILESDIR}/xserver$$(${TIGERVNC_XORG_PATCH_VER}).patch | ||||
| post-configure: | post-configure: | ||||
| @cd ${WRKSRC}/unix/xserver/ && ${SETENV} ${CONFIGURE_ENV} ${MAKE_ENV} ${AUTORECONF} -fiv | @cd ${WRKSRC}/unix/xserver/ && ${SETENV} ${CONFIGURE_ENV} ${MAKE_ENV} ${AUTORECONF} -fiv | ||||
| @cd ${WRKSRC}/unix/xserver/ && ${SETENV} ${CONFIGURE_ENV} ${MAKE_ENV} ./configure ${CONFIGURE_ARGS} | @cd ${WRKSRC}/unix/xserver/ && ${SETENV} ${CONFIGURE_ENV} ${MAKE_ENV} ./configure ${CONFIGURE_ARGS} | ||||
| post-build: | post-build: | ||||
| @cd ${WRKSRC}/unix/xserver/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} SHELL=${LOCALBASE}/bin/bash | @cd ${WRKSRC}/unix/xserver/ && \ | ||||
| ${DO_MAKE_BUILD} SHELL=${LOCALBASE}/bin/bash ${ALL_TARGET} | |||||
| post-install: | post-install: | ||||
| @cd ${WRKSRC}/unix/xserver/hw/vnc/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install | cd ${WRKSRC}/unix/xserver/hw/vnc/ && \ | ||||
| @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/Xvnc ${STAGEDIR}${PREFIX}/lib/xorg/modules/extensions/libvnc.so | ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install-strip | ||||
| @${INSTALL_SCRIPT} ${FILESDIR}/vncserver.ports ${STAGEDIR}${PREFIX}/bin/vncserver | ${INSTALL_SCRIPT} ${FILESDIR}/vncserver.ports ${STAGEDIR}${PREFIX}/bin/vncserver | ||||
| .include "${.CURDIR}/Makefile.common.mk" | .include "${.CURDIR}/Makefile.common.mk" | ||||
| # import from x11-server/xorg-server/Makefile | # import from x11-server/xorg-server/Makefile | ||||
| .if ${SSL_DEFAULT} == base | .if ${SSL_DEFAULT} == base | ||||
| # The reason why I use this is cause openssl from base doesn't | # 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. | # install a .pc file and configure will fail trying to find it. | ||||
| # Setting both of those variables to a *non-empty* value by-passes | # Setting both of those variables to a *non-empty* value by-passes | ||||
| # the pkg-config check. | # the pkg-config check. | ||||
| CONFIGURE_ENV= SHA1_LIB="-L/usr/lib -lcrypto" SHA1_CFLAGS="-I/usr/include" | CONFIGURE_ENV= SHA1_LIB="-L/usr/lib -lcrypto" SHA1_CFLAGS="-I/usr/include" | ||||
| .endif | .endif | ||||
| # keep in sync with all platforms where libunwind is available | # keep in sync with all platforms where libunwind is available | ||||
| .if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == powerpc64 || ${ARCH} == powerpc64le | .if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == powerpc64 || ${ARCH} == powerpc64le | ||||
| LIB_DEPENDS+= libunwind.so:devel/libunwind | LIB_DEPENDS+= libunwind.so:devel/libunwind | ||||
| .endif | .endif | ||||