diff options
author | James Turner <jturner@gemini.edu> | 2016-10-20 20:38:59 -0400 |
---|---|---|
committer | James Turner <jturner@gemini.edu> | 2016-10-20 20:38:59 -0400 |
commit | 0d6feeba8933247fff11404ce905ae9618f0c265 (patch) | |
tree | 1edbd8f3c07a998df248043e24ac16f3b253384c /iraf-os-libs/build.sh | |
parent | e18194d896c17bc3a31198972981e652fea79596 (diff) | |
download | astroconda-iraf-0d6feeba8933247fff11404ce905ae9618f0c265.tar.gz |
Add a package to copy 32-bit X11/curses libs from the OS that are needed by ecl & X11IRAF (as in Ureka).
Diffstat (limited to 'iraf-os-libs/build.sh')
-rw-r--r-- | iraf-os-libs/build.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/iraf-os-libs/build.sh b/iraf-os-libs/build.sh new file mode 100644 index 0000000..746bc99 --- /dev/null +++ b/iraf-os-libs/build.sh @@ -0,0 +1,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" + +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/ +) |