View | Details | Raw Unified | Return to bug 187746
Collapse All | Expand All

(-)math/nauty/Makefile (-17 / +20 lines)
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>
(-)math/nauty/pkg-plist (-24 lines)
Lines 1-24 Link Here
1
bin/NRswitchg
2
bin/addedgeg
3
bin/amtog
4
bin/biplabg
5
bin/catg
6
bin/complg
7
bin/copyg
8
bin/countg
9
bin/deledgeg
10
bin/directg
11
bin/dreadnaut
12
bin/dretog
13
bin/genbg
14
bin/geng
15
bin/genrang
16
bin/gentourng
17
bin/labelg
18
bin/listg
19
bin/multig
20
bin/newedgeg
21
bin/pickg
22
bin/planarg
23
bin/shortg
24
bin/showg

Return to bug 187746