• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision6843b1f41c0f763a1999ff8d9731b4a020073b8d (tree)
l'heure2012-03-04 11:30:16
Auteurmatsuand <matsuand@user...>
Commitermatsuand

Message de Log

[BLFS] Added Xorg/driver.

Change Summary

Modification

--- /dev/null
+++ b/BLFS/Xorg/driver.sh
@@ -0,0 +1,98 @@
1+#!/bin/sh
2+
3+section=driver
4+version=7.6-2
5+
6+TARGET=${section}-${version}
7+TARGETDIR=${section}
8+
9+. ../_blfsset.sh
10+. ./_xorgset.sh
11+
12+mkdir -pv $XORGDLD/$TARGETDIR
13+mkdir -pv $XORGSRC/$TARGETDIR
14+
15+cd $XORGDLD/$TARGETDIR
16+
17+echo Wgetting...
18+grep -v '^#' ../${section}-${version}.wget | wget -N -i- -c \
19+ -B http://xorg.freedesktop.org/releases/individual/${section}/ \
20+ 1> $LOG/Xorg-$section.log 2>&1
21+md5sum -c ../${section}-${version}.md5 \
22+ 1>> $LOG/Xorg-$section.log 2>&1
23+
24+cd $XORGSRC/$TARGETDIR
25+
26+# build packages
27+for package in $(grep -v '^#' $XORGDLD/${section}-${version}.wget)
28+do
29+ packagedir=$(echo $package | sed 's/.tar.bz2//')
30+echo $packagedir
31+echo \ \ Removing old directory...
32+ rm -fr $packagedir
33+echo \ \ Extracting...
34+ tar -xf $XORGDLD/$TARGETDIR/$package || (echo Tarball not found && exit 1)
35+ cd $packagedir
36+
37+case $(basename "$PWD") in
38+xf86-input-evdev-[0-9]* | xf86-video-ati-[0-9]* | \
39+xf86-video-fbdev-[0-9]* | xf86-video-glint-[0-9]* | \
40+xf86-video-newport-[0-9]* )
41+ sed -i -e "s/\xc3\xb8/\\\\[\/o]/" \
42+ -e "s/\xc3\xa4/\\\\[:a]/" \
43+ -e "s/\xc3\x9c/\\\\[:U]/" man/*.man
44+ ;;
45+esac &&
46+case $(basename "$PWD") in
47+xf86-video-s3-[0-9]* | xf86-video-xgi-[0-9]* )
48+ for file in `grep -Rl "xf86Version.h" *`
49+ do
50+ sed 's@xf86Version.h@xorgVersion.h@g' -i "$file"
51+ done
52+ ;;
53+esac
54+case $(basename "$PWD") in
55+xf86-video-vmware-[0-9]* )
56+
57+echo \ \ Patching...
58+ patch -Np1 -i $WRK/patch/xf86-video-vmware-10.16.8.patch \
59+ 1> $LOG/$packagedir.0_patch.log 2>&1 || exit 1
60+ ;;
61+xf86-video-s3-[0-9]* | xf86-video-xgi-[0-9]* )
62+ for file in `grep -Rl "xf86Version.h" *`
63+ do
64+ sed 's@xf86Version.h@xorgVersion.h@g' -i "$file"
65+ done
66+ ;;
67+esac
68+
69+#case $(basename "$PWD") in
70+#xf86-video-xgixp-[0-9]* )
71+#
72+#echo \ \ Patching...
73+# patch -Np1 -i $DLD/xf86-video-xgixp-1.7.99.4.patch \
74+# 1> $LOG/$packagedir.0_patch.log 2>&1 || exit 1
75+# ;;
76+#esac
77+
78+echo \ \ Configuring...
79+ ./configure $XORG_CONFIG \
80+ --with-xorg-module-dir=$XORG_PREFIX/lib/X11/modules \
81+ 1> $LOG/$packagedir.1_conf.log 2>&1 || exit 1
82+echo \ \ Making...
83+ make \
84+ 1> $LOG/$packagedir.2_make.log 2>&1 || exit 1
85+echo \ \ Installing...
86+ paco -p Xorg-${section}-${packagedir} 'make install' \
87+ 1> $LOG/$packagedir.3_install.log 2>&1 || exit 1
88+ cd ..
89+echo -n \ \ Pacoing:\ && paco -a1 | grep Xorg-${section}-${packagedir} || echo none
90+echo \ \ Removing directory...
91+ rm -fr $packagedir
92+done
93+
94+echo y | paco -rr Xorg-${section}-xf86-video-newport
95+echo y | paco -rr Xorg-${section}-xf86-video-xgi
96+echo y | paco -rr Xorg-${section}-xf86-video-xgixp
97+echo y | paco -rr Xorg-${section}-xf86-video-fbdev
98+