mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
committed by
GitHub
parent
6d6cdc727e
commit
a4ff6963a6
65
sci-astronomy/fitspng/fitspng-1.4.recipe
Normal file
65
sci-astronomy/fitspng/fitspng-1.4.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user