Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id