Magellan Linux

Contents of /smage/trunk/core/tigervnc/tigervnc-1.5.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6730 - (show annotations) (download)
Thu Jul 16 07:18:36 2015 UTC (8 years, 11 months ago) by niro
File size: 4531 byte(s)
auto added: ver bump to 1.5.0-r1
1 # $Id$
2
3 PNAME="tigervnc"
4 PVER="1.5.0"
5 PBUILD="r1"
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.3"
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++-4.8
28 >= dev-libs/libsha1-0.3
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-15
33 >= virtual/X-ABI-XINPUT-20"
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-4.8
47 >= dev-libs/libsha1-dev-0.3
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.0.90-ldnow.patch
63 mirror://${PNAME}/${PNAME}-1.1.0-gethomedir.patch
64 mirror://${PNAME}/${PNAME}-${PVER}-rh692048.patch
65 mirror://${PNAME}/${PNAME}-1.3.0-inetd-nowait.patch
66 mirror://${PNAME}/${PNAME}-1.3.0-getmaster.patch
67 mirror://${PNAME}/${PNAME}-1.3.0-shebang.patch
68 mirror://${PNAME}/${PNAME}-1.3.0-key_is_down.patch
69 )
70
71 UP2SEPERATOR="v"
72 UP2DATE="updatecmd https://github.com/TigerVNC/${PNAME}/releases | highesttarball gz"
73
74 src_prepare()
75 {
76 # munpack needs a suffix
77 tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die
78 munpack ${XORG} || die
79 cp -r ${XORGSDIR}/* ${XORGDDIR} || die
80 cd ${SRCDIR}
81
82 # patchwork
83 # create X server cookie via mcookie
84 mpatch ${PNAME}-1.0.90-cookie.patch || die
85 # link libvnc.so "now" to catch "undefined symbol" errors during Xorg startup
86 mpatch ${PNAME}-1.0.90-ldnow.patch || die
87 mpatch ${PNAME}-1.1.0-gethomedir.patch || die
88 mpatch ${PNAME}-${PVER}-rh692048.patch || die
89
90 # fix busy loop when run from inetd in nowait mode
91 mpatch ${PNAME}-1.3.0-inetd-nowait.patch || die
92
93 # libvnc.so: don't use unexported GetMaster function
94 mpatch ${PNAME}-1.3.0-getmaster.patch || die
95
96 # don't use shebang in vncserver script.
97 mpatch ${PNAME}-1.3.0-shebang.patch || die
98
99 # libvnc.so: don't use unexported key_is_down function
100 mpatch ${PNAME}-1.3.0-key_is_down.patch || die
101
102 # apply the included xorg patch
103 cd ${XORGDDIR}
104 local xorg_patch_ver="${XORG_PVER%.*}"
105 xorg_patch_ver="${xorg_patch_ver//.}"
106 patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die
107
108 # reconfigure xorg
109 cd ${XORGDDIR}
110 mautoreconf || die
111 }
112
113 src_compile()
114 {
115 cd ${SRCDIR}
116 cmake_configure || die
117 mmake || die
118
119 # build the x11 module
120 cd ${XORGDDIR}
121 mconfigure \
122 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
123 --with-fontdir=/usr/share/fonts \
124 --with-rgb-path=/usr/share/X11/rgb.txt \
125 --with-xkb-output=/usr/share/X11/xkb \
126 --with-module-dir=/usr/$(mlibdir)/xorg/modules \
127 --with-dri-driver-path=/usr/$(mlibdir)/dri \
128 --with-pic \
129 --without-dtrace \
130 --disable-xorg \
131 --disable-composite \
132 --enable-xtrap \
133 --disable-xinerama \
134 --enable-glx \
135 --disable-xnest \
136 --disable-xvfb \
137 --disable-dmx \
138 --disable-xwin \
139 --disable-xephyr \
140 --disable-kdrive \
141 --disable-static \
142 --disable-dri \
143 --enable-dri2 \
144 --disable-dri3 \
145 --disable-present \
146 --disable-config-dbus \
147 --disable-config-hal \
148 --disable-config-udev \
149 --enable-install-libxf86config \
150 --disable-unit-tests \
151 --disable-devel-docs \
152 --disable-selective-werror \
153 --with-sha1=libsha1 \
154 || die
155
156 mmake || die
157 }
158
159 alx_generic_src_install()
160 {
161 cd ${SRCDIR}
162 mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die
163
164 cd ${XORGDDIR}/hw/vnc
165 mmake DESTDIR=${BINDIR} install || die
166 }