- Add DOCS option.

- USES=fortran and fix build with Clang (-Wno-return-type).
- Staging.
This commit is contained in:
Tijl Coosemans 2013-12-22 11:42:11 +00:00
parent 929b88553e
commit 42071bac98
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337184
2 changed files with 15 additions and 22 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= gplot PORTNAME= gplot
PORTVERSION= 4.3 PORTVERSION= 4.3
PORTREVISION= 4 PORTREVISION= 5
CATEGORIES= graphics CATEGORIES= graphics
MASTER_SITES= ftp://ftp.psc.edu/pub/gplot/ MASTER_SITES= ftp://ftp.psc.edu/pub/gplot/
DISTNAME= ${PORTNAME} DISTNAME= ${PORTNAME}
@ -12,26 +12,22 @@ EXTRACT_SUFX= .tar.Z
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= Graphic utilities for the processing of CGM metafiles COMMENT= Graphic utilities for the processing of CGM metafiles
OPTIONS_DEFINE= DOCS
CFLAGS+= -Wno-return-type
NO_WRKSUBDIR= yes NO_WRKSUBDIR= yes
ALL_TARGET= drawcgm gtex gplot ALL_TARGET= drawcgm gtex gplot
MAN1= gplot.1 PORTDOCS= gplot.hlp gplot.txt gtex.doc
DOCS= gplot.hlp gplot.txt gtex.doc USES= fortran
USE_FORTRAN= yes
NO_STAGE= yes
.include <bsd.port.pre.mk>
do-install: do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gplot ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/gplot ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/gtex ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/gtex ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/drawcgm/drawcgm.a ${PREFIX}/lib/libcgm.a ${INSTALL_DATA} ${WRKSRC}/drawcgm/drawcgm.a ${STAGEDIR}${PREFIX}/lib/libcgm.a
${INSTALL_MAN} ${WRKSRC}/gplot.man ${PREFIX}/man/man1/gplot.1 ${INSTALL_MAN} ${WRKSRC}/gplot.man ${STAGEDIR}${PREFIX}/man/man1/gplot.1
.if !defined(NOPORTDOCS) ${MKDIR} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${PREFIX}/share/doc/Gplot .for f in ${PORTDOCS}
.for f in ${DOCS} ${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/share/doc/Gplot
${GZIP_CMD} ${PREFIX}/share/doc/Gplot/$f
.endfor .endfor
.endif
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,7 +1,4 @@
bin/gplot bin/gplot
bin/gtex bin/gtex
lib/libcgm.a lib/libcgm.a
%%PORTDOCS%%share/doc/Gplot/gplot.hlp.gz man/man1/gplot.1.gz
%%PORTDOCS%%share/doc/Gplot/gplot.txt.gz
%%PORTDOCS%%share/doc/Gplot/gtex.doc.gz
%%PORTDOCS%%@dirrm share/doc/Gplot