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 | |
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')
-rw-r--r-- | iraf-os-libs/bld.bat | 3 | ||||
-rw-r--r-- | iraf-os-libs/build.sh | 33 | ||||
-rw-r--r-- | iraf-os-libs/meta.yaml | 14 |
3 files changed, 50 insertions, 0 deletions
diff --git a/iraf-os-libs/bld.bat b/iraf-os-libs/bld.bat new file mode 100644 index 0000000..fa5316a --- /dev/null +++ b/iraf-os-libs/bld.bat @@ -0,0 +1,3 @@ + +echo Not supported on Windows +exit 1
\ No newline at end of file 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/ +) diff --git a/iraf-os-libs/meta.yaml b/iraf-os-libs/meta.yaml new file mode 100644 index 0000000..c5caee5 --- /dev/null +++ b/iraf-os-libs/meta.yaml @@ -0,0 +1,14 @@ +about: + home: https://www.centos.org + license: MIT / X11 + summary: 32-bit X11 and curses libraries, needed to run ecl and X11IRAF +build: + binary_relocation: True + rpaths: + - lib32/ + number: '0' + skip: True # [not linux] +package: + name: iraf-os-libs + version: "1.0" + |