aboutsummaryrefslogtreecommitdiff
path: root/astro/oskar/Makefile
blob: 12e52be778adc77603134262e1ff76918bb90c26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
PORTNAME=	OSKAR
DISTVERSION=	2.8.0
CATEGORIES=	astro

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	SKA Radio telescope simulator

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

ONLY_FOR_ARCHS=		amd64 i386 powerpc powerpc64 powerpc64le
ONLY_FOR_ARCHS_REASON=	gccfeatures.h:54:4: This code has only been tested on x86 and powerpc platforms
BROKEN_FreeBSD_12_powerpc64=	fails to compile: oskar_convert_cirs_relative_directions_to_enu_directions.c:67:29: 'csinl' undeclared (first use in this function)

LIB_DEPENDS=	libcfitsio.so:astro/cfitsio \
		libhdf5.so:science/hdf5 \
		libsz.so:science/szip

USES=		cmake compiler:c++11-lang localbase:ldflags python qt:5 \
		shebangfix
USE_QT=		core gui network widgets buildtools_build qmake_build
USE_LDCONFIG=	yes

SHEBANG_FILES=	apps/oskar_convert_cst_to_scalar.py
USE_GITHUB=	yes
GH_ACCOUNT=	OxfordSKA

CMAKE_ARGS=	-DFREEBSD_FILESDIR:STRING=${FILESDIR}

.include <bsd.port.mk>