summaryrefslogtreecommitdiff
path: root/math/alglib/Makefile
blob: ca8cbb8200728b7f5f18cdac49d236191133e79a (plain)
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
PORTNAME=	alglib
DISTVERSION=	3.17.0
CATEGORIES=	math science
MASTER_SITES=	https://www.alglib.net/translator/re/
EXTRACT_SUFX=	.cpp.gpl.zip

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Numerical analysis and data processing library

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/gpl3.txt

USE_LDCONFIG=	yes
WRKSRC=		${WRKDIR}/cpp

do-build:
	cd ${WRKSRC}/src && \
		${CXX} ${CXXFLAGS} -fPIC -Wl,-soname,lib${PORTNAME}.so.3 -shared -o lib${PORTNAME}.so.3 *.cpp

do-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/lib${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/src/*.h ${STAGEDIR}${PREFIX}/include/lib${PORTNAME}
	${INSTALL_LIB} ${WRKSRC}/src/lib${PORTNAME}.so.3 ${STAGEDIR}${PREFIX}/lib
	@${LN} -s lib${PORTNAME}.so.3 ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so

.include <bsd.port.mk>