diff options
-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" + |