From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- vendor/mklibs | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100755 vendor/mklibs (limited to 'vendor/mklibs') diff --git a/vendor/mklibs b/vendor/mklibs new file mode 100755 index 00000000..b248cdbe --- /dev/null +++ b/vendor/mklibs @@ -0,0 +1,75 @@ +#!/bin/csh -f + +set p = `pwd` +set top = $p:h + +setenv CC "gcc" +setenv CXX "g++" + +set build_cfitsio = 1 +set build_readline = 1 # not needed in v2.16.1 and beyond +set build_voclient = 1 + + +echo "Building support libraries ...." +echo " (Using toplevel directory '"$top/"' ....)" + +# Global options. +set gopts = "--prefix=$top/ --exec-prefix=$top/ --disable-shared" + +#echo " Cleaning files ...." +#./mkclean + + + +#################################################################### +#### CFITSIO Library +#################################################################### +if ($build_cfitsio == 1) then + + echo -n " Building CFITSIO libs ...." + set opts = "$gopts --bindir=$top/bin --libdir=$top/bin" + (chdir cfitsio ; \ + ./configure $opts >& _spool ; \ + make clean >>& _spool ; \ + make >>& _spool ; \ + make install >>& _spool) + (chdir cfitsio ; make clean >>& _spool ) + echo "done" + +endif + + + +#################################################################### +#### READLINE Library +#################################################################### +if ($build_readline == 1) then + + echo -n " Building Readline libs ...." + set opts = "$gopts --bindir=../../bin --libdir=../../bin" + (chdir readline ; mkpkg ; make clean >& _spool) + echo "done" + +endif + + + +#################################################################### +#### VOClient Library +#################################################################### +if ($build_voclient == 1) then + + echo -n " Building VOClient libs ...." + + (chdir voclient ; \ + make all >>& _spool ; \ + cp lib/libVO.a ../../bin/ >>& _spool ; \ + cp voclient.jar ../../vo/java/ >>& _spool ; \ + cp voclientd ../../vo/java/ >>& _spool ; \ + make clean >>& _spool ) + echo "done" + +endif + + -- cgit