diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /vendor/voclient/common/mklibs | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'vendor/voclient/common/mklibs')
-rwxr-xr-x | vendor/voclient/common/mklibs | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/vendor/voclient/common/mklibs b/vendor/voclient/common/mklibs new file mode 100755 index 00000000..ba398024 --- /dev/null +++ b/vendor/voclient/common/mklibs @@ -0,0 +1,99 @@ +#!/bin/csh -f + +#set top = `(chdir .. ; pwd)` +set p = `pwd` +set top = $p:h + +setenv CC "gcc" +setenv CXX "g++" + +setenv PLATFORM `uname -s` +setenv PLMACH `uname -m` + + +if ($PLATFORM == "Darwin") then + if ( $?IRAFARCH ) then + if ( "$IRAFARCH" == "macintel" ) then + setenv CFLAGS '-m64 -mmacosx-version-min=10.4' + setenv LDFLAGS '-m64 -mmacosx-version-min=10.4' + setenv LADD '-m64 -mmacosx-version-min=10.4' + else + setenv CFLAGS '-arch i386 -m32 -mmacosx-version-min=10.4' + setenv LDFLAGS '-arch i386 -m32 -mmacosx-version-min=10.4' + setenv LADD '-arch i386 -m32 -mmacosx-version-min=10.4' + endif + endif + set build_curl = 1 +else + setenv CFLAGS "-O2" + set build_curl = 1 +endif + + +set build_cfitsio = 0 + + + +echo "Building support libraries ...." +echo " (Using toplevel directory '"$top/"' ....)" + +# Global options. +set gopts = "--prefix=$top/ --exec-prefix=$top/ --disable-shared" + +#echo " Cleaning files ...." +#./mkclean + +if ($build_cfitsio == 1) then + echo " Building CFITSIO libs ...." + (cd cfitsio ; ./mklibs) + +else + if ( (! (-e lib/libcfitsio.a)) && (-e ../../bin/libcfitsio.a)) then + ln -s ../../bin/libcfitsio.a lib/libcfitsio.a + endif +endif + + + + +if ($build_curl == 1) then + + echo -n " Building CURL libs ...." + set opts = "$gopts \ + --disable-ftp \ + --disable-file \ + --disable-ldap \ + --disable-ldaps \ + --disable-proxy \ + --disable-dict \ + --disable-telnet \ + --disable-tftp \ + --disable-manual \ + --disable-ipv6 \ + --disable-ares \ + --disable-sspi \ + --disable-crypto-auth \ + --without-krb4 \ + --without-ssl \ + --without-zlib \ + --without-libssh2 \ + --without-gnutls \ + --without-nss \ + --without-ca-path \ + --without-libidn" + (chdir curl ; \ + ./configure $opts >& _spool ; \ + make clean >>& _spool ; \ + make >>& _spool ; \ + make install >>& _spool) + #cp -rp curl/lib/libcurl.*a ../lib/ + cp -rp curl/include/* ../include/ + #/bin/rm -rf lib include share bin + #(chdir curl ; make clean >>& _spool) + echo "done" + +else + if ( (! (-e lib/libcurl.a)) && (-e ../../bin/libcurl.a)) then + ln -s ../../bin/libcurl.a lib/libcurl.a + endif +endif |