Contents of /smage/trunk/core/tigervnc/tigervnc-1.2.80_svn5043-r1.smage2
Parent Directory
|
Revision Log
Revision 4614 -
(show annotations)
(download)
Tue Mar 19 09:04:33 2013 UTC (11 years, 3 months ago) by niro
File size: 4335 byte(s)
Tue Mar 19 09:04:33 2013 UTC (11 years, 3 months ago) by niro
File size: 4335 byte(s)
-fixed SRCFILE
1 | # $Id$ |
2 | |
3 | PNAME="tigervnc" |
4 | PVER="1.2.80_svn5043" |
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="${PNAME}-${PVER}.tar.bz2" |
13 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
14 | |
15 | XORG_PVER="1.14.0" |
16 | XORG="xorg-server-${XORG_PVER}.tar.bz2" |
17 | XORGSDIR="${BUILDDIR}/xorg-server-${XORG_PVER}" |
18 | XORGDDIR="${SRCDIR}/unix/xserver" |
19 | |
20 | COMMON_DEPEND=">= x11-libs/libX11-1.4 |
21 | >= x11-libs/libXext-1.3 |
22 | >= x11-libs/libSM-1.2 |
23 | >= x11-libs/libXtst-1.2 |
24 | >= x11-libs/libXi-1.4 |
25 | >= sys-libs/zlib-1.2.5 |
26 | >= sys-libs/libstdc++-4.6 |
27 | >= media-fonts/font-adobe-75dpi-1 |
28 | >= media-fonts/font-misc-misc-1 |
29 | == x11-base/xorg-server-${XORG_PVER}" |
30 | |
31 | SDEPEND=">= dev-lang/nasm-2 |
32 | >= x11-proto/xextproto-7.2 |
33 | >= x11-proto/inputproto-2 |
34 | >= x11-proto/bigreqsproto-1.1 |
35 | >= x11-proto/compositeproto-0.4 |
36 | >= x11-proto/damageproto-1.2 |
37 | >= x11-proto/dri2proto-2.3 |
38 | >= x11-proto/fixesproto-5 |
39 | >= x11-proto/fontsproto-2.1 |
40 | >= x11-proto/randrproto-1.3 |
41 | >= x11-proto/resourceproto-1.2 |
42 | >= x11-proto/scrnsaverproto-1.2 |
43 | >= x11-proto/videoproto-2.3 |
44 | >= x11-proto/xcmiscproto-1.2 |
45 | >= x11-proto/xineramaproto-1.2 |
46 | >= x11-proto/xf86bigfontproto-1.2 |
47 | >= x11-proto/xf86dgaproto-2.1 |
48 | >= x11-proto/xf86driproto-2.1 |
49 | >= x11-proto/xf86miscproto-0.9.3 |
50 | >= x11-proto/xf86vidmodeproto-2.3 |
51 | >= x11-proto/glproto-1.4.12 |
52 | >= x11-proto/renderproto-0.11 |
53 | >= x11-libs/libpciaccess-0.12" |
54 | |
55 | ALX_PKG_KEEP="usr/bin/vncpasswd usr/$(mlibdir)/xorg/modules/extensions/libvnc.so" |
56 | sminclude xorg mtools alx-split |
57 | |
58 | SRC_URI=( |
59 | sourceforge://${PNAME}/${SRCFILE} |
60 | mirror://${PNAME}/${SRCFILE} |
61 | http://ftp.x.org/pub/individual/xserver/${XORG} |
62 | mirror://xorg-server/${XORG} |
63 | mirror://${PNAME}/tigervnc_48.png |
64 | mirror://${PNAME}/${PNAME}-1.0.90-cookie.patch |
65 | mirror://${PNAME}/${PNAME}-1.0.90-ldnow.patch |
66 | mirror://${PNAME}/${PNAME}-1.1.0-gethomedir.patch |
67 | mirror://${PNAME}/${PNAME}-1.1.0-rh692048.patch |
68 | mirror://${PNAME}/${PNAME}-1.2.0-xserver113-glx-2.patch |
69 | mirror://${PNAME}/${PNAME}-${PVER}-build-fix.patch |
70 | ) |
71 | |
72 | UP2DATE="updatecmd_sourceforge ${PNAME}" |
73 | |
74 | src_prepare() |
75 | { |
76 | munpack ${SRCFILE} || die |
77 | munpack ${XORG} || die |
78 | cp -r ${XORGSDIR}/* ${XORGDDIR} || die |
79 | cd ${SRCDIR} |
80 | |
81 | # patchwork |
82 | # create X server cookie via mcookie |
83 | mpatch ${PNAME}-1.0.90-cookie.patch || die |
84 | # link libvnc.so "now" to catch "undefined symbol" errors during Xorg startup |
85 | mpatch ${PNAME}-1.0.90-ldnow.patch || die |
86 | mpatch ${PNAME}-1.1.0-gethomedir.patch || die |
87 | mpatch ${PNAME}-1.1.0-rh692048.patch || die |
88 | |
89 | # apply the included xorg patch |
90 | cd ${XORGDDIR} |
91 | local xorg_patch_ver="${XORG_PVER%.*}" |
92 | xorg_patch_ver="${xorg_patch_ver//.}" |
93 | patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die |
94 | |
95 | # enable glx |
96 | mpatch ${PNAME}-1.2.0-xserver113-glx-2.patch || die |
97 | |
98 | # fix a ftbfs |
99 | mpatch ${PNAME}-${PVER}-build-fix.patch || die |
100 | |
101 | # reconfigure xorg |
102 | cd ${XORGDDIR} |
103 | mautoreconf || die |
104 | } |
105 | |
106 | src_compile() |
107 | { |
108 | cd ${SRCDIR} |
109 | mconfigure --disable-static || die |
110 | # only build neccessary things |
111 | mmake -j1 -C common || die |
112 | mmake -j1 -C unix/vncpasswd || die |
113 | |
114 | # fix build issues and use libsha1 instead of gnutls/openssl |
115 | export CFLAGS="$(pkg-config --cflags libdrm libsha1)" |
116 | |
117 | # build the x11 module |
118 | cd ${XORGDDIR} |
119 | mconfigure \ |
120 | --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \ |
121 | --with-fontdir=/usr/share/fonts \ |
122 | --with-rgb-path=/usr/share/X11/rgb.txt \ |
123 | --with-xkb-output=/usr/share/X11/xkb \ |
124 | --with-module-dir=/usr/$(mlibdir)/xorg/modules \ |
125 | --with-dri-driver-path=/usr/$(mlibdir)/dri \ |
126 | --with-pic \ |
127 | --without-dtrace \ |
128 | --disable-xorg \ |
129 | --disable-composite \ |
130 | --enable-xtrap \ |
131 | --disable-xinerama \ |
132 | --enable-glx \ |
133 | --disable-xnest \ |
134 | --disable-xvfb \ |
135 | --disable-dmx \ |
136 | --disable-xwin \ |
137 | --disable-xephyr \ |
138 | --disable-kdrive \ |
139 | --disable-static \ |
140 | --disable-dri \ |
141 | --enable-dri2 \ |
142 | --disable-config-dbus \ |
143 | --disable-config-hal \ |
144 | --disable-config-udev \ |
145 | --enable-install-libxf86config \ |
146 | --disable-unit-tests \ |
147 | --disable-devel-docs \ |
148 | --disable-selective-werror \ |
149 | --with-sha1=libsha1 \ |
150 | || die |
151 | |
152 | mmake || die |
153 | } |
154 | |
155 | alx_generic_src_install() |
156 | { |
157 | cd ${SRCDIR} |
158 | mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die |
159 | |
160 | cd ${XORGDDIR}/hw/vnc |
161 | mmake DESTDIR=${BINDIR} install || die |
162 | } |