1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Fix build

- Support PLIST_FILES

PR:		187746
Submitted by:	Ports Fury
This commit is contained in:
Martin Wilke 2014-05-17 09:51:11 +00:00
parent 842ee794b6
commit 5b3bbd5ad0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354303
2 changed files with 22 additions and 43 deletions

View File

@ -5,34 +5,37 @@ PORTNAME= nauty
PORTVERSION= 2.4r2
CATEGORIES= math
MASTER_SITES= http://cs.anu.edu.au/~bdm/nauty/
DISTNAME= ${PORTNAME}24r2
DISTNAME= ${PORTNAME}${PORTVERSION:S!.!!}
MAINTAINER= ports@FreeBSD.org
COMMENT= Brendan McKay's graph isomorphism tester
WRKSRC= ${WRKDIR}/${PORTNAME}24r2
USES= gmake
GNU_CONFIGURE= yes
MAKEFILE= makefile
USE_CSTD= gnu89
GNU_CONFIGURE= YES
PORTDOCS= nug.pdf
NO_STAGE= yes
PORTDOCS= nug.pdf
PLIST_FILES= ${PROGRAMS:S!^!bin/!}
OPTIONS_DEFINE= DOCS
PROGRAMS= NRswitchg addedgeg amtog biplabg catg complg copyg \
countg deledgeg directg dreadnaut dretog genbg geng \
genrang gentourng labelg listg multig newedgeg pickg \
planarg shortg showg
post-patch:
@${REINPLACE_CMD} -e 's|gcc|${CC}|; s|-O4 -march=i686|${CFLAGS}|' \
${WRKSRC}/${MAKEFILE}
@${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}
.for i in ${PROGRAMS}
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}${PREFIX}/bin)
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
.endfor
.endif
.include <bsd.port.mk>

View File

@ -1,24 +0,0 @@
bin/NRswitchg
bin/addedgeg
bin/amtog
bin/biplabg
bin/catg
bin/complg
bin/copyg
bin/countg
bin/deledgeg
bin/directg
bin/dreadnaut
bin/dretog
bin/genbg
bin/geng
bin/genrang
bin/gentourng
bin/labelg
bin/listg
bin/multig
bin/newedgeg
bin/pickg
bin/planarg
bin/shortg
bin/showg