Contents of /smage/trunk/core/kdrive/kdrive-1.6.5-r2.smage2
Parent Directory | Revision Log
Revision 936 -
(show annotations)
(download)
Tue Dec 7 21:50:54 2010 UTC (13 years, 4 months ago) by niro
File size: 4818 byte(s)
Tue Dec 7 21:50:54 2010 UTC (13 years, 4 months ago) by niro
File size: 4818 byte(s)
-fixed missing deps
1 | # $Id: kdrive-1.6.5-r1.smage2 388 2010-05-06 12:31:37Z niro $ |
2 | |
3 | PNAME="kdrive" |
4 | PVER="1.6.5" |
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 | DEPEND=">= x11-libs/libXfont-1.4.1 |
14 | >= x11-libs/libXau-1.0.5 |
15 | >= x11-libs/libXext-1.1 |
16 | >= x11-libs/libX11-1.3.1 |
17 | >= x11-libs/libXdmcp-1.0.3 |
18 | >= x11-libs/libxkbfile-1.0.6 |
19 | >= x11-libs/pixman-0.16.2 |
20 | >= media-libs/freetype-2.3.9 |
21 | >= media-fonts/font-misc-misc-1 |
22 | >= media-fonts/font-cursor-misc-1 |
23 | >= dev-libs/libsha1-0.2 |
24 | >= x11-misc/xkeyboard-config-1.8" |
25 | # >= x11-libs/libXv-1.0.5 |
26 | |
27 | SDEPEND=">= x11-libs/xtrans-1.2 |
28 | >= x11-proto/randrproto-1.3 |
29 | < x11-proto/renderproto-0.11 |
30 | >= x11-proto/fixesproto-4.1 |
31 | >= x11-proto/damageproto-1.2 |
32 | >= x11-proto/xextproto-7.1.1 |
33 | >= x11-proto/xproto-7.0.16 |
34 | >= x11-proto/xf86dgaproto-2.1 |
35 | >= x11-proto/xf86miscproto-0.9.3 |
36 | >= x11-proto/xf86vidmodeproto-2.3 |
37 | >= x11-proto/xf86bigfontproto-1.2.0 |
38 | >= x11-proto/compositeproto-0.4.1 |
39 | >= x11-proto/recordproto-1.14 |
40 | >= x11-proto/resourceproto-1.1.0 |
41 | >= x11-proto/videoproto-2.3.0 |
42 | >= x11-proto/scrnsaverproto-1.2.0 |
43 | >= x11-proto/evieext-1.1.0 |
44 | >= x11-proto/xineramaproto-1.2 |
45 | >= x11-proto/fontsproto-2.1.0 |
46 | >= x11-proto/kbproto-1.0.4 |
47 | >= x11-proto/inputproto-2.0 |
48 | >= x11-proto/bigreqsproto-1.1.0 |
49 | >= x11-proto/xcmiscproto-1.2.0 |
50 | >= x11-apps/mkfontdir-1.0.5 |
51 | >= x11-apps/mkfontscale-1.0.7" |
52 | |
53 | PROVIDE="virtual/x11" |
54 | |
55 | MCORE_ONLY_KEEP="usr/bin usr/share/X11/xkb usr/$(mlibdir)/xorg/protocol.txt" |
56 | sminclude xorg mtools cleanutils mcore-split |
57 | |
58 | SRCFILE="xorg-server-${PVER}.tar.bz2" |
59 | SRCDIR="${BUILDDIR}/xorg-server-${PVER}" |
60 | |
61 | XEXTPROTO_PVER="7.0.5" |
62 | XEXTPROTO_SRCFILE="xextproto-${XEXTPROTO_PVER}.tar.bz2" |
63 | XEXTPROTO_SRCDIR="${BUILDDIR}/xextproto-${XEXTPROTO_PVER}" |
64 | |
65 | SRC_URI=( |
66 | http://ftp.x.org/pub/individual/xserver/${SRCFILE} |
67 | http://ftp.x.org/pub/individual/proto/${XEXTPROTO_SRCFILE} |
68 | mirror://xorg-server/${SRCFILE} |
69 | mirror://xextproto/${XEXTPROTO_SRCFILE} |
70 | mirror://xorg-server/xorg-server-1.4-fpic-libxf86config.patch |
71 | mirror://xorg-server/xorg-server-1.2.0-die-ugly-pattern-die-die-die.patch |
72 | mirror://xorg-server/xorg-server-1.4.99.906-no-evdev-keyboards.patch |
73 | mirror://xorg-server/xorg-server-1.7.6-libsha1-support.patch |
74 | mirror://xorg-server/xorg-server-1.7.6-dlopen-fix.patch |
75 | mirror://xorg-server/xorg-server-1.8.0-kdrive-default-mode.patch |
76 | ) |
77 | |
78 | UP2SUBDIR="xserver" |
79 | UP2DATE="updatecmd_xorg xorg-server" |
80 | |
81 | src_prepare() |
82 | { |
83 | munpack ${SRCFILE} || die |
84 | |
85 | # xorg-1.6 needs xext headers <= 7.0.5 |
86 | munpack ${XEXTPROTO_SRCFILE} || die |
87 | ln -snf . ${XEXTPROTO_SRCDIR}/X11 || die |
88 | ln -snf . ${XEXTPROTO_SRCDIR}/extensions || die |
89 | cd ${SRCDIR} |
90 | |
91 | # fixes fpic issues with libxf86config on 64bit systems |
92 | mpatch xorg-server-1.4-fpic-libxf86config.patch || die |
93 | |
94 | # adopted from redhat; use a black background |
95 | mpatch xorg-server-1.2.0-die-ugly-pattern-die-die-die.patch || die |
96 | |
97 | # evdev is way too broken |
98 | mpatch xorg-server-1.4.99.906-no-evdev-keyboards.patch || die |
99 | |
100 | # support other sha1 implemtations as well |
101 | mpatch xorg-server-1.7.6-libsha1-support.patch || die |
102 | |
103 | # fix linking issues against dlopen (xfbdev needs this) |
104 | mpatch xorg-server-1.7.6-dlopen-fix.patch || die |
105 | |
106 | # fix kdrive default mode -> use 640x480@60hz instead of 800x600@75hz |
107 | mpatch xorg-server-1.8.0-kdrive-default-mode.patch || die |
108 | |
109 | # fix build issues, some wrapper files which should be generated |
110 | # at build time exist and the makefile doesn't whipe them. we patch |
111 | # the makefile to clean them and whipe these wrapper files |
112 | rm -f ${SRCDIR}/hw/xprint/*-wrapper.c || die |
113 | |
114 | autoreconf --install --force || die |
115 | } |
116 | |
117 | src_compile() |
118 | { |
119 | cd ${SRCDIR} |
120 | |
121 | xorg_src_configure \ |
122 | --sysconfdir=/etc/X11 \ |
123 | --localstatedir=/var \ |
124 | --with-default-font-path=built-ins \ |
125 | --enable-install-setuid \ |
126 | --enable-ipv6 \ |
127 | --enable-kdrive \ |
128 | --disable-xephyr \ |
129 | --disable-static \ |
130 | --disable-dmx \ |
131 | --disable-xvfb \ |
132 | --disable-xnest \ |
133 | --disable-install-libxf86config \ |
134 | --disable-dri \ |
135 | --disable-xorg \ |
136 | --disable-xprint \ |
137 | --disable-glx-tls \ |
138 | --disable-glx \ |
139 | --disable-composite \ |
140 | --disable-xorgcfg \ |
141 | --disable-screensaver \ |
142 | --disable-xdmcp \ |
143 | --disable-xinerama \ |
144 | --disable-dga \ |
145 | --disable-xkb \ |
146 | --disable-xevie \ |
147 | --disable-xprint \ |
148 | --disable-xtrap \ |
149 | --disable-w100 \ |
150 | --disable-xsdl \ |
151 | || die |
152 | |
153 | # include our fake dir with the old xextprotos |
154 | mmake CFLAGS="${CFLAGS} -I${XEXTPROTO_SRCDIR}" || die |
155 | } |
156 | |
157 | mcore_generic_src_install() |
158 | { |
159 | cd ${SRCDIR} |
160 | xorg_src_install |
161 | |
162 | # suid all tinyX servers |
163 | mchmod 4755 /usr/bin/X\* || die |
164 | |
165 | # cleanup |
166 | zapmost ${BINDIR}/usr bin share/man || die |
167 | |
168 | if [[ -e ${BINDIR}/usr/bin/Xephyr ]] |
169 | then |
170 | rm ${BINDIR}/usr/bin/Xephyr || die |
171 | fi |
172 | |
173 | if [[ -e ${BINDIR}/usr/share/man1/Xephyr.1 ]] |
174 | then |
175 | rm ${BINDIR}/usr/share/man1/Xephyr.1 || die |
176 | fi |
177 | |
178 | # needed directory |
179 | mkeepdir /usr/share/X11/xkb/compiled || die |
180 | } |