summaryrefslogtreecommitdiff
path: root/astro/sofa/Makefile
blob: 8670fbcc0e1c3585c951297f93341a4483a5c52b (plain)
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=	sofa
DISTVERSION=	20210125 # also called Release 17a
CATEGORIES=	astro devel
MASTER_SITES=	http://www.iausofa.org/${DISTVERSION:C/(....)(....)/\\1_\\2/}_C/
DISTNAME=	${PORTNAME}_c-${DISTVERSION}_a

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Set of algorithms and procedures used in fundamental astronomy

LICENSE=	SOFA
LICENSE_NAME=	SOFA Software License
LICENSE_FILE=	${WRKSRC}/../doc/copyr.lis
LICENSE_PERMS=	dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept

MAKEFILE=	makefile
USE_LDCONFIG=	yes

WRKSRC=		${WRKDIR}/${PORTNAME}/${DISTVERSION}_a/c/src
BINARY_ALIAS=	gcc=cc
MAKE_ARGS=	CFLAGF="-c ${CFLAGS} -fPIC" INSTALL_DIR=${STAGEDIR}${PREFIX}

PLIST_FILES=	include/sofa.h \
		include/sofam.h \
		lib/libsofa_c.so

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsofa_c.so

.include <bsd.port.mk>