aboutsummaryrefslogtreecommitdiffstats
path: root/math/jama/Makefile
blob: c5d803aa779d23caeee4e69b54f98c68931e9535 (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
# 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
RUN_DEPENDS=    ${LOCALBASE}/include/tnt/tnt.h:${PORTSDIR}/devel/tnt

USES=       zip
NO_BUILD=   yes

do-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/include/tnt
    ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} \
        -d ${STAGEDIR}${PREFIX}/include/tnt
    ${MKDIR} ${WRKDIR}/doc ${STAGEDIR}${DOCSDIR}
    ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DIST_SUBDIR}/jama102doc.zip \
        -d ${WRKDIR}/doc
    (cd ${WRKDIR}/doc/doxygen && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>