blob: f3c12374e65d3a79dc9f036b694491538f12ca5e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Copy some 32-bit X11 & curses libs from the OS for ecl & X11IRAF
# These libs don't change much but it's possible that this list might need
# generalizing later, to pick up whatever major version is actually used
# on any given build machine:
libs="libXmu.so.6 libXt.so.6 libSM.so.6 libICE.so.6 libXext.so.6 libX11.so.6 \
libXau.so.6 libXdmcp.so.6 libXfixes.so.3 libXrender.so.1 libncurses.so.5"
oslib="/usr/lib" # CentOS keeps 32-bit libs here
osdoc="/usr/share/doc" # CentOS keeps copyright notices etc. here
destlib="$PREFIX/lib32"
destdoc="$PREFIX/share/doc"
mkdir -p "$destlib" "$destdoc"
# Copy each binary directly from the OS:
for lib in $libs; do
cp -pf "${oslib}/${lib}" "${destlib}/"
done
(
# Include copyright notices, as required by the licences:
cd "$destdoc"
mkdir X11 ncurses
xdoc=`ls "$osdoc"/libX11-?.*/COPYING` # CentOS 5 location
if [ ! -f "$xdoc" ]; then
xdoc=`ls "$osdoc"/xorg-x11-server-common-?.*/COPYING` # CentOS 6
fi
cp -pf "$xdoc" X11/
cp -pf "$osdoc"/ncurses-?.*/README ncurses/
)
|