aboutsummaryrefslogtreecommitdiffstats
path: root/math/jama/Makefile
blob: aa172e80c12ee6cb24a34489c68d53e00336ba45 (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
# Created by: Pedro F. Giffuni <giffunip@asme.org>
# $FreeBSD$

PORTNAME=   jama
PORTVERSION=    1.2.5
CATEGORIES= math devel
MASTER_SITES=   http://math.nist.gov/tnt/
DISTNAME=   ${PORTNAME}${PORTVERSION:S/.//g}
.ifndef NOPORTDOCS
DISTFILES=${DISTNAME}${EXTRACT_SUFX} jama102doc.zip
.endif
DIST_SUBDIR=    tnt
EXTRACT_ONLY=

MAINTAINER= erik@bz.bzflag.bz
COMMENT=    Java-like Matrix C++ Templates

BUILD_DEPENDS=  ${LOCALBASE}/include/tnt/tnt.h:${PORTSDIR}/devel/tnt \
        unzip:${PORTSDIR}/archivers/unzip
RUN_DEPENDS=    ${LOCALBASE}/include/tnt/tnt.h:${PORTSDIR}/devel/tnt

USE_ZIP=    yes
NO_BUILD=   yes

NO_STAGE=   yes
do-install:
    ${MKDIR} ${PREFIX}/include/tnt
    ${EXTRACT_CMD} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} \
        -d ${PREFIX}/include/tnt
.ifndef NOPORTDOCS
    ${MKDIR} ${WRKDIR}/doc ${DOCSDIR}
    ${EXTRACT_CMD} -o ${DISTDIR}/${DIST_SUBDIR}/jama102doc \
        -d ${WRKDIR}/doc
    (cd ${WRKDIR}/doc/doxygen && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif

.include <bsd.port.mk>