aboutsummaryrefslogtreecommitdiffstats
path: root/math/newmat/Makefile
blob: a73ef751d8334246a491497a146035dd9756c85b (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   newmat
PORTVERSION=    1.1
PORTREVISION=   1
CATEGORIES= math
MASTER_SITES=   http://www.robertnz.net/ftp/
DISTNAME=   ${PORTNAME}${PORTVERSION:S/.//}

MAINTAINER= ports@FreeBSD.org
COMMENT=    C++ matrix library

NO_WRKSUBDIR=   yes
USES=       gmake
USE_LDCONFIG=   yes
MAKEFILE=   nm_gnu.mak
CXXFLAGS+=  -fPIC
MAKE_ARGS=  CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
ALL_TARGET= everything

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME}
    ${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/${PORTNAME}
    ${INSTALL_DATA} ${WRKSRC}/libnewmat.a ${STAGEDIR}${PREFIX}/lib
    ${INSTALL_DATA} ${WRKSRC}/libnewmat.so.1 ${STAGEDIR}${PREFIX}/lib
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnewmat.so.1
    ${LN} -sf libnewmath.so.1 ${STAGEDIR}${PREFIX}/lib/libnewmat.so

.include <bsd.port.mk>