aboutsummaryrefslogtreecommitdiffstats
path: root/math/coxeter3/Makefile
blob: aa87f47292501afa7b8b4eef3765e9780673e327 (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
# Created by: thierry@pompo.net

PORTNAME=   coxeter
PORTVERSION=    3.1.20210124
CATEGORIES= math

MAINTAINER= thierry@FreeBSD.org
COMMENT=    Library for the study of combinatorial aspects of Coxeter group theory

LICENSE=    GPLv2

USE_GITHUB= yes
GH_ACCOUNT= tscrim
GH_TAGNAME= 7b5a1f0

USES=       gmake

MAKEFILE=   makefile
.if !defined(WITH_DEBUG)
MAKE_ENV=   optimize=true
.endif
USE_LDCONFIG=   yes
TEST_TARGET=    check

pre-configure:
    ${REINPLACE_CMD} -e 's|/usr/local/coxeter|${DATADIR}|'  \
        ${WRKSRC}/directories.h

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/coxeter
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcoxeter3.so
    ${MV} ${STAGEDIR}${PREFIX}/lib/libcoxeter3.so   \
        ${STAGEDIR}${PREFIX}/lib/libcoxeter3.so.0
    ${LN} -sf libcoxeter3.so.0 ${STAGEDIR}${PREFIX}/lib/libcoxeter3.so

.include <bsd.port.mk>