Magellan Linux

Contents of /trunk/core/xorg-server/xorg-server-1.6.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1232 - (show annotations) (download)
Sun Apr 26 13:55:51 2009 UTC (15 years ago) by niro
File size: 5140 byte(s)
-removed upstream patches
1 # $Id$
2
3 PNAME="xorg-server"
4 PVER="1.6.1"
5 PBUILD="r1"
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 mirror://${PNAME}/${PNAME}-1.4.99.906-no-evdev-keyboards.patch
97 )
98
99 UP2SUBDIR="xserver"
100 UP2DATE="updatecmd_xorg ${PNAME}"
101
102 src_prepare()
103 {
104 # must use mesa as opengl-headers!
105 [[ $(opengl-update --get-implementation) != xorg ]] &&
106 die "please change to xorg opengl-headers: opengl-update xorg"
107
108 munpack ${SRCFILE} || die
109 munpack ${MESA_SRCFILE} || die
110 cd ${SRCDIR}
111
112 # fixes fpic issues with libxf86config on 64bit systems
113 mpatch ${PNAME}-1.4-fpic-libxf86config.patch || die
114
115 # adopted from redhat; use a black background
116 mpatch ${PNAME}-1.2.0-die-ugly-pattern-die-die-die.patch || die
117
118 # evdev is way too broken
119 mpatch ${PNAME}-1.4.99.906-no-evdev-keyboards.patch || die
120
121 # fix build issues, some wrapper files which should be generated
122 # at build time exist and the makefile doesn't whipe them. we patch
123 # the makefile to clean them and whipe these wrapper files
124 rm -f ${SRCDIR}/hw/xprint/*-wrapper.c || die
125
126 autoreconf --verbose --install --force || die
127 }
128
129 src_compile()
130 {
131 cd ${SRCDIR}
132
133 xorg_src_configure \
134 --with-mesa-source=${MESA_SRCDIR} \
135 --sysconfdir=/etc/X11 \
136 --localstatedir=/var \
137 --with-xkb-output=/var/lib/xkb \
138 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
139 --enable-install-setuid \
140 --enable-ipv6 \
141 --enable-dmx \
142 --enable-xvfb \
143 --enable-xnest \
144 --enable-dri \
145 --enable-dri2 \
146 --enable-xorg \
147 --enable-xtrap \
148 --enable-xevie \
149 --disable-xprint \
150 --enable-glx-tls \
151 --disable-static \
152 --enable-config-dbus \
153 --enable-config-hal \
154 || die
155
156 mmake || die
157 }
158
159 src_install()
160 {
161 xorg_src_install || die
162
163 # needed directories
164 minstalldir /usr/bin || die
165 minstalldir /usr/$(mlibdir)/opengl/xorg/extensions || die
166
167 # dynamic opengl setup
168 local i
169 for i in ${BINDIR}/usr/$(mlibdir)/xorg/modules/libglx* \
170 ${BINDIR}/usr/$(mlibdir)/xorg/modules/libdri*
171 do
172 if [ -f ${i} -o -L ${i} ]
173 then
174 mv -f ${i} ${BINDIR}/usr/$(mlibdir)/opengl/xorg/extensions || die "${i}"
175 fi
176 done
177
178 # missing symlink
179 mlink Xorg /usr/bin/X || die
180
181 # fix dbus rules locations
182 # (must reside in /etc/dbus-1 not /etc/X11/dbus-1)
183 mv ${BINDIR}/etc/{X11/,}dbus-1 || die
184 }
185
186 postinstall()
187 {
188 ${MROOT}/usr/sbin/opengl-update --use-old xorg
189 }
190
191 postremove()
192 {
193 # get rid of module dir to ensure opengl-update works properbly
194 if [ -e ${MROOT}/usr/$(mlibdir)/xorg/modules ]
195 then
196 if [[ -z $(magequery -n xorg-server) ]]
197 then
198 rm -rf ${MROOT}/usr/$(mlibdir)/xorg/modules
199 fi
200 fi
201 }

Properties

Name Value
svn:keywords Id