Lines 5-38
Link Here
|
5 |
PORTVERSION= 2.4r2 |
5 |
PORTVERSION= 2.4r2 |
6 |
CATEGORIES= math |
6 |
CATEGORIES= math |
7 |
MASTER_SITES= http://cs.anu.edu.au/~bdm/nauty/ |
7 |
MASTER_SITES= http://cs.anu.edu.au/~bdm/nauty/ |
8 |
DISTNAME= ${PORTNAME}24r2 |
8 |
DISTNAME= ${PORTNAME}${PORTVERSION:S!.!!} |
9 |
|
9 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
10 |
MAINTAINER= ports@FreeBSD.org |
11 |
COMMENT= Brendan McKay's graph isomorphism tester |
11 |
COMMENT= Brendan McKay's graph isomorphism tester |
12 |
|
12 |
|
13 |
WRKSRC= ${WRKDIR}/${PORTNAME}24r2 |
13 |
USES= gmake |
|
|
14 |
GNU_CONFIGURE= yes |
14 |
MAKEFILE= makefile |
15 |
MAKEFILE= makefile |
15 |
USE_CSTD= gnu89 |
16 |
|
16 |
GNU_CONFIGURE= YES |
|
|
17 |
PORTDOCS= nug.pdf |
17 |
PORTDOCS= nug.pdf |
|
|
18 |
PLIST_FILES= ${PROGRAMS:S!^!bin/!} |
19 |
|
20 |
OPTIONS_DEFINE= DOCS |
21 |
|
22 |
PROGRAMS= NRswitchg addedgeg amtog biplabg catg complg copyg \ |
23 |
countg deledgeg directg dreadnaut dretog genbg geng \ |
24 |
genrang gentourng labelg listg multig newedgeg pickg \ |
25 |
planarg shortg showg |
18 |
|
26 |
|
19 |
NO_STAGE= yes |
|
|
20 |
post-patch: |
27 |
post-patch: |
21 |
@${REINPLACE_CMD} -e 's|gcc|${CC}|; s|-O4 -march=i686|${CFLAGS}|' \ |
28 |
@${REINPLACE_CMD} -e \ |
22 |
${WRKSRC}/${MAKEFILE} |
29 |
's|gcc|$${CC}| ; \ |
|
|
30 |
s|-O4 -march=i686|$${CFLAGS}|' ${WRKSRC}/${MAKEFILE} |
23 |
|
31 |
|
24 |
do-install: |
32 |
do-install: |
25 |
cd ${WRKSRC}; ${INSTALL_PROGRAM} dreadnaut copyg listg labelg dretog \ |
33 |
.for i in ${PROGRAMS} |
26 |
amtog geng complg shortg showg NRswitchg biplabg addedgeg \ |
34 |
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}${PREFIX}/bin) |
27 |
deledgeg countg pickg genrang newedgeg catg genbg directg \ |
35 |
.endfor |
28 |
multig planarg gentourng ${PREFIX}/bin |
36 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
29 |
|
|
|
30 |
post-install: |
31 |
.if !defined(NOPORTDOCS) |
32 |
${MKDIR} ${DOCSDIR} |
33 |
.for i in ${PORTDOCS} |
37 |
.for i in ${PORTDOCS} |
34 |
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} |
38 |
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR}) |
35 |
.endfor |
39 |
.endfor |
36 |
.endif |
|
|
37 |
|
40 |
|
38 |
.include <bsd.port.mk> |
41 |
.include <bsd.port.mk> |