blob: 9071f5e16efec1d001601422bc2455db51a60a82 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# $NetBSD: Makefile,v 1.6 2015/06/12 10:50:53 wiz Exp $
DISTNAME= tigervnc-1.3.1
PKGREVISION= 3
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tigervnc/}
XORG_SERVER_FILE= xorg-server-1.12.4
SITES.${XORG_SERVER_FILE}.tar.bz2= ${MASTER_SITE_XORG:=xserver/}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${XORG_SERVER_FILE}.tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://tigervnc.org/
COMMENT= High-performance, platform-neutral VNC client/server
LICENSE= gnu-gpl-v2
BUILD_DEPENDS+= xorg-util-macros-[0-9]*:../../devel/xorg-util-macros
BUILD_DEPENDS+= font-util-[0-9]*:../../fonts/font-util
BUILD_DEPENDS+= tradcpp-[0-9]*:../../devel/tradcpp
USE_CMAKE= yes
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
USE_TOOLS+= msgmerge patch perl:run autoconf automake autoreconf pkg-config gmake bash
BUILD_DIRS= . unix/xserver
INSTALL_DIRS= . unix/xserver/hw/vnc
LDFLAGS+= ${BUILDLINK_LDADD.gettext}
CONFIGURE_ENV+= ac_cv_path_RAWCPP="${PREFIX}/bin/tradcpp -Uunix"
OVERRIDE_GNU_CONFIG_SCRIPTS= yes
LIBTOOL_OVERRIDE=unix/xserver/libtool
SUBST_CLASSES+= hpath
SUBST_STAGE.hpath= pre-configure
SUBST_MESSAGE.hpath= fixing hardcoded paths
SUBST_FILES.hpath= unix/vncserver
SUBST_SED.hpath+= -e 's|/usr/local/vnc/classes|${PREFIX}/share/vnc/classes|g'
SUBST_VARS.hpath+= PREFIX X11BASE
REPLACE_PERL+= unix/vncserver
post-extract:
cd ${WRKDIR} && ${EXTRACTOR} ${_DISTDIR}/${XORG_SERVER_FILE}.tar.bz2
cp -r ${WRKDIR}/${XORG_SERVER_FILE}/* ${WRKSRC}/unix/xserver
post-patch:
cd ${WRKSRC}/unix/xserver && ${PATCH} --batch -p1 <../xserver112.patch
XORG_CONFIGURE_ARGS+= --prefix=${PREFIX} --mandir=${PREFIX}/${PKGMANDIR}
XORG_CONFIGURE_ARGS+= --disable-wayland --disable-present --disable-dri3
XORG_CONFIGURE_ARGS+= --disable-static --disable-xinerama --without-dtrace
XORG_CONFIGURE_ARGS+= --disable-xorg --disable-xnest --disable-xvfb --disable-dmx
XORG_CONFIGURE_ARGS+= --disable-unit-tests --disable-devel-docs --disable-selective-werror
XORG_CONFIGURE_ARGS+= --disable-dri --enable-dri2 --enable-glx --enable-glx-tls
pre-configure:
cd ${WRKSRC}/unix/xserver && autoreconf -fvi && \
${PKGSRC_SETENV} ${_CONFIGURE_SCRIPT_ENV} CONFIG_SHELL=${BASH} \
${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS} \
./configure ${XORG_CONFIGURE_ARGS}
.include "../../mk/jpeg.buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/gnutls/buildlink3.mk"
.include "../../security/libgcrypt/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXcursor/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../x11/libXtst/buildlink3.mk"
.include "../../x11/libdrm/buildlink3.mk"
.include "../../x11/fltk13/buildlink3.mk"
.include "../../x11/pixman/buildlink3.mk"
.include "../../x11/xcmiscproto/buildlink3.mk"
.include "../../x11/xtrans/buildlink3.mk"
.include "../../x11/bigreqsproto/buildlink3.mk"
.include "../../x11/compositeproto/buildlink3.mk"
.include "../../x11/damageproto/buildlink3.mk"
.include "../../x11/dri2proto/buildlink3.mk"
.include "../../x11/libXfont/buildlink3.mk"
.include "../../x11/libxkbfile/buildlink3.mk"
.include "../../x11/randrproto/buildlink3.mk"
.include "../../x11/fontsproto/buildlink3.mk"
.include "../../x11/glproto/buildlink3.mk"
.include "../../x11/resourceproto/buildlink3.mk"
.include "../../x11/scrnsaverproto/buildlink3.mk"
.include "../../x11/videoproto/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|