aboutsummaryrefslogtreecommitdiffstats
path: root/math/umfpack/Makefile
blob: 230cf8c1a728ab50e04b6888e80ad397efc5dce3 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:    UMFPACK
# Date created:     5 Nov 97
# Whom:         Pedro Giffuni <giffunip@asme.org>
#
# $FreeBSD$
#

PORTNAME=   umfpack
PORTVERSION=    4.1
PORTREVISION=   1
CATEGORIES= math
MASTER_SITES=   http://www.cise.ufl.edu/research/sparse/umfpack/v${PORTVERSION}/
DISTNAME=   UMFPACKv${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Unsymmetric-pattern MultiFrontal Package

BUILD_DEPENDS=  ${LOCALBASE}/lib/libcblas.a:${PORTSDIR}/math/atlas

WRKSRC=     ${WRKDIR}/${DISTNAME}/UMFPACK
ALL_TARGET= lib

post-extract:
    ${CP} ${FILESDIR}/Make.freebsd ${WRKDIR}/${DISTNAME}/AMD/Make

do-install:
    ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/AMD/Lib/libamd.a ${PREFIX}/lib
    ${INSTALL_DATA} ${WRKSRC}/Lib/libumfpack.a ${PREFIX}/lib
.for mod in AMD UMFPACK
    @${MKDIR} ${PREFIX}/include/${mod}
    @for inc in `ls ${WRKSRC}/../${mod}/Include` ; do \
        ${INSTALL_DATA} ${WRKSRC}/../${mod}/Include/$$inc ${PREFIX}/include/${mod}; \
    done
.endfor
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/AMD/Doc/*.pdf ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
    ${GZIP_CMD} ${DOCSDIR}/README
    ${INSTALL_DATA} ${WRKSRC}/Doc/*.pdf  ${DOCSDIR}
    ${CP} -R ${WRKDIR}/${DISTNAME}/Papers ${DOCSDIR}
    @${FIND} ${DOCSDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
    @${FIND} ${DOCSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
    @${MKDIR} ${EXAMPLESDIR}
    @${TAR} --exclude tmp -C ${WRKSRC}/Demo -cf - . | \
        ${TAR} -C ${EXAMPLESDIR} -xf -
    @${FIND} ${EXAMPLESDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
    @${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
.endif

.include <bsd.port.mk>