summaryrefslogtreecommitdiff
path: root/math/sundials/Makefile
blob: 57b2db7effeac36e0a6521a66bd86942916346dd (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
31
32
# $NetBSD: Makefile,v 1.5 2019/11/02 16:16:22 rillig Exp $

DISTNAME=	sundials-4.1.0
PKGREVISION=	1
CATEGORIES=	math
MASTER_SITES=	https://computation.llnl.gov/projects/sundials/download/

MAINTAINER=	minskim@NetBSD.org
HOMEPAGE=	https://computation.llnl.gov/projects/sundials
COMMENT=	Suite of nonlinear and differential/algrbraic equation solvers
LICENSE=	modified-bsd

PYTHON_FOR_BUILD_ONLY=	yes
USE_CMAKE=		yes
WRKSRC=			${WRKDIR}/${DISTNAME}/build

CMAKE_ARG_PATH=	..
CMAKE_ARGS+=	-DEXAMPLES_INSTALL_PATH=${PREFIX}/share/examples/sundials

INSTALLATION_DIRS+=	share/doc/${PKGBASE}

post-extract:
	${MKDIR} ${WRKSRC}

post-install:
	${MV} ${DESTDIR}${PREFIX}/include/sundials/LICENSE \
		${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
	${INSTALL_DATA} ${WRKSRC}/../README.md ${WRKSRC}/../doc/*/* \
		${DESTDIR}${PREFIX}/share/doc/${PKGBASE}

.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"