Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update IRAF packages #21

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
sudo installer -package /Volumes/XQuartz-2.8.1/XQuartz.pkg -target /
sudo rm -f /usr/local/include/tcl.h

- name: Setup required build tools from brew (ImageMagic for the moment)
run: |
brew install imagemagick

- name: Build package
run: |
make -j 4
Expand Down
34 changes: 26 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ PKGS = core.pkg ximtool.pkg xgterm.pkg ctio.pkg fitsutil.pkg mscred.pkg \

core.pkg:
mkdir -p $(BUILDDIR)/iraf
curl -L https://github.com/iraf-community/iraf/archive/refs/tags/v2.18.tar.gz | \
curl -L https://github.com/iraf-community/iraf/archive/refs/tags/v2.18.1rc1.tar.gz | \
tar xzf - -C $(BUILDDIR)/iraf --strip-components=1
$(MAKE) -C $(BUILDDIR)/iraf
mkdir -p $(INSTDIR)/iraf
Expand All @@ -54,12 +54,12 @@ core.pkg:
--root $(INSTDIR)/iraf \
--install-location / \
$(PKGBUILD_ARG) \
--version 2.18 \
--version 2.18.1rc1 \
$@

ximtool.pkg: core.pkg
mkdir -p $(BUILDDIR)/x11iraf
curl -L https://github.com/iraf-community/x11iraf/archive/refs/tags/v2.1.tar.gz | \
curl -L https://github.com/iraf-community/x11iraf/archive/refs/tags/v2.2rc1.tar.gz | \
tar xzf - -C $(BUILDDIR)/x11iraf --strip-components=1
patch -d $(BUILDDIR)/x11iraf -p1 < \
xgterm/patches/0001-Force-setting-of-local-terminfo-database.patch
Expand All @@ -74,9 +74,18 @@ ximtool.pkg: core.pkg
install -m755 $(BUILDDIR)/x11iraf/ximtool/clients/ism_wcspix.e \
$(INSTDIR)/ximtool/XImtool.app/Contents/Resources/bin
install ximtool/Info.plist $(INSTDIR)/ximtool/XImtool.app/Contents/Info.plist
mkdir $(BUILDDIR)/x11iraf/ximtool/XImtool.iconset
for sz in 16 32 64 128 256 512 1024; do \
magick $(BUILDDIR)/x11iraf/ximtool/XImtool.xcf -background transparent -flatten \
-bordercolor transparent -border 5% -scale $${sz}x$${sz} \
$(BUILDDIR)/x11iraf/ximtool/XImtool.iconset/icon_$${sz}x$${sz}.png ; \
sz2=$$(expr $${sz} / 2) \
cp $(BUILDDIR)/x11iraf/ximtool/XImtool.iconset/icon_$${sz}x$${sz}.png \
$(BUILDDIR)/x11iraf/ximtool/XImtool.iconset/icon_$${sz2}x$${sz2}@2x.png ; \
done
iconutil --convert icns \
--output $(INSTDIR)/ximtool/XImtool.app/Contents/Resources/XImtool.icns \
ximtool/XImtool.iconset/
$(BUILDDIR)/x11iraf/ximtool/XImtool.iconset/
install $(BUILDDIR)/x11iraf/ximtool/ximtool.man \
$(INSTDIR)/ximtool/XImtool.app/Contents/Resources/man/ximtool.1
codesign -s - -i community.iraf.ximtool $(INSTDIR)/ximtool/XImtool.app
Expand All @@ -85,7 +94,7 @@ ximtool.pkg: core.pkg
--install-location /Applications \
--scripts ximtool/scripts \
$(PKGBUILD_ARG) \
--version 2.1 \
--version 2.2rc1 \
ximtool.pkg

xgterm.pkg: ximtool.pkg # This re-uses the same build as ximtool
Expand All @@ -97,9 +106,18 @@ xgterm.pkg: ximtool.pkg # This re-uses the same build as ximtool
$(INSTDIR)/xgterm/XGTerm.app/Contents/Resources/bin
install -m755 xgterm/XGTerm $(INSTDIR)/xgterm/XGTerm.app/Contents/MacOS
install xgterm/Info.plist $(INSTDIR)/xgterm/XGTerm.app/Contents/Info.plist
mkdir $(BUILDDIR)/x11iraf/xgterm/XGTerm.iconset
for sz in 16 32 64 128 256 512 1024; do \
magick $(BUILDDIR)/x11iraf/xgterm/XGTerm.xcf -background transparent -flatten \
-bordercolor transparent -border 5% -scale $${sz}x$${sz} \
$(BUILDDIR)/x11iraf/xgterm/XGTerm.iconset/icon_$${sz}x$${sz}.png ; \
sz2=$$(expr $${sz} / 2) ; \
cp $(BUILDDIR)/x11iraf/xgterm/XGTerm.iconset/icon_$${sz}x$${sz}.png \
$(BUILDDIR)/x11iraf/xgterm/XGTerm.iconset/icon_$${sz2}x$${sz2}@2x.png ; \
done
iconutil --convert icns \
--output $(INSTDIR)/xgterm/XGTerm.app/Contents/Resources/XGTerm.icns \
xgterm/XGTerm.iconset/
$(BUILDDIR)/x11iraf/xgterm/XGTerm.iconset/
install $(BUILDDIR)/x11iraf/xgterm/xgterm.man \
$(INSTDIR)/xgterm/XGTerm.app/Contents/Resources/man/xgterm.1
tic -v -o $(INSTDIR)/xgterm/XGTerm.app/Contents/Resources/terminfo \
Expand All @@ -110,7 +128,7 @@ xgterm.pkg: ximtool.pkg # This re-uses the same build as ximtool
--install-location /Applications \
--scripts xgterm/scripts \
$(PKGBUILD_ARG) \
--version 2.1 \
--version 2.2rc1 \
xgterm.pkg


Expand Down Expand Up @@ -142,7 +160,7 @@ $(BUILDDIR)/cfitsio/libcfitsio.a:

fitsutil.pkg: core.pkg $(BUILDDIR)/cfitsio/libcfitsio.a
mkdir -p $(BUILDDIR)/fitsutil
curl -L https://github.com/iraf-community/iraf-fitsutil/archive/0858bbb.tar.gz | \
curl -L https://github.com/iraf-community/iraf-fitsutil/archive/refs/tags/v2024.07.06.tar.gz | \
tar xzf - -C $(BUILDDIR)/fitsutil --strip-components=1
( cd $(BUILDDIR)/fitsutil && \
rm -rf bin* && \
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ macOS](https://iraf-community.github.io/install.html#macos) web page.

### Software versions

* IRAF [2.18](https://github.com/iraf-community/iraf/releases/tag/v2.18),
* X11IRAF [2.1](https://github.com/iraf-community/x11iraf/releases/tag/v2.1),
* IRAF [2.18.1rc1](https://github.com/iraf-community/iraf/releases/tag/v2.18.1rc1),
* X11IRAF [2.2rc1](https://github.com/iraf-community/x11iraf/releases/tag/v2.2rc1),
* ctio [a6113fe](https://github.com/iraf-community/iraf-ctio/tree/a6113fe), 2023-11-12
* fitsutil [0858bbb](https://github.com/iraf-community/iraf-fitsutil/tree/0858bbb), 2024-03-12
* fitsutil [v2024.07.06](https://github.com/iraf-community/iraf-fitsutil/releases/tag/v2024.07.06),
* mscred [8c160e5](https://github.com/iraf-community/iraf-mscred/tree/8c160e5), 2023-12-12
* rvsao [2.8.5](http://tdc-www.harvard.edu/iraf/rvsao/rvsao-2.8.5.tar.gz)
* sptable [1.0.pre20180612](https://github.com/iraf-community/iraf-sptable/releases/tag/1.0.pre20180612)
Expand All @@ -26,6 +26,7 @@ macOS](https://iraf-community.github.io/install.html#macos) web page.

* install XCode tools (`xcode-select --install`)
* install [XQuartz](https://www.xquartz.org/)
* install ImageMagick from Brew (`brew install imagemagick`)
* run
- `make` to build the host arch,
- `make MACARCH=x86_64` to build Intel/64bit installer on Apple Silicon
Expand Down
Binary file removed xgterm/XGTerm.iconset/icon_128x128.png
Binary file not shown.
Binary file removed xgterm/XGTerm.iconset/[email protected]
Binary file not shown.
Binary file removed xgterm/XGTerm.iconset/icon_16x16.png
Binary file not shown.
Binary file removed xgterm/XGTerm.iconset/[email protected]
Binary file not shown.
Binary file removed xgterm/XGTerm.iconset/icon_256x256.png
Binary file not shown.
Binary file removed xgterm/XGTerm.iconset/[email protected]
Binary file not shown.
Binary file removed xgterm/XGTerm.iconset/icon_32x32.png
Binary file not shown.
Binary file removed xgterm/XGTerm.iconset/[email protected]
Binary file not shown.
Binary file removed xgterm/XGTerm.iconset/icon_512x512.png
Binary file not shown.
Binary file removed xgterm/XGTerm.iconset/[email protected]
Binary file not shown.
Binary file removed xgterm/XGTerm.iconset/icon_64x64.png
Binary file not shown.
Binary file removed xgterm/XGTerm.iconset/[email protected]
Binary file not shown.
Binary file removed xgterm/XGTerm.xcf
Binary file not shown.
Binary file removed ximtool/XImtool.iconset/icon_128x128.png
Binary file not shown.
Binary file removed ximtool/XImtool.iconset/[email protected]
Binary file not shown.
Binary file removed ximtool/XImtool.iconset/icon_16x16.png
Binary file not shown.
Binary file removed ximtool/XImtool.iconset/[email protected]
Binary file not shown.
Binary file removed ximtool/XImtool.iconset/icon_256x256.png
Binary file not shown.
Binary file removed ximtool/XImtool.iconset/[email protected]
Binary file not shown.
Binary file removed ximtool/XImtool.iconset/icon_32x32.png
Binary file not shown.
Binary file removed ximtool/XImtool.iconset/[email protected]
Binary file not shown.
Binary file removed ximtool/XImtool.iconset/icon_512x512.png
Binary file not shown.
Binary file removed ximtool/XImtool.iconset/[email protected]
Binary file not shown.
Binary file removed ximtool/XImtool.iconset/icon_64x64.png
Binary file not shown.
Binary file removed ximtool/XImtool.iconset/[email protected]
Binary file not shown.
Binary file removed ximtool/XImtool.xcf
Binary file not shown.
Loading