From a4ff6963a6b69d822739d4876cea9cff5920b2fa Mon Sep 17 00:00:00 2001 From: Gabriele Baldassarre Date: Thu, 30 Apr 2020 08:50:30 +0200 Subject: [PATCH] New Recipe: fitspng (#4916) * fitspng first release --- sci-astronomy/fitspng/fitspng-1.4.recipe | 65 ++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 sci-astronomy/fitspng/fitspng-1.4.recipe diff --git a/sci-astronomy/fitspng/fitspng-1.4.recipe b/sci-astronomy/fitspng/fitspng-1.4.recipe new file mode 100644 index 000000000..71b07317a --- /dev/null +++ b/sci-astronomy/fitspng/fitspng-1.4.recipe @@ -0,0 +1,65 @@ +SUMMARY="Utility to convert images in astronomical FITS to PNG format" +DESCRIPTION="FITS format is a general purpose astronomical image format. +FITS images stores measurements of a physical quantity - an array of the +angular distribution of the photon events or the optical intensity. +Fitspng does visualization of such array by converting them to the +images in PNG format." +HOMEPAGE="http://integral.physics.muni.cz/fitspng/" +COPYRIGHT="2006 - 2019, F. Hroch, + Masaryk University, Brno, Czech Republic." +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="ftp://integral.physics.muni.cz/pub/fitspng/fitspng-$portVersion.tar.gz" +CHECKSUM_SHA256="caa7fc2f0c90bbd14b9499a705d74bb07df9f6ecf53454b9614ec3b30459f89e" + +ARCHITECTURES="!x86_gcc2 x86_64 ?arm ?ppc ?sparc" +SECONDARY_ARCHITECTURES="x86" + +commandSuffix=$secondaryArchSuffix +commandBinDir=$binDir +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandSuffix= + commandBinDir=$prefix/bin +fi + +PROVIDES=" + fitspng$secondaryArchSuffix = $portVersion + cmd:fitspng$commandSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libcfitsio$secondaryArchSuffix + lib:libpng16$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libcfitsio$secondaryArchSuffix + devel:libpng16$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoreconf + cmd:awk + cmd:gcc$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + if [ $effectiveTargetArchitecture == x86_64 ]; then + GCC5FLAGS="--enable-x86-64" + fi + + CFLAGS="-O4 -DNEBUG" + + autoreconf -vfi + runConfigure --omit-dirs binDir ./configure --bindir="$commandBinDir" + + make $jobArgs +} + +INSTALL() +{ + make install +}