Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= tigervnc |
4 |
PORTNAME= tigervnc |
5 |
PORTVERSION= 1.3.0 |
5 |
PORTVERSION= 1.3.0 |
6 |
PORTREVISION= 3 |
6 |
PORTREVISION= 4 |
7 |
CATEGORIES= net x11-servers |
7 |
CATEGORIES= net x11-servers |
8 |
MASTER_SITES= SF:tigervnc |
8 |
MASTER_SITES= SF:tigervnc |
9 |
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}/${PORTVERSION}/:tigervnc |
9 |
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}/${PORTVERSION}/:tigervnc |
Lines 38-48
Link Here
|
38 |
scrnsaverproto videoproto xau xdmcp xext xkbfile xcmiscproto xextproto \ |
38 |
scrnsaverproto videoproto xau xdmcp xext xkbfile xcmiscproto xextproto \ |
39 |
xfont xproto xrandr xtrans xtst xorg-macros |
39 |
xfont xproto xrandr xtrans xtst xorg-macros |
40 |
|
40 |
|
41 |
MAN1+= vncpasswd.1 \ |
|
|
42 |
x0vncserver.1 \ |
43 |
vncserver.1 \ |
44 |
vncconfig.1 \ |
45 |
Xvnc.1 |
46 |
CFLAGS+= -fPIC |
41 |
CFLAGS+= -fPIC |
47 |
|
42 |
|
48 |
OPTIONS_DEFINE= GNUTLS NLS PAM VIEWER HPJPG |
43 |
OPTIONS_DEFINE= GNUTLS NLS PAM VIEWER HPJPG |
Lines 50-59
Link Here
|
50 |
VIEWER_DESC= Build vncviewer |
45 |
VIEWER_DESC= Build vncviewer |
51 |
HPJPG_DESC= Build with High-Performance JPEG support |
46 |
HPJPG_DESC= Build with High-Performance JPEG support |
52 |
|
47 |
|
53 |
NO_STAGE= yes |
|
|
54 |
.include <bsd.port.options.mk> |
48 |
.include <bsd.port.options.mk> |
55 |
|
49 |
|
56 |
CMAKE_ARGS= -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=${PREFIX} |
50 |
CMAKE_ARGS= -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=${STAGE}${PREFIX} |
57 |
|
51 |
|
58 |
.if ${PORT_OPTIONS:MGNUTLS} |
52 |
.if ${PORT_OPTIONS:MGNUTLS} |
59 |
LIB_DEPENDS+= libtasn1.so:${PORTSDIR}/security/libtasn1 \ |
53 |
LIB_DEPENDS+= libtasn1.so:${PORTSDIR}/security/libtasn1 \ |
Lines 82-98
Link Here
|
82 |
.endif |
76 |
.endif |
83 |
|
77 |
|
84 |
.if ${PORT_OPTIONS:MVIEWER} |
78 |
.if ${PORT_OPTIONS:MVIEWER} |
85 |
CMAKE_ARGS+= -DENABLE_VIEWER=1 |
79 |
CMAKE_ARGS+= -DBUILD_VIEWER=1 |
86 |
LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png \ |
80 |
LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png \ |
87 |
libfltk.so:${PORTSDIR}/x11-toolkits/fltk |
81 |
libfltk.so:${PORTSDIR}/x11-toolkits/fltk |
|
|
82 |
# ImageMagick is required to generate icons during build process |
83 |
BUILD_DEPENDS+= ${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick |
88 |
USE_XORG+= xcursor xfixes xft xinerama |
84 |
USE_XORG+= xcursor xfixes xft xinerama |
89 |
MAN1+= vncviewer.1 |
|
|
90 |
PLIST_SUB+= VIEWER="" |
85 |
PLIST_SUB+= VIEWER="" |
91 |
INSTALLS_ICONS= yes |
86 |
INSTALLS_ICONS= yes |
92 |
DESKTOP_ENTRIES= "TigerVNC viewer" "Connect to VNC server and display remote desktop" \ |
87 |
DESKTOP_ENTRIES= "TigerVNC viewer" "Connect to VNC server and display remote desktop" \ |
93 |
"${PREFIX}/share/icons/hicolor/scalable/apps/${PORTNAME}.svg" \ |
88 |
"${PORTNAME}" "vncviewer" "Network;" false |
94 |
"vncviewer" "Network;" false |
|
|
95 |
.else |
89 |
.else |
|
|
90 |
CMAKE_ARGS+= -DBUILD_VIEWER=0 |
96 |
PLIST_SUB+= VIEWER="@comment " |
91 |
PLIST_SUB+= VIEWER="@comment " |
97 |
.endif |
92 |
.endif |
98 |
|
93 |
|
Lines 111-126
Link Here
|
111 |
--disable-dmx --disable-xwin --disable-xephyr --disable-kdrive \ |
106 |
--disable-dmx --disable-xwin --disable-xephyr --disable-kdrive \ |
112 |
--disable-config-dbus --disable-config-hal \ |
107 |
--disable-config-dbus --disable-config-hal \ |
113 |
--disable-dri2 --enable-install-libxf86config --enable-glx \ |
108 |
--disable-dri2 --enable-install-libxf86config --enable-glx \ |
114 |
--with-default-font-path="catalogue:${PREFIX}/share/fonts,built-ins" \ |
109 |
--with-default-font-path="catalogue:${LOCALBASE}/share/fonts,built-ins" \ |
115 |
--with-xkb-path=${PREFIX}/share/X11/xkb \ |
110 |
--with-xkb-path=${LOCALBASE}/share/X11/xkb \ |
116 |
--with-xkb-output=/var/lib/xkb \ |
111 |
--with-xkb-bin-directory=${LOCALBASE}/bin \ |
117 |
--with-xkb-bin-directory=${PREFIX}/bin \ |
112 |
--with-serverconfig-path=${LOCALBASE}/lib/X11 \ |
118 |
--with-serverconfig-path=${PREFIX}/lib/X11 \ |
|
|
119 |
--disable-selective-werror |
113 |
--disable-selective-werror |
120 |
.ifdef WITH_NEW_XORG |
114 |
.ifdef WITH_NEW_XORG |
121 |
CONFIGURE_ARGS+= --with-fontrootdir=${PREFIX}/share/fonts |
115 |
CONFIGURE_ARGS+= --with-fontrootdir=${LOCALBASE}/share/fonts |
122 |
.else |
116 |
.else |
123 |
CONFIGURE_ARGS+= --with-fontdir=${PREFIX}/share/fonts |
117 |
CONFIGURE_ARGS+= --with-fontdir=${LOCALBASE}/share/fonts |
124 |
.endif |
118 |
.endif |
125 |
|
119 |
|
126 |
.include <bsd.port.pre.mk> |
120 |
.include <bsd.port.pre.mk> |
Lines 156-164
Link Here
|
156 |
|
150 |
|
157 |
post-install: |
151 |
post-install: |
158 |
@cd ${WRKSRC}/unix/xserver/hw/vnc/ && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} install |
152 |
@cd ${WRKSRC}/unix/xserver/hw/vnc/ && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} install |
159 |
.if ${PORT_OPTIONS:MVIEWER} |
|
|
160 |
@${MKDIR} ${PREFIX}/share/icons/hicolor/scalable/apps/ |
161 |
@cd ${WRKSRC}/media/ && ${INSTALL_DATA} icons/tigervnc.svg ${PREFIX}/share/icons/hicolor/scalable/apps/ |
162 |
.endif |
163 |
|
153 |
|
164 |
.include <bsd.port.post.mk> |
154 |
.include <bsd.port.post.mk> |