Magellan Linux

Annotation of /smage/trunk/core/kdrive/kdrive-1.9.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 937 - (hide annotations) (download)
Tue Dec 7 21:51:06 2010 UTC (13 years, 5 months ago) by niro
File size: 4613 byte(s)
auto added: ver bump to 1.9.2-r1
1 niro 937 # $Id: kdrive-1.8.0-r1.smage2 387 2010-05-05 19:52:08Z niro $
2    
3     PNAME="kdrive"
4     PVER="1.9.2"
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     DEPEND=">= x11-libs/libXfont-1.4.3
14     >= x11-libs/libXau-1.0.6
15     >= x11-libs/libXext-1.2
16     >= x11-libs/libX11-1.4
17     >= x11-libs/libXdmcp-1.1
18     >= x11-libs/libxkbfile-1.0.7
19     >= x11-libs/pixman-0.20
20     >= media-libs/freetype-2.4
21     >= media-fonts/font-misc-misc-1
22     >= media-fonts/font-cursor-misc-1
23     >= x11-misc/xkeyboard-config-2.0
24     >= dev-libs/libsha1-0.3
25     >= sys-fs/udev-164"
26     # >= x11-libs/libXv-1.0.5
27    
28     SDEPEND=">= x11-libs/xtrans-1.2
29     >= x11-proto/randrproto-1.3
30     < x11-proto/renderproto-0.11
31     >= x11-proto/fixesproto-4.1
32     >= x11-proto/damageproto-1.2
33     >= x11-proto/xextproto-7.1.1
34     >= x11-proto/xproto-7.0.16
35     >= x11-proto/xf86dgaproto-2.1
36     >= x11-proto/xf86miscproto-0.9.3
37     >= x11-proto/xf86vidmodeproto-2.3
38     >= x11-proto/xf86bigfontproto-1.2.0
39     >= x11-proto/compositeproto-0.4.1
40     >= x11-proto/recordproto-1.14
41     >= x11-proto/resourceproto-1.1.0
42     >= x11-proto/videoproto-2.3.0
43     >= x11-proto/scrnsaverproto-1.2.0
44     >= x11-proto/evieext-1.1.0
45     >= x11-proto/xineramaproto-1.2
46     >= x11-proto/fontsproto-2.1.0
47     >= x11-proto/kbproto-1.0.4
48     >= x11-proto/inputproto-2.0
49     >= x11-proto/bigreqsproto-1.1.0
50     >= x11-proto/xcmiscproto-1.2.0
51     >= x11-apps/mkfontdir-1.0.5
52     >= x11-apps/mkfontscale-1.0.7"
53    
54     PROVIDE="virtual/x11"
55    
56     MCORE_ONLY_KEEP="usr/bin usr/share/X11/xkb"
57     sminclude xorg mtools cleanutils mcore-split
58    
59     SRCFILE="xorg-server-${PVER}.tar.bz2"
60     SRCDIR="${BUILDDIR}/xorg-server-${PVER}"
61    
62     SRC_URI=(
63     http://ftp.x.org/pub/individual/xserver/${SRCFILE}
64     mirror://xorg-server/${SRCFILE}
65     mirror://xorg-server/xorg-server-1.4-fpic-libxf86config.patch
66     mirror://xorg-server/xorg-server-1.2.0-die-ugly-pattern-die-die-die.patch
67     mirror://xorg-server/xorg-server-1.8.0-match-only-sane-devices.patch
68     mirror://xorg-server/xorg-server-1.8.0-kdrive-default-mode.patch
69     mirror://xorg-server/xorg-server-1.8.0-kdrive-evdev-with-valid-mouse-devices.patch
70     )
71    
72     UP2SUBDIR="xserver"
73     UP2DATE="updatecmd_xorg xorg-server"
74    
75     src_prepare()
76     {
77     munpack ${SRCFILE} || die
78     cd ${SRCDIR}
79    
80     # fixes fpic issues with libxf86config on 64bit systems
81     mpatch xorg-server-1.4-fpic-libxf86config.patch || die
82    
83     # adopted from redhat; use a black background
84     mpatch xorg-server-1.2.0-die-ugly-pattern-die-die-die.patch || die
85    
86     # only match sane devices in 10-evdev.conf
87     # having a generic catchall also adds devices like accelerometers. These
88     # devices make X unusable, hence restrict matching to "known sane" devices
89     # like pointers, touchpads, keyboards, tablets and touchscreens.
90     mpatch xorg-server-1.8.0-match-only-sane-devices.patch || die
91    
92     # fix kdrive default mode -> use 640x480@60hz instead of 800x600@75hz
93     mpatch xorg-server-1.8.0-kdrive-default-mode.patch || die
94    
95     # fix new evdev event devices (event4 and event5)
96     mpatch xorg-server-1.8.0-kdrive-evdev-with-valid-mouse-devices.patch || die
97    
98     # fix build issues, some wrapper files which should be generated
99     # at build time exist and the makefile doesn't whipe them. we patch
100     # the makefile to clean them and whipe these wrapper files
101     rm -f ${SRCDIR}/hw/xprint/*-wrapper.c || die
102    
103     autoreconf --install --force || die
104     }
105    
106     src_compile()
107     {
108     cd ${SRCDIR}
109    
110     xorg_src_configure \
111     --sysconfdir=/etc/X11 \
112     --localstatedir=/var \
113     --with-default-font-path=built-ins \
114     --enable-install-setuid \
115     --enable-ipv6 \
116     --enable-kdrive \
117     --disable-xephyr \
118     --disable-static \
119     --disable-dmx \
120     --disable-xvfb \
121     --disable-xnest \
122     --disable-install-libxf86config \
123     --disable-dri \
124     --disable-dri2 \
125     --disable-xorg \
126     --disable-xprint \
127     --disable-glx-tls \
128     --disable-glx \
129     --disable-composite \
130     --disable-xorgcfg \
131     --disable-screensaver \
132     --disable-xdmcp \
133     --disable-xinerama \
134     --disable-dga \
135     --disable-xkb \
136     --disable-xevie \
137     --disable-xprint \
138     --disable-xtrap \
139     --disable-w100 \
140     --disable-xsdl \
141     --disable-config-dbus \
142     --disable-config-hal \
143     --enable-config-udev \
144     --with-sha1=libsha1 \
145     --enable-kdrive-kbd \
146     --enable-kdrive-mouse \
147     --enable-kdrive-evdev \
148     || die
149    
150     mmake || die
151     }
152    
153     mcore_generic_src_install()
154     {
155     cd ${SRCDIR}
156     xorg_src_install
157    
158     # suid all tinyX servers
159     mchmod 4755 /usr/bin/X\* || die
160    
161     # cleanup
162     zapmost ${BINDIR}/usr bin share/man || die
163    
164     if [[ -e ${BINDIR}/usr/bin/Xephyr ]]
165     then
166     rm ${BINDIR}/usr/bin/Xephyr || die
167     fi
168    
169     if [[ -e ${BINDIR}/usr/share/man1/Xephyr.1 ]]
170     then
171     rm ${BINDIR}/usr/share/man1/Xephyr.1 || die
172     fi
173    
174     # needed directory
175     mkeepdir /usr/share/X11/xkb/compiled || die
176     }