1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

- Honour CC/CFLAGS

- Add DOCSDIR
- portlint

PR:		ports/65015
Submitted by:	michael johnson <ahze@ahze.net>
This commit is contained in:
Kirill Ponomarev 2004-04-01 09:52:13 +00:00
parent 2ca2ef06e6
commit 68d520a97e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=105855
2 changed files with 13 additions and 16 deletions

View File

@ -5,13 +5,13 @@
# $FreeBSD$
#
PORTNAME= nauty
PORTVERSION= 2.0b9
CATEGORIES= math
MASTER_SITES= http://cs.anu.edu.au/~bdm/nauty/
PORTNAME= nauty
PORTVERSION= 2.0b9
CATEGORIES= math
MASTER_SITES= http://cs.anu.edu.au/~bdm/nauty/
DISTNAME= ${PORTNAME}20beta9
MAINTAINER= bremner@unb.ca
MAINTAINER= bremner@unb.ca
COMMENT= Brendan McKay's graph isomorphism tester
WRKSRC= ${WRKDIR}/${PORTNAME}20
@ -19,9 +19,12 @@ MAKEFILE= makefile
ALL_TARGET= nauty
NO_INSTALL_MANPAGES=yes
USE_REINPLACE= yes
PORTDOCS= oldmanual.ps read.me
PLIST_FILES= bin/dreadnaut bin/dreadnaut1 bin/dreadnautL1 bin/dreadnautB
post-patch:
@${REINPLACE_CMD} -e "s,^CFLAGS,#CFLAGS,g" ${WRKSRC}/${MAKEFILE}
@${REINPLACE_CMD} -e 's|gcc|${CC}|; s|-O4|${CFLAGS}|' \
${WRKSRC}/${MAKEFILE}
do-install:
cd ${WRKSRC}; ${INSTALL_PROGRAM} dreadnaut dreadnaut1 \
@ -29,9 +32,10 @@ do-install:
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
${INSTALL_MAN} ${WRKSRC}/oldmanual.ps ${WRKSRC}/read.me \
${PREFIX}/share/doc/${PORTNAME}
${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View File

@ -1,7 +0,0 @@
bin/dreadnaut
bin/dreadnaut1
bin/dreadnautL1
bin/dreadnautB
%%PORTDOCS%%share/doc/nauty/oldmanual.ps
%%PORTDOCS%%share/doc/nauty/read.me
%%PORTDOCS%%@dirrm share/doc/nauty