aboutsummaryrefslogtreecommitdiffstats
path: root/math/laspack/Makefile
blob: 4d6ee3eea9096f6ce895c80d3307855c62d5c8f1 (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
31
32
33
34
# Created by: giffunip
# $FreeBSD$

PORTNAME=   laspack
PORTVERSION=    1.12.2
CATEGORIES= math
MASTER_SITES=   NL
MASTER_SITE_SUBDIR= linalg
DISTNAME=   ${PORTNAME}
EXTRACT_SUFX=   .tgz

MAINTAINER= bf@FreeBSD.org
COMMENT=    Package for solving large sparse systems of linear equations

WRKSRC=     ${WRKDIR}/${PORTNAME}
MAKEFILE=   makefile
MAKE_ARGS=  HOME=${STAGEDIR}${PREFIX}

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's+/usr/local+${LOCALBASE}+g' ${WRKSRC}/${MAKEFILE}

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/*.ps ${STAGEDIR}${DOCSDIR}

.ifdef MAINTAINER_MODE
regression-test:
    @cd ${WRKDIR} && ${SETENV} HOME=${WRKDIR} ./install
    @cd ${WRKSRC}/check && ${SETENV} HOME=${WRKDIR} ./check
.endif

.include <bsd.port.mk>