summaryrefslogtreecommitdiff
path: root/math/mathpresso/Makefile
blob: ef0ff1e46db78e8c2d8f7a8657c9a4c0d77696da (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
PORTNAME=	mathpresso
DISTVERSION=	g20230108
CATEGORIES=	math

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Mathematical expression parser and JIT compiler
WWW=		https://github.com/kobalicek/mathpresso

LICENSE=	ZLIB
LICENSE_FILE=	${WRKSRC}/LICENSE.md

LIB_DEPENDS=	libasmjit.so:devel/asmjit

USES=		cmake:testing localbase:ldflags
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	kobalicek
GH_TAGNAME=	734c292

CMAKE_ARGS=	-DASMJIT_CFLAGS="-I${LOCALBASE}/include" -DASMJIT_LIBS=asmjit
CMAKE_TESTING_ON=	MATHPRESSO_TEST
CMAKE_TESTING_TARGET=	mptest

post-test:
	@cd ${TEST_WRKSRC} && ./mptest

.include <bsd.port.mk>