summaryrefslogtreecommitdiff
path: root/math/lcalc/Makefile
blob: 573e6a6e7aef14880a9c643e1c06266864898867 (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
PORTNAME=	lcalc
DISTVERSION=	2.1.1
PORTREVISION=	1
CATEGORIES=	math
MASTER_SITES=	https://gitlab.com/-/project/12934202/uploads/487082fc3449dea93e9b85904a589742/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	L-function c++ class library and the CLI program lcalc
WWW=		https://gitlab.com/sagemath/lcalc

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/doc/COPYING

BUILD_DEPENDS=	gengetopt:devel/gengetopt
LIB_DEPENDS=	libpari.so:math/pari

USES=		compiler:c++11-lang gmake libtool localbase pkgconfig tar:xz
USE_LDCONFIG=	yes

GNU_CONFIGURE=	yes

INSTALL_TARGET=	install-strip
TEST_TARGET=	check

CONFIGURE_ARGS=	--with-pari \
		--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig

OPTIONS_DEFINE=	DOCS EXAMPLES

post-configure:
	${REINPLACE_CMD} -e 's|$$(DESTDIR)$$(docdir)|${STAGEDIR}${EXAMPLESDIR}|g' \
	    ${PATCH_WRKSRC}/doc/examples/Makefile
	${REINPLACE_CMD} -e 's|$$(DESTDIR)$$(docdir)|${STAGEDIR}${EXAMPLESDIR}/data|g' \
	    ${PATCH_WRKSRC}/doc/examples/*/Makefile

.include <bsd.port.mk>