Contents of /trunk/core/xorg-server/xorg-server-1.6.1-r2.smage2
Parent Directory | Revision Log
Revision 1518 -
(show annotations)
(download)
Sun May 10 17:21:11 2009 UTC (15 years, 4 months ago) by niro
File size: 4988 byte(s)
Sun May 10 17:21:11 2009 UTC (15 years, 4 months ago) by niro
File size: 4988 byte(s)
-use evdev as default
1 | # $Id$ |
2 | |
3 | PNAME="xorg-server" |
4 | PVER="1.6.1" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="x11-base" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Modular X.Org X Server." |
11 | HOMEPAGE="http://xorg.freedesktop.org" |
12 | |
13 | sminclude xorg mtools |
14 | |
15 | # mesa sources are needed to compile opengl extensions |
16 | MESA_PVER="7.4.1" |
17 | MESA_SRCFILE="MesaLib-${MESA_PVER/_/-}.tar.gz" |
18 | MESA_SRCDIR="${BUILDDIR}/MesaLib-${MESA_PVER/_/-}" |
19 | |
20 | PROVIDE="virtual/x11" |
21 | |
22 | DEPEND=">= x11-libs/libXfont-1.4.0 |
23 | >= x11-libs/libXau-1.0.4 |
24 | >= x11-libs/libXext-1.0.5 |
25 | >= x11-libs/libX11-1.2.1 |
26 | >= x11-libs/libxkbfile-1.0.5 |
27 | >= x11-libs/libXdmcp-1.0.2 |
28 | >= x11-libs/libXmu-1.0.4 |
29 | >= x11-libs/libXrender-0.9.4 |
30 | >= x11-libs/libXi-1.2.1 |
31 | >= media-libs/freetype-2.3.9 |
32 | == media-libs/mesa-${MESA_PVER} |
33 | >= media-fonts/font-misc-misc-1 |
34 | >= media-fonts/font-cursor-misc-1 |
35 | >= x11-misc/xbitmaps-1.0.1 |
36 | >= x11-misc/xkeyboard-config-1.5 |
37 | >= x11-apps/iceauth-1.0.2 |
38 | >= x11-apps/rgb-1.0.1 |
39 | >= x11-apps/xauth-1.0.3 |
40 | >= x11-apps/xinit-1.1.1 |
41 | >= x11-libs/libXaw-1.0.5 |
42 | >= x11-libs/libXpm-3.5.7 |
43 | >= x11-libs/libXxf86misc-1.0.1 |
44 | >= x11-libs/libXxf86vm-1.0.2 |
45 | >= x11-libs/libdmx-1.0.2 |
46 | >= x11-libs/libXtst-1.0.3 |
47 | >= x11-libs/libXres-1.0.3 |
48 | >= x11-libs/libxkbui-1.0.2 |
49 | >= x11-libs/liblbxutil-1.0.1 |
50 | >= x11-libs/libXinerama-1.0.3 |
51 | >= x11-base/opengl-update-magellan-2.2.9 |
52 | >= sys-apps/dbus-1.2 |
53 | >= sys-apps/hal-0.5.11 |
54 | >= x11-libs/pixman-0.15.1 |
55 | >= x11-libs/libpciaccess-0.10" |
56 | |
57 | SDEPEND=">= x11-libs/xtrans-1.2 |
58 | >= x11-proto/randrproto-1.3 |
59 | >= x11-proto/renderproto-0.9.3 |
60 | >= x11-proto/fixesproto-4 |
61 | >= x11-proto/damageproto-1.1 |
62 | >= x11-proto/xextproto-7.0.5 |
63 | >= x11-proto/xproto-7.0.15 |
64 | >= x11-proto/xf86dgaproto-2.0.3 |
65 | >= x11-proto/xf86miscproto-0.9.2 |
66 | >= x11-proto/xf86rushproto-1.1.2 |
67 | >= x11-proto/xf86vidmodeproto-2.2.2 |
68 | >= x11-proto/xf86bigfontproto-1.1.2 |
69 | >= x11-proto/compositeproto-0.4 |
70 | >= x11-proto/recordproto-1.13.2 |
71 | >= x11-proto/resourceproto-1.0.2 |
72 | >= x11-proto/videoproto-2.2.2 |
73 | >= x11-proto/scrnsaverproto-1.1.0 |
74 | >= x11-proto/evieext-1.0.2 |
75 | >= x11-proto/trapproto-3.4.3 |
76 | >= x11-proto/xineramaproto-1.1.2 |
77 | >= x11-proto/fontsproto-2.0.2 |
78 | >= x11-proto/kbproto-1.0.3 |
79 | >= x11-proto/inputproto-1.5.0 |
80 | >= x11-proto/bigreqsproto-1.0.2 |
81 | >= x11-proto/xcmiscproto-1.1.2 |
82 | >= x11-proto/glproto-1.4.9 |
83 | >= x11-proto/dmxproto-2.2.2 |
84 | >= x11-proto/xf86driproto-2.0.4 |
85 | >= x11-proto/dri2proto-2.0 |
86 | >= x11-libs/libdrm-2.4.9 |
87 | >= x11-apps/mkfontdir-1.0.4 |
88 | >= x11-apps/mkfontscale-1.0.6" |
89 | |
90 | SRC_URI=( ${SRC_URI[*]} |
91 | mirror://${PNAME}/${SRCFILE} |
92 | sourceforge://mesa3d/${MESA_SRCFILE} |
93 | mirror://mesa/${MESA_SRCFILE} |
94 | mirror://${PNAME}/${PNAME}-1.4-fpic-libxf86config.patch |
95 | mirror://${PNAME}/${PNAME}-1.2.0-die-ugly-pattern-die-die-die.patch |
96 | ) |
97 | |
98 | UP2SUBDIR="xserver" |
99 | UP2DATE="updatecmd_xorg ${PNAME}" |
100 | |
101 | src_prepare() |
102 | { |
103 | # must use mesa as opengl-headers! |
104 | [[ $(opengl-update --get-implementation) != xorg ]] && |
105 | die "please change to xorg opengl-headers: opengl-update xorg" |
106 | |
107 | munpack ${SRCFILE} || die |
108 | munpack ${MESA_SRCFILE} || die |
109 | cd ${SRCDIR} |
110 | |
111 | # fixes fpic issues with libxf86config on 64bit systems |
112 | mpatch ${PNAME}-1.4-fpic-libxf86config.patch || die |
113 | |
114 | # adopted from redhat; use a black background |
115 | mpatch ${PNAME}-1.2.0-die-ugly-pattern-die-die-die.patch || die |
116 | |
117 | # fix build issues, some wrapper files which should be generated |
118 | # at build time exist and the makefile doesn't whipe them. we patch |
119 | # the makefile to clean them and whipe these wrapper files |
120 | rm -f ${SRCDIR}/hw/xprint/*-wrapper.c || die |
121 | |
122 | autoreconf --verbose --install --force || die |
123 | } |
124 | |
125 | src_compile() |
126 | { |
127 | cd ${SRCDIR} |
128 | |
129 | xorg_src_configure \ |
130 | --with-mesa-source=${MESA_SRCDIR} \ |
131 | --sysconfdir=/etc/X11 \ |
132 | --localstatedir=/var \ |
133 | --with-xkb-output=/var/lib/xkb \ |
134 | --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \ |
135 | --enable-install-setuid \ |
136 | --enable-ipv6 \ |
137 | --enable-dmx \ |
138 | --enable-xvfb \ |
139 | --enable-xnest \ |
140 | --enable-dri \ |
141 | --enable-dri2 \ |
142 | --enable-xorg \ |
143 | --enable-xtrap \ |
144 | --enable-xevie \ |
145 | --disable-xprint \ |
146 | --enable-glx-tls \ |
147 | --disable-static \ |
148 | --enable-config-dbus \ |
149 | --enable-config-hal \ |
150 | || die |
151 | |
152 | mmake || die |
153 | } |
154 | |
155 | src_install() |
156 | { |
157 | xorg_src_install || die |
158 | |
159 | # needed directories |
160 | minstalldir /usr/bin || die |
161 | minstalldir /usr/$(mlibdir)/opengl/xorg/extensions || die |
162 | |
163 | # dynamic opengl setup |
164 | local i |
165 | for i in ${BINDIR}/usr/$(mlibdir)/xorg/modules/libglx* \ |
166 | ${BINDIR}/usr/$(mlibdir)/xorg/modules/libdri* |
167 | do |
168 | if [ -f ${i} -o -L ${i} ] |
169 | then |
170 | mv -f ${i} ${BINDIR}/usr/$(mlibdir)/opengl/xorg/extensions || die "${i}" |
171 | fi |
172 | done |
173 | |
174 | # missing symlink |
175 | mlink Xorg /usr/bin/X || die |
176 | |
177 | # fix dbus rules locations |
178 | # (must reside in /etc/dbus-1 not /etc/X11/dbus-1) |
179 | mv ${BINDIR}/etc/{X11/,}dbus-1 || die |
180 | } |
181 | |
182 | postinstall() |
183 | { |
184 | ${MROOT}/usr/sbin/opengl-update --use-old xorg |
185 | } |
186 | |
187 | postremove() |
188 | { |
189 | # get rid of module dir to ensure opengl-update works properbly |
190 | if [ -e ${MROOT}/usr/$(mlibdir)/xorg/modules ] |
191 | then |
192 | if [[ -z $(magequery -n xorg-server) ]] |
193 | then |
194 | rm -rf ${MROOT}/usr/$(mlibdir)/xorg/modules |
195 | fi |
196 | fi |
197 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |