aboutsummaryrefslogtreecommitdiffstats
path: root/math/nauty/Makefile
blob: 2f27267ed42851911143521c219d28c923dfcac5 (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
37
38
# Created by: bremner@unb.ca
# $FreeBSD$

PORTNAME=   nauty
PORTVERSION=    2.4r2
CATEGORIES= math
MASTER_SITES=   http://cs.anu.edu.au/~bdm/nauty/ \
        http://www.c-s.li/ports/
DISTNAME=   ${PORTNAME}24r2

MAINTAINER= cs@FreeBSD.org
COMMENT=    Brendan McKay's graph isomorphism tester

WRKSRC=     ${WRKDIR}/${PORTNAME}24r2
MAKEFILE=   makefile
USE_CSTD=   gnu89
GNU_CONFIGURE=  YES
PORTDOCS=   nug.pdf

post-patch:
    @${REINPLACE_CMD} -e 's|gcc|${CC}|; s|-O4 -march=i686|${CFLAGS}|' \
        ${WRKSRC}/${MAKEFILE}

do-install:
    cd ${WRKSRC}; ${INSTALL_PROGRAM} dreadnaut copyg listg labelg dretog \
        amtog geng complg shortg showg NRswitchg biplabg addedgeg \
        deledgeg countg pickg genrang newedgeg catg genbg directg \
        multig planarg gentourng ${PREFIX}/bin

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>