2006-02-23 17:10:28 +00:00
|
|
|
|
# Description: The Open Group X Window System
|
2006-03-15 07:08:44 +00:00
|
|
|
|
# Maintainer: J<>rgen Daubert, juergen dot daubert at t-online dot de
|
|
|
|
|
# Packager: Daniel Mueller, daniel at danm dot de
|
|
|
|
|
# URL: http://xorg.freedesktop.org/wiki/
|
|
|
|
|
# Depends on: ncurses, libpng, fontconfig
|
2006-02-23 17:10:28 +00:00
|
|
|
|
|
|
|
|
|
name=x11
|
2006-02-23 18:52:07 +00:00
|
|
|
|
version=6.9.0
|
2006-03-15 07:08:44 +00:00
|
|
|
|
release=2
|
|
|
|
|
source=(http://ftp.x.org/pub/X11R${version}/src-single/X11R${version}-src.tar.bz2 \
|
2006-03-20 18:42:41 +00:00
|
|
|
|
$name-$version-xterm256.patch $name-$version-linux_config.patch xdm host.def http://xorg.freedesktop.org/releases/X11R${version}/patches/${name}r${version}-geteuid.diff)
|
2006-02-23 17:10:28 +00:00
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
cd xc
|
2006-03-15 07:08:44 +00:00
|
|
|
|
patch -p1 < $SRC/$name-$version-xterm256.patch
|
|
|
|
|
patch -p1 < $SRC/$name-$version-linux_config.patch
|
2006-03-20 18:42:41 +00:00
|
|
|
|
patch -p0 < $SRC/${name}r${version}-geteuid.diff
|
2006-03-15 07:08:44 +00:00
|
|
|
|
|
2006-02-23 18:52:07 +00:00
|
|
|
|
sed "s/#CFLAGS#/$CFLAGS/" $SRC/host.def > config/cf/host.def
|
2006-02-23 17:10:28 +00:00
|
|
|
|
make World
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
make DESTDIR=$PKG install.man
|
2006-03-15 07:08:44 +00:00
|
|
|
|
|
|
|
|
|
rm -rf $PKG/usr/X11R6/lib/X11/doc \
|
|
|
|
|
$PKG/usr/X11R6/src \
|
|
|
|
|
$PKG/usr/include/GL \
|
|
|
|
|
$PKG/etc/rc.d \
|
|
|
|
|
$PKG/usr/lib
|
|
|
|
|
|
2006-02-23 18:52:07 +00:00
|
|
|
|
install -D -m 755 $SRC/xdm $PKG/etc/rc.d/xdm
|
2006-03-15 07:08:44 +00:00
|
|
|
|
ln -s ../X11R6/include/X11 $PKG/usr/include/X11
|
|
|
|
|
ln -s ../X11R6/include/GL $PKG/usr/include/GL
|
|
|
|
|
touch $PKG/usr/X11R6/man/whatis
|
|
|
|
|
|
2006-02-23 18:52:07 +00:00
|
|
|
|
# Fix a bug with XDM, otherwise you may not be able to
|
|
|
|
|
# type your login-info.
|
2006-03-15 07:08:44 +00:00
|
|
|
|
sed -i -e 's|:0 local.*|& vt7|' $PKG/etc/X11/xdm/Xservers
|
|
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/lib
|
|
|
|
|
mv $PKG/usr/X11R6/lib/pkgconfig $PKG/usr/lib
|
|
|
|
|
mv $PKG/etc/{init.d,profile.d} $PKG/etc/X11
|
|
|
|
|
|
|
|
|
|
chmod -R +w $PKG
|
2006-02-23 17:10:28 +00:00
|
|
|
|
}
|