- unbreak for -D NOPORTDOCS

- use PORTDOCS and PORTEXAMPLES as it should
- install directly useable docs (.ps not .ps.gz)
- don't use ``!='' [1]
- bump PORTREVISION

Submitted by:	my QA Tindy run
		kris@ in a mayl on ports [1]
This commit is contained in:
Ion-Mihai Tetcu 2008-06-13 08:00:45 +00:00
parent ace3f6bb91
commit 0408129fa7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=214771
2 changed files with 38 additions and 37 deletions

View file

@ -7,13 +7,14 @@
PORTNAME= bamg PORTNAME= bamg
PORTVERSION= 0.68 PORTVERSION= 0.68
PORTREVISION= 3 PORTREVISION= 4
CATEGORIES= math science CATEGORIES= math science
MASTER_SITES= http://pauillac.inria.fr/cdrom/ftp/bamg/ \ MASTER_SITES= http://pauillac.inria.fr/cdrom/ftp/bamg/ \
http://www-rocq1.inria.fr/gamma/cdrom/ftp/bamg/ \ http://www-rocq1.inria.fr/gamma/cdrom/ftp/bamg/ \
http://ftp.tuniv.szczecin.pl/pub/Linux/Scilab/INRIA/Gamma/bamg/ http://ftp.tuniv.szczecin.pl/pub/Linux/Scilab/INRIA/Gamma/bamg/
.if !defined(NOPORTDOCS) DISTFILES= ${PORTNAME}${EXTRACT_SUFX}
DISTFILES= ${PORTNAME}${EXTRACT_SUFX} ${PORTNAME}.ps.gz .ifndef(NOPORTDOCS)
DISTFILES+= ${PORTNAME}.ps.gz
EXTRACT_ONLY= ${PORTNAME}${EXTRACT_SUFX} EXTRACT_ONLY= ${PORTNAME}${EXTRACT_SUFX}
.endif .endif
@ -30,17 +31,17 @@ USE_GMAKE= yes
ALL_TARGET= world ALL_TARGET= world
INSTALL_TARGET= install-world INSTALL_TARGET= install-world
MAKE_ENV= CXX=${CXX} HOSTTYPE=${HOSTTYPE}
BINS= bamg bamg-g cvmsh2 drawbdmesh BINS= bamg bamg-g cvmsh2 drawbdmesh
EXDIRS= NACA012 quadloop square test EXDIRS= NACA012 quadloop square test
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
HOSTTYPE!= ${UNAME} -s .pre-configure:
HOSTTYPE= ${UNAME} -s
MAKE_ENV= CXX=${CXX} HOSTTYPE=${${HOSTTYPE}}
post-patch: post-patch:
@${MV} ${WRKSRC}/FLAG.linux ${WRKSRC}/FLAG.${HOSTTYPE} @${MV} ${WRKSRC}/FLAG.linux ${WRKSRC}/FLAG.${${HOSTTYPE}}
@${MV} ${WRKSRC}/FLAG.linux.orig ${WRKSRC}/FLAG.linux @${MV} ${WRKSRC}/FLAG.linux.orig ${WRKSRC}/FLAG.linux
post-install: post-install:
@ -49,7 +50,7 @@ post-install:
.endfor .endfor
.if !defined(NOPORTDOCS) .if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR} @${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${DISTDIR}/bamg.ps.gz ${DOCSDIR} @${GZCAT} ${DISTDIR}/${PORTNAME}.ps.gz > ${DOCSDIR}/${PORTNAME}.ps
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.for exdir in ${EXDIRS} .for exdir in ${EXDIRS}
@${MKDIR} ${EXAMPLESDIR}/${exdir} @${MKDIR} ${EXAMPLESDIR}/${exdir}

View file

@ -2,33 +2,33 @@ bin/bamg
bin/bamg-g bin/bamg-g
bin/cvmsh2 bin/cvmsh2
bin/drawbdmesh bin/drawbdmesh
%%PORTDOCS%%%%DOCSDIR%%/bamg.ps.gz %%PORTDOCS%%%%DOCSDIR%%/bamg.ps
%%PORTDOCS%%%%EXAMPLESDIR%%/NACA012/ad.sh %%PORTEXAMPLES%%%%EXAMPLESDIR%%/NACA012/ad.sh
%%PORTDOCS%%%%EXAMPLESDIR%%/NACA012/adap.sh %%PORTEXAMPLES%%%%EXAMPLESDIR%%/NACA012/adap.sh
%%PORTDOCS%%%%EXAMPLESDIR%%/NACA012/adap.sh-g %%PORTEXAMPLES%%%%EXAMPLESDIR%%/NACA012/adap.sh-g
%%PORTDOCS%%%%EXAMPLESDIR%%/NACA012/data %%PORTEXAMPLES%%%%EXAMPLESDIR%%/NACA012/data
%%PORTDOCS%%%%EXAMPLESDIR%%/NACA012/data-orign %%PORTEXAMPLES%%%%EXAMPLESDIR%%/NACA012/data-orign
%%PORTDOCS%%%%EXAMPLESDIR%%/NACA012/naca.awk %%PORTEXAMPLES%%%%EXAMPLESDIR%%/NACA012/naca.awk
%%PORTDOCS%%%%EXAMPLESDIR%%/NACA012/plot.fv %%PORTEXAMPLES%%%%EXAMPLESDIR%%/NACA012/plot.fv
%%PORTDOCS%%%%EXAMPLESDIR%%/NACA012/plot.fv-1 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/NACA012/plot.fv-1
%%PORTDOCS%%%%EXAMPLESDIR%%/quadloop/dotest.pl %%PORTEXAMPLES%%%%EXAMPLESDIR%%/quadloop/dotest.pl
%%PORTDOCS%%%%EXAMPLESDIR%%/square/circle_g.msh %%PORTEXAMPLES%%%%EXAMPLESDIR%%/square/circle_g.msh
%%PORTDOCS%%%%EXAMPLESDIR%%/square/doadapt %%PORTEXAMPLES%%%%EXAMPLESDIR%%/square/doadapt
%%PORTDOCS%%%%EXAMPLESDIR%%/square/dotest %%PORTEXAMPLES%%%%EXAMPLESDIR%%/square/dotest
%%PORTDOCS%%%%EXAMPLESDIR%%/square/l_g.msh %%PORTEXAMPLES%%%%EXAMPLESDIR%%/square/l_g.msh
%%PORTDOCS%%%%EXAMPLESDIR%%/square/octogone_g.msh %%PORTEXAMPLES%%%%EXAMPLESDIR%%/square/octogone_g.msh
%%PORTDOCS%%%%EXAMPLESDIR%%/square/square_g.msh %%PORTEXAMPLES%%%%EXAMPLESDIR%%/square/square_g.msh
%%PORTDOCS%%%%EXAMPLESDIR%%/square/square_raf_ani_g.mtr %%PORTEXAMPLES%%%%EXAMPLESDIR%%/square/square_raf_ani_g.mtr
%%PORTDOCS%%%%EXAMPLESDIR%%/square/square_raf_g.msh %%PORTEXAMPLES%%%%EXAMPLESDIR%%/square/square_raf_g.msh
%%PORTDOCS%%%%EXAMPLESDIR%%/square/square_raf_g.mtr %%PORTEXAMPLES%%%%EXAMPLESDIR%%/square/square_raf_g.mtr
%%PORTDOCS%%%%EXAMPLESDIR%%/test/dotest-o.pl %%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/dotest-o.pl
%%PORTDOCS%%%%EXAMPLESDIR%%/test/dotest.pl %%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/dotest.pl
%%PORTDOCS%%%%EXAMPLESDIR%%/test/dotest1.pl %%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/dotest1.pl
%%PORTDOCS%%%%EXAMPLESDIR%%/test/dotest2.pl %%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/dotest2.pl
%%PORTDOCS%%%%EXAMPLESDIR%%/test/dotest3.pl %%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/dotest3.pl
%%PORTDOCS%%@dirrm %%DOCSDIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/NACA012 %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/NACA012
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/quadloop %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/quadloop
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/square %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/square
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/test %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/test
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%