| @@ -1,18 +1,18 @@ | | | @@ -1,18 +1,18 @@ |
1 | # $NetBSD: Makefile,v 1.61 2023/04/19 08:11:13 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.62 2023/06/05 08:29:59 hauke Exp $ |
2 | | | 2 | |
3 | DISTNAME= tigervnc-1.13.1 | | 3 | DISTNAME= tigervnc-1.13.1 |
4 | PKGNAME= ${DISTNAME}.1.20.13 | | 4 | PKGNAME= ${DISTNAME}.1.20.13 |
5 | PKGREVISION= 1 | | 5 | PKGREVISION= 2 |
6 | CATEGORIES= net | | 6 | CATEGORIES= net |
7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=TigerVNC/} | | 7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=TigerVNC/} |
8 | GITHUB_TAG= v1.13.1 | | 8 | GITHUB_TAG= v1.13.1 |
9 | XORG_SERVER_FILE= xorg-server-1.20.13 | | 9 | XORG_SERVER_FILE= xorg-server-1.20.13 |
10 | SITES.${XORG_SERVER_FILE}.tar.xz= ${MASTER_SITE_XORG:=xserver/} | | 10 | SITES.${XORG_SERVER_FILE}.tar.xz= ${MASTER_SITE_XORG:=xserver/} |
11 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${XORG_SERVER_FILE}.tar.xz | | 11 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${XORG_SERVER_FILE}.tar.xz |
12 | | | 12 | |
13 | MAINTAINER= pkgsrc-users@NetBSD.org | | 13 | MAINTAINER= pkgsrc-users@NetBSD.org |
14 | HOMEPAGE= https://tigervnc.org/ | | 14 | HOMEPAGE= https://tigervnc.org/ |
15 | COMMENT= High-performance, platform-neutral VNC client/server | | 15 | COMMENT= High-performance, platform-neutral VNC client/server |
16 | LICENSE= gnu-gpl-v2 | | 16 | LICENSE= gnu-gpl-v2 |
17 | | | 17 | |
18 | BUILD_DEPENDS+= xorg-util-macros-[0-9]*:../../devel/xorg-util-macros | | 18 | BUILD_DEPENDS+= xorg-util-macros-[0-9]*:../../devel/xorg-util-macros |
| @@ -20,101 +20,108 @@ BUILD_DEPENDS+= font-util-[0-9]*:../../f | | | @@ -20,101 +20,108 @@ BUILD_DEPENDS+= font-util-[0-9]*:../../f |
20 | BUILD_DEPENDS+= tradcpp-[0-9]*:../../devel/tradcpp | | 20 | BUILD_DEPENDS+= tradcpp-[0-9]*:../../devel/tradcpp |
21 | | | 21 | |
22 | DEPENDS+= mcookie-[0-9]*:../../x11/mcookie | | 22 | DEPENDS+= mcookie-[0-9]*:../../x11/mcookie |
23 | DEPENDS+= xkeyboard-config-[0-9]*:../../x11/xkeyboard-config | | 23 | DEPENDS+= xkeyboard-config-[0-9]*:../../x11/xkeyboard-config |
24 | | | 24 | |
25 | REPLACE_BASH+= unix/vncserver/vncsession-start.in | | 25 | REPLACE_BASH+= unix/vncserver/vncsession-start.in |
26 | REPLACE_PERL+= unix/vncserver/vncserver.in | | 26 | REPLACE_PERL+= unix/vncserver/vncserver.in |
27 | | | 27 | |
28 | WRKSRC= ${WRKDIR}/${DISTNAME} | | 28 | WRKSRC= ${WRKDIR}/${DISTNAME} |
29 | | | 29 | |
30 | USE_CMAKE= yes | | 30 | USE_CMAKE= yes |
31 | USE_LIBTOOL= yes | | 31 | USE_LIBTOOL= yes |
32 | USE_LANGUAGES= c c++ | | 32 | USE_LANGUAGES= c c++ |
33 | USE_TOOLS+= intltool msgfmt msgmerge patch perl:run autoconf automake autoreconf pkg-config gmake bash:run | | 33 | |
| | | 34 | USE_TOOLS+= intltool msgfmt msgmerge patch |
| | | 35 | USE_TOOLS+= autoconf automake autoreconf pkg-config gmake |
| | | 36 | USE_TOOLS+= perl:run bash:run |
| | | 37 | |
34 | BUILD_DIRS= . unix/xserver | | 38 | BUILD_DIRS= . unix/xserver |
35 | INSTALL_DIRS= . unix/xserver/hw/vnc | | 39 | INSTALL_DIRS= . unix/xserver/hw/vnc |
36 | INSTALL_TARGET= install | | 40 | INSTALL_TARGET= install |
37 | | | 41 | |
38 | CMAKE_ARGS+= -DCMAKE_INSTALL_SYSCONFDIR=${PKG_SYSCONFDIR} | | 42 | # CMake build appends 'tigervnc', so this is not PKG_SYSCONFDIR |
| | | 43 | CMAKE_ARGS+= -DCMAKE_INSTALL_SYSCONFDIR=${PKG_SYSCONFBASE} |
39 | | | 44 | |
40 | # for reallocarray() | | 45 | # for reallocarray() |
41 | CPPFLAGS.NetBSD+= -D_OPENBSD_SOURCE | | 46 | CPPFLAGS.NetBSD+= -D_OPENBSD_SOURCE |
42 | | | 47 | |
43 | CONFIGURE_ENV.SunOS+= ac_cv_func_epoll_create1=no | | 48 | CONFIGURE_ENV.SunOS+= ac_cv_func_epoll_create1=no |
44 | LDFLAGS+= ${BUILDLINK_LDADD.gettext} | | 49 | LDFLAGS+= ${BUILDLINK_LDADD.gettext} |
45 | LDFLAGS.SunOS+= -lsocket -lnsl | | 50 | LDFLAGS.SunOS+= -lsocket -lnsl |
46 | | | 51 | |
47 | CONFIGURE_ENV+= ac_cv_path_RAWCPP="${PREFIX}/bin/tradcpp -Uunix" | | 52 | CONFIGURE_ENV+= ac_cv_path_RAWCPP="${PREFIX}/bin/tradcpp -Uunix" |
48 | OVERRIDE_GNU_CONFIG_SCRIPTS= yes | | 53 | OVERRIDE_GNU_CONFIG_SCRIPTS= yes |
49 | LIBTOOL_OVERRIDE= unix/xserver/libtool | | 54 | LIBTOOL_OVERRIDE= unix/xserver/libtool |
50 | | | 55 | |
51 | SUBST_CLASSES+= hpath | | 56 | SUBST_CLASSES+= hpath |
52 | SUBST_STAGE.hpath= pre-configure | | 57 | SUBST_STAGE.hpath= pre-configure |
53 | SUBST_MESSAGE.hpath= fixing hardcoded paths | | 58 | SUBST_MESSAGE.hpath= fixing hardcoded paths |
54 | SUBST_FILES.hpath= unix/vncserver/vncserver.in | | 59 | SUBST_FILES.hpath= unix/vncserver/vncserver.in |
55 | SUBST_FILES.hpath+= vncserver.pl | | 60 | SUBST_FILES.hpath+= vncserver.pl |
56 | SUBST_SED.hpath+= -e 's|/usr/local/vnc/classes|${PREFIX}/share/vnc/classes|g' | | 61 | SUBST_SED.hpath+= -e 's|/usr/local/vnc/classes|${PREFIX}/share/vnc/classes|g' |
57 | SUBST_VARS.hpath+= PREFIX X11BASE | | 62 | SUBST_VARS.hpath+= PREFIX X11BASE |
58 | | | 63 | |
59 | REPLACE_PERL+= unix/vncserver | | 64 | REPLACE_PERL+= unix/vncserver |
60 | REPLACE_PERL+= vncserver.pl | | 65 | REPLACE_PERL+= vncserver.pl |
61 | | | 66 | |
62 | post-extract: | | 67 | post-extract: |
63 | cd ${WRKDIR} && ${EXTRACTOR} ${_DISTDIR}/${XORG_SERVER_FILE}.tar.xz | | 68 | cd ${WRKDIR} && ${EXTRACTOR} ${_DISTDIR}/${XORG_SERVER_FILE}.tar.xz |
64 | cp -r ${WRKDIR}/${XORG_SERVER_FILE}/* ${WRKSRC}/unix/xserver | | 69 | cp -r ${WRKDIR}/${XORG_SERVER_FILE}/* ${WRKSRC}/unix/xserver |
65 | cp ${FILESDIR}/vncserver.pl ${WRKSRC} | | 70 | cp ${FILESDIR}/vncserver.pl ${WRKSRC} |
66 | | | 71 | |
67 | post-patch: | | 72 | post-patch: |
68 | cd ${WRKSRC}/unix/xserver && ${PATCH} --batch -p1 <../xserver120.patch | | 73 | cd ${WRKSRC}/unix/xserver && ${PATCH} --batch -p1 <../xserver120.patch |
69 | | | 74 | |
70 | # suggested by BUILDING.txt: | | 75 | # suggested by BUILDING.txt: |
71 | #./configure --with-pic --without-dtrace --disable-static --disable-dri \ | | 76 | #./configure --with-pic --without-dtrace --disable-static --disable-dri \ |
72 | # --disable-xinerama --disable-xvfb --disable-xnest --disable-xorg \ | | 77 | # --disable-xinerama --disable-xvfb --disable-xnest --disable-xorg \ |
73 | # --disable-dmx --disable-xwin --disable-xephyr --disable-kdrive \ | | 78 | # --disable-dmx --disable-xwin --disable-xephyr --disable-kdrive \ |
74 | # --disable-config-dbus --disable-config-hal --disable-config-udev \ | | 79 | # --disable-config-dbus --disable-config-hal --disable-config-udev \ |
75 | # --disable-dri2 --enable-install-libxf86config --enable-glx \ | | 80 | # --disable-dri2 --enable-install-libxf86config --enable-glx \ |
76 | # --with-default-font-path="catalogue:/etc/X11/fontpath.d,built-ins" \ | | 81 | # --with-default-font-path="catalogue:/etc/X11/fontpath.d,built-ins" \ |
77 | # --with-fontdir=/usr/share/X11/fonts \ | | 82 | # --with-fontdir=/usr/share/X11/fonts \ |
78 | # --with-xkb-path=/usr/share/X11/xkb \ | | 83 | # --with-xkb-path=/usr/share/X11/xkb \ |
79 | # --with-xkb-output=/var/lib/xkb \ | | 84 | # --with-xkb-output=/var/lib/xkb \ |
80 | # --with-xkb-bin-directory=/usr/bin \ | | 85 | # --with-xkb-bin-directory=/usr/bin \ |
81 | # --with-serverconfig-path=/usr/lib[64]/xorg \ | | 86 | # --with-serverconfig-path=/usr/lib[64]/xorg \ |
82 | # --with-dri-driver-path=/usr/lib[64]/dri \ | | 87 | # --with-dri-driver-path=/usr/lib[64]/dri \ |
83 | # {additional configure options} | | 88 | # {additional configure options} |
84 | | | 89 | |
85 | XORG_CONFIGURE_ARGS+= --prefix=${PREFIX} --mandir=${PREFIX}/${PKGMANDIR} | | 90 | XORG_CONFIGURE_ARGS+= --prefix=${PREFIX} --mandir=${PREFIX}/${PKGMANDIR} |
| | | 91 | # PKG_SYSCONFDIR will be tigervnc-specifiv |
| | | 92 | XORG_CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE} |
86 | XORG_CONFIGURE_ARGS+= --disable-xwayland --disable-kdrive --disable-xephyr | | 93 | XORG_CONFIGURE_ARGS+= --disable-xwayland --disable-kdrive --disable-xephyr |
87 | XORG_CONFIGURE_ARGS+= --disable-static --disable-xinerama --without-dtrace | | 94 | XORG_CONFIGURE_ARGS+= --disable-static --disable-xinerama --without-dtrace |
88 | XORG_CONFIGURE_ARGS+= --disable-xorg --disable-xnest --disable-xvfb --disable-dmx | | 95 | XORG_CONFIGURE_ARGS+= --disable-xorg --disable-xnest --disable-xvfb --disable-dmx |
89 | XORG_CONFIGURE_ARGS+= --disable-config-hal --disable-config-udev --with-pic | | 96 | XORG_CONFIGURE_ARGS+= --disable-config-hal --disable-config-udev --with-pic |
90 | XORG_CONFIGURE_ARGS+= --disable-unit-tests --disable-devel-docs --disable-selective-werror | | 97 | XORG_CONFIGURE_ARGS+= --disable-unit-tests --disable-devel-docs --disable-selective-werror |
91 | XORG_CONFIGURE_ARGS+= --disable-dri --enable-dri2 --disable-dri3 --enable-glx --enable-glx-tls | | 98 | XORG_CONFIGURE_ARGS+= --disable-dri --enable-dri2 --disable-dri3 --enable-glx --enable-glx-tls |
92 | | | 99 | |
93 | EGDIR= share/examples/tigervnc | | 100 | EGDIR= share/examples/tigervnc |
94 | INSTALLATION_DIRS+= ${EGDIR} | | 101 | INSTALLATION_DIRS+= ${EGDIR} |
95 | MAKE_DIRS+= ${PKG_SYSCONFDIR}/pam.d | | 102 | |
96 | MAKE_DIRS+= ${PKG_SYSCONFDIR}/tigervnc | | 103 | PKG_SYSCONFSUBDIR= tigervnc |
97 | CONF_FILES+= ${EGDIR}/tigervnc ${PKG_SYSCONFDIR}/pam.d/tigervnc | | 104 | |
98 | CONF_FILES+= ${EGDIR}/vncserver-config-defaults ${PKG_SYSCONFDIR}/tigervnc/vncserver-config-defaults | | 105 | CONF_FILES+= ${EGDIR}/vncserver-config-defaults ${PKG_SYSCONFDIR}/vncserver-config-defaults |
99 | CONF_FILES+= ${EGDIR}/vncserver-config-mandatory ${PKG_SYSCONFDIR}/tigervnc/vncserver-config-mandatory | | 106 | CONF_FILES+= ${EGDIR}/vncserver-config-mandatory ${PKG_SYSCONFDIR}/vncserver-config-mandatory |
100 | CONF_FILES+= ${EGDIR}/vncserver.users ${PKG_SYSCONFDIR}/tigervnc/vncserver.users | | 107 | CONF_FILES+= ${EGDIR}/vncserver.users ${PKG_SYSCONFDIR}/vncserver.users |
101 | | | 108 | |
102 | post-install: | | 109 | post-install: |
103 | ${INSTALL_SCRIPT} ${WRKSRC}/vncserver.pl ${DESTDIR}${PREFIX}/bin/vncserver | | 110 | ${INSTALL_SCRIPT} ${WRKSRC}/vncserver.pl ${DESTDIR}${PREFIX}/bin/vncserver |
104 | ${MV} ${DESTDIR}${PREFIX}/etc/pam.d/tigervnc ${DESTDIR}${PREFIX}/${EGDIR} | | 111 | ${INSTALL_DATA} ${WRKSRC}/unix/vncserver/tigervnc.pam ${DESTDIR}${PREFIX}/${EGDIR} |
105 | ${MV} ${DESTDIR}${PREFIX}/etc/tigervnc/vncserver-config-defaults ${DESTDIR}${PREFIX}/${EGDIR} | | 112 | ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/vncserver-config-defaults ${DESTDIR}${PREFIX}/${EGDIR} |
106 | ${MV} ${DESTDIR}${PREFIX}/etc/tigervnc/vncserver-config-mandatory ${DESTDIR}${PREFIX}/${EGDIR} | | 113 | ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/vncserver-config-mandatory ${DESTDIR}${PREFIX}/${EGDIR} |
107 | ${MV} ${DESTDIR}${PREFIX}/etc/tigervnc/vncserver.users ${DESTDIR}${PREFIX}/${EGDIR} | | 114 | ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/vncserver.users ${DESTDIR}${PREFIX}/${EGDIR} |
108 | | | 115 | |
109 | .include "../../mk/bsd.prefs.mk" | | 116 | .include "../../mk/bsd.prefs.mk" |
110 | | | 117 | |
111 | .if ${X11_TYPE} != "modular" | | 118 | .if ${X11_TYPE} != "modular" |
112 | # when using native X, tigervnc server can't find xkb rules or xkbcomp without the following: | | 119 | # when using native X, tigervnc server can't find xkb rules or xkbcomp without the following: |
113 | XORG_CONFIGURE_ARGS+= --with-xkb-path=${X11BASE}/lib/X11/xkb | | 120 | XORG_CONFIGURE_ARGS+= --with-xkb-path=${X11BASE}/lib/X11/xkb |
114 | XORG_CONFIGURE_ARGS+= --with-xkb-bin-directory=${X11BASE}/bin | | 121 | XORG_CONFIGURE_ARGS+= --with-xkb-bin-directory=${X11BASE}/bin |
115 | .else | | 122 | .else |
116 | DEPENDS+= xkbcomp-[0-9]*:../../x11/xkbcomp | | 123 | DEPENDS+= xkbcomp-[0-9]*:../../x11/xkbcomp |
117 | .endif | | 124 | .endif |
118 | | | 125 | |
119 | pre-configure: | | 126 | pre-configure: |
120 | cd ${WRKSRC}/unix/xserver && \ | | 127 | cd ${WRKSRC}/unix/xserver && \ |