File builders/libxkbfile-1.1.2/builder.sh copied from file builders/libXi-1.8.1/builder.sh (similarity 68%) (mode: 100644) (index 7b71a08..ca70fe3) |
1 |
|
src_name=libXi |
|
|
1 |
|
src_name=libxkbfile |
2 |
2 |
version=${pkg_name##*-} |
version=${pkg_name##*-} |
3 |
3 |
slot=$version |
slot=$version |
4 |
4 |
archive_name=$src_name-$version.tar.xz |
archive_name=$src_name-$version.tar.xz |
|
... |
... |
$build_dir/bin:\ |
55 |
55 |
$PATH\ |
$PATH\ |
56 |
56 |
" |
" |
57 |
57 |
|
|
58 |
|
XI2_src_files="\ |
|
59 |
|
XIAllowEvents.c \ |
|
60 |
|
XIGrabDevice.c \ |
|
61 |
|
XIQueryVersion.c \ |
|
62 |
|
XIQueryDevice.c \ |
|
63 |
|
XISetDevFocus.c \ |
|
64 |
|
XIGetDevFocus.c \ |
|
65 |
|
XIPassiveGrab.c \ |
|
66 |
|
XIProperties.c \ |
|
67 |
|
XISelEv.c \ |
|
68 |
|
XISetCPtr.c \ |
|
69 |
|
XIWarpPointer.c \ |
|
70 |
|
XIHierarchy.c \ |
|
71 |
|
XIDefineCursor.c \ |
|
72 |
|
XIQueryPointer.c \ |
|
73 |
|
XIBarrier.c \ |
|
74 |
|
" |
|
75 |
|
|
|
76 |
|
libXi_src_files="\ |
|
77 |
|
XAllowDv.c \ |
|
78 |
|
XChDProp.c \ |
|
79 |
|
XChgDCtl.c \ |
|
80 |
|
XChgFCtl.c \ |
|
81 |
|
XChgKbd.c \ |
|
82 |
|
XChgKMap.c \ |
|
83 |
|
XChgPnt.c \ |
|
84 |
|
XChgProp.c \ |
|
85 |
|
XCloseDev.c \ |
|
86 |
|
XDelDProp.c \ |
|
87 |
|
XDevBell.c \ |
|
88 |
|
XExtToWire.c \ |
|
89 |
|
XGetBMap.c \ |
|
90 |
|
XGetCPtr.c \ |
|
91 |
|
XGetDCtl.c \ |
|
92 |
|
XGetDProp.c \ |
|
93 |
|
XGetFCtl.c \ |
|
94 |
|
XGetKMap.c \ |
|
95 |
|
XGetMMap.c \ |
|
96 |
|
XGetProp.c \ |
|
97 |
|
XGetVers.c \ |
|
98 |
|
XGMotion.c \ |
|
99 |
|
XGrabDev.c \ |
|
100 |
|
XGrDvBut.c \ |
|
101 |
|
XGrDvKey.c \ |
|
102 |
|
XGtFocus.c \ |
|
103 |
|
XGtSelect.c \ |
|
104 |
|
XListDev.c \ |
|
105 |
|
XListDProp.c \ |
|
106 |
|
XOpenDev.c \ |
|
107 |
|
XQueryDv.c \ |
|
108 |
|
XSelect.c \ |
|
109 |
|
XSetBMap.c \ |
|
110 |
|
XSetDVal.c \ |
|
111 |
|
XSetMMap.c \ |
|
112 |
|
XSetMode.c \ |
|
113 |
|
XSndExEv.c \ |
|
114 |
|
XStFocus.c \ |
|
115 |
|
XUngrDev.c \ |
|
116 |
|
XUngrDvB.c \ |
|
117 |
|
XUngrDvK.c \ |
|
118 |
|
XExtInt.c \ |
|
119 |
|
$XI2_src_files \ |
|
|
58 |
|
libxkbfile_src_files="\ |
|
59 |
|
cout.c \ |
|
60 |
|
maprules.c \ |
|
61 |
|
srvmisc.c \ |
|
62 |
|
xkbatom.c \ |
|
63 |
|
xkbbells.c \ |
|
64 |
|
xkbconfig.c \ |
|
65 |
|
xkbdraw.c \ |
|
66 |
|
xkberrs.c \ |
|
67 |
|
xkbmisc.c \ |
|
68 |
|
xkbout.c \ |
|
69 |
|
xkbtext.c \ |
|
70 |
|
xkmout.c \ |
|
71 |
|
xkmread.c \ |
120 |
72 |
" |
" |
121 |
73 |
#--------------------------------------------------------------------------------------------------- |
#--------------------------------------------------------------------------------------------------- |
122 |
74 |
# TODO: we are still using the compiler driver, bad |
# TODO: we are still using the compiler driver, bad |
123 |
|
for f in $libXi_src_files |
|
|
75 |
|
for f in $libxkbfile_src_files |
124 |
76 |
do |
do |
125 |
77 |
o=$(basename $f .c).o |
o=$(basename $f .c).o |
126 |
78 |
os="$os $o" |
os="$os $o" |
127 |
79 |
|
|
128 |
80 |
printf "CC $f->$o\n" |
printf "CC $f->$o\n" |
129 |
81 |
cc -c $pkg_dir/src/$f -o $build_dir/$o \ |
cc -c $pkg_dir/src/$f -o $build_dir/$o \ |
|
82 |
|
-DHAVE_UNLOCKED_STDIO \ |
|
83 |
|
-DHAVE_STRCASECMP \ |
|
84 |
|
-DHAVE_STRNDUP \ |
|
85 |
|
-I$pkg_dir/include/X11/extensions \ |
130 |
86 |
-I$pkg_dir/include & |
-I$pkg_dir/include & |
131 |
87 |
done |
done |
132 |
88 |
#--------------------------------------------------------------------------------------------------- |
#--------------------------------------------------------------------------------------------------- |
|
... |
... |
wait |
135 |
91 |
# TODO: we are still using the compiler driver, bad |
# TODO: we are still using the compiler driver, bad |
136 |
92 |
# no version file and it expects all symbols to end up in dynamic table, aka must not use default |
# no version file and it expects all symbols to end up in dynamic table, aka must not use default |
137 |
93 |
# hidden visibility |
# hidden visibility |
138 |
|
printf "CCLD libXi.so.6.1.0\n" |
|
139 |
|
cc -o $build_dir/libXi.so.6.1.0 \ |
|
140 |
|
-shared -Wl,--soname=libXi.so.6 -Wl,-s -Wl,-no-undefined \ |
|
|
94 |
|
printf "CCLD libxkbfile.so.1.0.2\n" |
|
95 |
|
cc -o $build_dir/libxkbfile.so.1.0.2 \ |
|
96 |
|
-shared -Wl,--soname=libxkbfile.so.1 -Wl,-s -Wl,-no-undefined \ |
141 |
97 |
$os \ |
$os \ |
142 |
|
-lX11 \ |
|
143 |
|
-lXext |
|
|
98 |
|
-lX11 |
144 |
99 |
#--------------------------------------------------------------------------------------------------- |
#--------------------------------------------------------------------------------------------------- |
145 |
100 |
mkdir -p /nyan/$src_name/$slot/lib |
mkdir -p /nyan/$src_name/$slot/lib |
146 |
101 |
rm -Rf /nyan/$src_name/$slot/include/X11/extensions |
rm -Rf /nyan/$src_name/$slot/include/X11/extensions |
147 |
102 |
mkdir -p /nyan/$src_name/$slot/include/X11 |
mkdir -p /nyan/$src_name/$slot/include/X11 |
148 |
103 |
|
|
149 |
104 |
cp -r $pkg_dir/include/X11/extensions /nyan/$src_name/$slot/include/X11 |
cp -r $pkg_dir/include/X11/extensions /nyan/$src_name/$slot/include/X11 |
150 |
|
cp -f $build_dir/libXi.so.6.1.0 /nyan/$src_name/$slot/lib |
|
|
105 |
|
cp -f $build_dir/libxkbfile.so.1.0.2 /nyan/$src_name/$slot/lib |
151 |
106 |
|
|
152 |
|
ln -sTf libXi.so.6.1.0 /nyan/$src_name/$slot/lib/libXi.so |
|
|
107 |
|
ln -sTf libxkbfile.so.1.0.2 /nyan/$src_name/$slot/lib/libxkbfile.so |
153 |
108 |
#--------------------------------------------------------------------------------------------------- |
#--------------------------------------------------------------------------------------------------- |
154 |
109 |
mkdir -p /usr/lib |
mkdir -p /usr/lib |
155 |
|
ln -sTf /nyan/$src_name/current/lib/libXi.so.6.1.0 /usr/lib/libXi.so.6 |
|
|
110 |
|
# XXX:current and not slot |
|
111 |
|
ln -sTf /nyan/$src_name/current/lib/libxkbfile.so.1.0.2 /usr/lib/libxkbfile.so.1 |
156 |
112 |
#--------------------------------------------------------------------------------------------------- |
#--------------------------------------------------------------------------------------------------- |
|
113 |
|
|
157 |
114 |
export PATH=$PATH_SAVED |
export PATH=$PATH_SAVED |
158 |
115 |
unset PATH_SAVED |
unset PATH_SAVED |
159 |
116 |
rm -f $pkgs_dir_root/$archive_name |
rm -f $pkgs_dir_root/$archive_name |