Magellan Linux

Contents of /smage/branches/alx07x-unstable/core/tigervnc/tigervnc-1.4.3-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7819 - (show annotations) (download)
Wed Nov 18 09:09:54 2015 UTC (8 years, 5 months ago) by niro
File size: 4170 byte(s)
-release branches/alx07x-unstable
1 # $Id$
2
3 PNAME="tigervnc"
4 PVER="1.4.3"
5 PBUILD="r2"
6
7 PCAT="net-misc"
8
9 DESCRIPTION="TigerVNC is a suite of VNC servers and clients that have a focus on performance and remote display functionality."
10 HOMEPAGE="http://www.tigervnc.com/"
11
12 SRCFILE="v${PVER}.tar.gz"
13 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
14
15 XORG_PVER="1.16.4"
16 XORG="xorg-server-${XORG_PVER}.tar.bz2"
17 XORGSDIR="${BUILDDIR}/xorg-server-${XORG_PVER}"
18 XORGDDIR="${SRCDIR}/unix/xserver"
19
20 DEPEND=">= x11-libs/libX11-1.6
21 >= x11-libs/libXext-1.3
22 >= x11-libs/libSM-1.2
23 >= x11-libs/libXtst-1.2
24 >= x11-libs/libXi-1.7
25 >= x11-libs/fltk-1.3
26 >= sys-libs/zlib-1.2.5
27 >= sys-libs/libstdc++-5.1
28 >= dev-libs/openssl-1.0.2
29 >= media-fonts/font-adobe-75dpi-1
30 >= media-fonts/font-misc-misc-1
31 >= virtual/X-ABI-EXTENSION-8
32 >= virtual/X-ABI-VIDEODRV-18
33 >= virtual/X-ABI-XINPUT-21"
34
35 SDEPEND=">= dev-lang/nasm-2
36 == x11-proto/xorg-protos-7.7.${XORG_PVER}
37 >= x11-libs/libpciaccess-0.13
38 >= media-fonts/font-util-1.3
39 >= x11-libs/libX11-dev-1.6
40 >= x11-libs/libXext-dev-1.3
41 >= x11-libs/libSM-dev-1.2
42 >= x11-libs/libXtst-dev-1.2
43 >= x11-libs/libXi-dev-1.7
44 >= x11-libs/fltk-dev-1.3
45 >= sys-libs/zlib-dev-1.2.5
46 >= sys-libs/libstdc++-dev-5.1
47 >= dev-libs/openssl-dev-1.0.2
48 >= x11-libs/libpciaccess-dev-0.13
49 == x11-base/xorg-server-dev-${XORG_PVER}"
50
51 ALX_PKG_KEEP="usr/bin/vncpasswd usr/$(mlibdir)/xorg/modules/extensions/libvnc.so"
52 msetfeature "!check"
53 sminclude cmake xorg mtools alx-split
54
55 SRC_URI=(
56 https://github.com/TigerVNC/${PNAME}/archive/${SRCFILE}
57 mirror://${PNAME}/${SRCFILE}
58 http://ftp.x.org/pub/individual/xserver/${XORG}
59 mirror://xorg-server/${XORG}
60 mirror://${PNAME}/tigervnc_48.png
61 mirror://${PNAME}/${PNAME}-1.0.90-cookie.patch
62 mirror://${PNAME}/${PNAME}-1.1.0-gethomedir.patch
63 mirror://${PNAME}/${PNAME}-1.4.2-rh692048.patch
64 mirror://${PNAME}/${PNAME}-1.3.0-shebang.patch
65 mirror://${PNAME}/${PNAME}-1.4.2-getmaster.patch
66 mirror://${PNAME}/${PNAME}-1.5.0-gnutls3.patch
67 )
68
69 UP2SEPERATOR="v"
70 UP2DATE="updatecmd https://github.com/TigerVNC/${PNAME}/releases | highesttarball gz"
71
72 src_prepare()
73 {
74 # munpack needs a suffix
75 tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die
76 munpack ${XORG} || die
77 cp -r ${XORGSDIR}/* ${XORGDDIR} || die
78 cd ${SRCDIR}
79
80 # patchwork
81 # create X server cookie via mcookie
82 mpatch ${PNAME}-1.0.90-cookie.patch || die
83 mpatch ${PNAME}-1.1.0-gethomedir.patch || die
84 mpatch ${PNAME}-1.4.2-rh692048.patch || die
85
86 # libvnc.so: don't use unexported GetMaster function
87 mpatch ${PNAME}-1.4.2-getmaster.patch || die
88
89 # don't use shebang in vncserver script.
90 mpatch ${PNAME}-1.3.0-shebang.patch || die
91
92 # fix build with newer gnutls
93 mpatch ${PNAME}-1.5.0-gnutls3.patch || die
94
95 # apply the included xorg patch
96 cd ${XORGDDIR}
97 local xorg_patch_ver="${XORG_PVER%.*}"
98 xorg_patch_ver="${xorg_patch_ver//.}"
99 patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die
100
101 # reconfigure xorg
102 cd ${XORGDDIR}
103 mautoreconf || die
104 }
105
106 src_compile()
107 {
108 cd ${SRCDIR}
109 cmake_configure || die
110 mmake || die
111
112 # build the x11 module
113 cd ${XORGDDIR}
114 mconfigure \
115 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
116 --with-fontdir=/usr/share/fonts \
117 --with-rgb-path=/usr/share/X11/rgb.txt \
118 --with-xkb-output=/usr/share/X11/xkb \
119 --with-module-dir=/usr/$(mlibdir)/xorg/modules \
120 --with-dri-driver-path=/usr/$(mlibdir)/dri \
121 --with-pic \
122 --without-dtrace \
123 --disable-xorg \
124 --disable-composite \
125 --enable-xtrap \
126 --disable-xinerama \
127 --enable-glx \
128 --enable-glx-tls \
129 --disable-xnest \
130 --disable-xvfb \
131 --disable-dmx \
132 --disable-xwin \
133 --disable-xephyr \
134 --disable-kdrive \
135 --disable-static \
136 --disable-dri \
137 --enable-dri2 \
138 --enable-dri3 \
139 --disable-present \
140 --disable-config-dbus \
141 --disable-config-hal \
142 --disable-config-udev \
143 --enable-install-libxf86config \
144 --disable-unit-tests \
145 --disable-devel-docs \
146 --disable-selective-werror \
147 || die
148
149 mmake || die
150 }
151
152 alx_generic_src_install()
153 {
154 cd ${SRCDIR}
155 mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die
156
157 cd ${XORGDDIR}/hw/vnc
158 mmake DESTDIR=${BINDIR} install || die
159 }