diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-10-01 22:45:59 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-10-01 22:45:59 -0400 |
commit | 6ccf7a682493db0fb3f5ce7b680efe598d619523 (patch) | |
tree | 74fb180f23e656dbfbd9d23f3aa394742e2d0307 /deprecated | |
parent | ede6dfcf3833bb5bfd59dbfa479162c62fb6d06a (diff) | |
download | cbc-recipes-6ccf7a682493db0fb3f5ce7b680efe598d619523.tar.gz |
Refactoring structure. Add "deprecated"
Diffstat (limited to 'deprecated')
-rw-r--r-- | deprecated/iraf-src/iraf.ini | 116 | ||||
-rw-r--r-- | deprecated/iraf-stsci/iraf.ini | 53 | ||||
-rw-r--r-- | deprecated/iraf/iraf.ini | 48 |
3 files changed, 217 insertions, 0 deletions
diff --git a/deprecated/iraf-src/iraf.ini b/deprecated/iraf-src/iraf.ini new file mode 100644 index 0000000..7a14ccb --- /dev/null +++ b/deprecated/iraf-src/iraf.ini @@ -0,0 +1,116 @@ +[package] +name: iraf +version: 2.16.1 + +[about] +home: http://iraf.noao.edu +license: MIT +summary: NOAO Image Reduction and Analysis Facility + +[source] +# Remember, always 32-bit! Now feast upon my tears. +#fn: ${package:name}.lnux.x86.fixup.tar.gz +#url: ${cbc_cgi:url}/${fn} +git_url: ssh://git@bitbucket.org/jhunkeler/${package:name}-src + +# Tarball should be generated with: +# git archive --format tar.gz --prefix iraf/ -o ../iraf.lnux.x86.fixup.tar.gz -v master + +[build] +number: 1 +#detect_binary_files_with_prefix: True + +[requirements] +build: + # Luck +run: + # Gallant effort + +[cbc_build] +linux: + export TERM=xterm + export iraf=$$PREFIX/iraf/ + export IRAFARCH=macosx + + cp -a `pwd` $$PREFIX/iraf + cd $$PREFIX/iraf + + export FAKEHOME=$$PREFIX/iraf/fakehome + mkdir -p $$FAKEHOME + + ./install \ + --accept-defaults \ + --fakehome $$FAKEHOME \ + --term xterm \ + --mach $$IRAFARCH \ + --bindir $$FAKEHOME/bin \ + --cache $$FAKEHOME/cache \ + --imdir $$FAKEHOME/imdir \ + --no-errors + + sed -i -e "s|exit|return|g" unix/hlib/irafuser.* + source unix/hlib/irafuser.sh + # Fix me? why did i unset it? + export FAKEHOME=$$PREFIX/iraf/fakehome + + mkdir -p bin.generic + mkdir -p bin.$$IRAFARCH + + find . -lname '/iraf/iraf/*' \ + -exec sh -c 'ln -snf \ + "$$(readlink "$$0" \ + | sed -e "s|/iraf/iraf|../..|" -e "s|/as/|/as.$$IRAFARCH/|")" "$$0"' {} \; + + find "$$iraf" -type f \ + \( -name "*.c" \ + -o -name "*.f" \ + -o -name "*.h" \ + -o -name "*.x" \ + -o -name "*.sh*" \ + -o -name "*.csh*" \ + -o -name "*akefile*" \ + -o -name "*mkpkg*" \ + -o -name "*mklibs*" \ + -o -name "*mkbase*" \ + -o -name "*zzsetenv.def*" \ + -o -name "*install*" \) \ + -exec sed -i -e "s|/iraf/iraf|$$PREFIX/iraf|g" '{}' \; + + export CFLAGS="-arch i386 -m32 -I$$FAKEHOME/ -I $$iraf/include -I$$iraf/bin" + export LDFLAGS="-arch i386" + + mkdir -p override + ln -sf /usr/bin/libtool override/ + ln -sf /usr/bin/ranlib override/ + export PATH=$$iraf/override:$$PATH + + rm -rf include + mkdir -p include + + #ln -s ../unix/hlib/libc/iraf.h $$FAKEHOME/ + ln -s ../unix/hlib/libc/iraf.h $$iraf/include/ + ln -s ../unix/bin/f2c.h $$iraf/include/ + cp $$iraf/unix/hlib/libc/vosproto.h $$iraf/include/ + cp $$iraf/unix/boot/xyacc/yaccpar.x $$iraf/include/ + mkdir -p $$iraf/include/curl && touch $$iraf/include/curl/types.h + + touch $$iraf/extern/.zzsetenv.def + + echo '$$set XFLAGS = "$$(XFLAGS) -/I$$(iraf)fakehome -/I$$(iraf)include"' >> unix/hlib/mkpkg.inc + echo '$$set XVFLAGS = "$$(XVFLAGS) -/I$$(iraf)fakehome -/I$$(iraf)include"' >> unix/hlib/mkpkg.inc + echo '$$set LFLAGS = "$$(LFLAGS) -/I$$(iraf)fakehome -/I$$(iraf)include" -/L$$(iraf)bin -/$$(iraf)bin.$$(IRAFARCH)' >> unix/hlib/mkpkg.inc + + ( cd unix/f2c/src && \ + make -f makefile.u CFLAGS="$$CFLAGS" LDFLAGS="$$LDFLAGS" && \ + cp f2c $$iraf/unix/bin.$$IRAFARCH/f2c.e ) + + ( cd unix/f2c/libf2c && \ + make -f makefile.u CFLAGS="$$CFLAGS" LDFLAGS="$$LDFLAGS" && \ + cp f2c.h libf2c.a $$iraf/unix/bin.$$IRAFARCH/ ) + + ( make $$IRAFARCH && \ + util/mksysgen ) + +windows: + echo Not supported on Windows + diff --git a/deprecated/iraf-stsci/iraf.ini b/deprecated/iraf-stsci/iraf.ini new file mode 100644 index 0000000..2ca77b5 --- /dev/null +++ b/deprecated/iraf-stsci/iraf.ini @@ -0,0 +1,53 @@ +[package] +name: iraf +version: 2.16.1 + +[about] +home: http://iraf.noao.edu +license: MIT +summary: NOAO Image Reduction and Analysis Facility + +[source] +# Remember, always 32-bit! Now feast upon my tears. +#fn: ${package:name}.lnux.x86.fixup.tar.gz +#url: ${cbc_cgi:url}/${fn} +git_url: ssh://git@bitbucket.org/jhunkeler/${package:name}-stsci + +[build] +number: 1 +detect_binary_files_with_prefix: True + +[requirements] +build: + # Luck + gcc +run: + # Gallant effort + +[cbc_build] +linux: + export TERM=xterm + export PATH=`purge_path /sw` + export FAKEHOME=$$PREFIX/iraf/fakehome + export IRAFARCH=macosx + export CFLAGS="-m32 -arch i386" + export LDFLAGS="-m32 -arch i386" + cp -a `pwd` $$PREFIX/iraf + cd $$PREFIX/iraf + #mkdir override_sysutil + #( cd override_sysutil \ + # && ln -s /usr/bin/libtool \ + # && ln -s /usr/bin/ranlib \ + # && ln -s /usr/bin/ld ) + #export PATH=`pwd`/override_sysutil:$$PATH + + mkdir sm_logs + export sm_logs=`pwd`/sm_logs + + mkdir -p $$FAKEHOME/cache + export SHELL=/bin/tcsh + ./build + export SHELL=/bin/bash + +windows: + echo Not supported on Windows diff --git a/deprecated/iraf/iraf.ini b/deprecated/iraf/iraf.ini new file mode 100644 index 0000000..0d6f77e --- /dev/null +++ b/deprecated/iraf/iraf.ini @@ -0,0 +1,48 @@ +[package] +name: iraf +version: 2.16.1 + +[about] +home: http://iraf.noao.edu +license: MIT +summary: NOAO Image Reduction and Analysis Facility + +[source] +# Remember, always 32-bit! Now feast upon my tears. +#fn: ${package:name}.lnux.x86.fixup.tar.gz +#url: ${cbc_cgi:url}/${fn} +git_url: https://bitbucket.org/jhunkeler/${package:name} + +# Tarball should be generated with: +# git archive --format tar.gz --prefix iraf/ -o ../iraf.lnux.x86.fixup.tar.gz -v master + +[build] +number: 1 +detect_binary_files_with_prefix: True + +[requirements] +build: + # Luck +run: + # Gallant effort + +[cbc_build] +linux: + export TERM=xterm + FAKEHOME=$$PREFIX/iraf/fakehome + cp -a `pwd` $$PREFIX/iraf + cd $$PREFIX/iraf + ./install \ + --accept-defaults \ + --fakehome $$FAKEHOME \ + --term xterm \ + --mach linux \ + --bindir $$FAKEHOME/bin \ + --cache $$FAKEHOME/cache \ + --imdir $$FAKEHOME/imdir + rm -f bin + ln -s bin.linux bin + ln -s bin.linux bin.linux64 + +windows: + echo Not supported on Windows |