aboutsummaryrefslogtreecommitdiff
path: root/math/libdivsufsort/Makefile
blob: ef763427cbf470d9d07b602e4ddf16ca5a93951d (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
PORTNAME=	libdivsufsort
DISTVERSION=	2.0.2-1.20151027 # 2.0.2-1 was only specified in the commit comment
CATEGORIES=	math

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Lightweight suffix-sorting library
WWW=		https://github.com/y-256/libdivsufsort

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cmake pathfix
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	y-256
GH_TAGNAME=	5f60d6f026c30fb4ac296f696b3c8b0eb71bd428

PLIST_FILES=	include/divsufsort.h \
		lib/libdivsufsort.so \
		lib/libdivsufsort.so.3 \
		lib/libdivsufsort.so.3.0.1 \
		libdata/pkgconfig/libdivsufsort.pc

do-test:
	@cd ${TEST_WRKSRC} && \
		${SETENV} ${TEST_ENV} ${CC} ${FILESDIR}/test.c -I${STAGEDIR}${PREFIX}/include -L${STAGEDIR}${PREFIX}/lib -ldivsufsort && \
		${ECHO} "==> running the test program:" && \
		LD_PRELOAD=${STAGEDIR}${PREFIX}/lib/libdivsufsort.so ${TEST_WRKSRC}/a.out

.include <bsd.port.mk>