Skip to content

Commit

Permalink
Don't use arch dependent dirs
Browse files Browse the repository at this point in the history
Architecture dependent dirs may be useful for special needs
(cross compilation) but they make things for the end user more
complicated.

As in the current Linux binary packages, this patch removes them.
  • Loading branch information
olebole committed Mar 31, 2024
1 parent 2ae05e3 commit a7fbd3b
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@ BINDIR = $(shell pwd)/bin
MACARCH = $(shell uname -m)

export iraf = $(BUILDDIR)/iraf/
export IRAFARCH =
export hbin = $(iraf)unix/bin

ifeq ($(MACARCH), arm64)
export IRAFARCH = macos64
MINVERSION = 11
PKGBUILD_ARG = --min-os-version $(MINVERSION)
else ifeq ($(MACARCH), x86_64)
export IRAFARCH = macintel
MINVERSION = 10.10
PKGBUILD_ARG = --min-os-version $(MINVERSION)
else # i386
export IRAFARCH = macosx
MINVERSION = 10.6
PKGBUILD_ARG =
endif
Expand Down Expand Up @@ -122,8 +121,7 @@ ctio.pkg: core.pkg
tar xzf - -C $(BUILDDIR)/ctio --strip-components=1
( cd $(BUILDDIR)/ctio && \
rm -rf bin* && \
mkdir -p bin.$(IRAFARCH) && \
ln -s bin.$(IRAFARCH) bin && \
mkdir -p bin && \
ctio=$(BUILDDIR)/ctio/ $(MKPKG) -p ctio && \
$(RMFILES) -f lib/strip.ctio )
find $(BUILDDIR)/ctio -name \*.[eao] -type f \
Expand All @@ -149,8 +147,7 @@ fitsutil.pkg: core.pkg $(BUILDDIR)/cfitsio/libcfitsio.a
tar xzf - -C $(BUILDDIR)/fitsutil --strip-components=1
( cd $(BUILDDIR)/fitsutil && \
rm -rf bin* && \
mkdir -p bin.$(IRAFARCH) && \
ln -s bin.$(IRAFARCH) bin && \
mkdir -p bin && \
fitsutil=$(BUILDDIR)/fitsutil/ $(MKPKG) -p fitsutil )
find $(BUILDDIR)/fitsutil -name \*.[eao] -type f \
-exec codesign -s - -i community.iraf.fitsutil {} \;
Expand All @@ -167,8 +164,7 @@ mscred.pkg: core.pkg
tar xzf - -C $(BUILDDIR)/mscred --strip-components=1
( cd $(BUILDDIR)/mscred && \
rm -rf bin* && \
mkdir -p bin.$(IRAFARCH) && \
ln -s bin.$(IRAFARCH) bin && \
mkdir -p bin && \
mscred=$(BUILDDIR)/mscred/ $(MKPKG) -p mscred)
find $(BUILDDIR)/mscred -name \*.[eao] -type f \
-exec codesign -s - -i community.iraf.mscred {} \;
Expand All @@ -186,8 +182,7 @@ rvsao.pkg: core.pkg
patch -d $(BUILDDIR)/rvsao -p1 < rvsao/patches/0001-Add-NOAO-into-build-search-path.patch
( cd $(BUILDDIR)/rvsao && \
rm -rf bin* && \
mkdir -p bin.$(IRAFARCH) && \
ln -s bin.$(IRAFARCH) bin && \
mkdir -p bin && \
rvsao=$(BUILDDIR)/rvsao/ $(MKPKG) -p rvsao)
find $(BUILDDIR)/rvsao -name \*.[eao] -type f \
-exec codesign -s - -i community.iraf.rvsao {} \;
Expand All @@ -204,8 +199,7 @@ sptable.pkg: core.pkg
tar xzf - -C $(BUILDDIR)/sptable --strip-components=1
( cd $(BUILDDIR)/sptable && \
rm -rf bin* && \
mkdir -p bin.$(IRAFARCH) && \
ln -s bin.$(IRAFARCH) bin && \
mkdir -p bin && \
sptable=$(BUILDDIR)/sptable/ $(MKPKG) -p sptable && \
$(RMFILES) -f lib/strip.sptable )
find $(BUILDDIR)/sptable -name \*.[eao] -type f \
Expand All @@ -224,8 +218,7 @@ st4gem.pkg: core.pkg
patch -d $(BUILDDIR)/st4gem -p1 < st4gem/patches/0001-Add-missing-default-fourier-transform-coordinate-typ.patch
( cd $(BUILDDIR)/st4gem && \
rm -rf bin* && \
mkdir -p bin.$(IRAFARCH) && \
ln -s bin.$(IRAFARCH) bin && \
mkdir -p bin && \
st4gem=$(BUILDDIR)/st4gem/ $(MKPKG) -p st4gem && \
$(RMFILES) -f lib/strip.st4gem )
find $(BUILDDIR)/st4gem -name \*.[eao] -type f \
Expand All @@ -243,8 +236,7 @@ xdimsum.pkg: core.pkg
tar xzf - -C $(BUILDDIR)/xdimsum --strip-components=1
( cd $(BUILDDIR)/xdimsum && \
rm -rf bin* && \
mkdir -p bin.$(IRAFARCH) && \
ln -s bin.$(IRAFARCH) bin && \
mkdir -p bin && \
xdimsum=$(BUILDDIR)/xdimsum/ $(MKPKG) -p xdimsum && \
$(RMFILES) -f lib/strip.xdimsum )
find $(BUILDDIR)/xdimsum -name \*.[eao] -type f \
Expand Down

0 comments on commit a7fbd3b

Please sign in to comment.