2013-09-20 20:35:44 +02:00
|
|
|
# Created by: thierry@pompo.net
|
2003-09-30 16:47:16 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xd3d
|
2007-10-06 18:43:46 +02:00
|
|
|
PORTVERSION= 8.3.1
|
Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.
PR: 238330
2019-07-26 22:46:53 +02:00
|
|
|
PORTREVISION= 18
|
2003-09-30 16:47:16 +02:00
|
|
|
CATEGORIES= graphics math
|
|
|
|
MASTER_SITES= http://www.cmap.polytechnique.fr/~jouve/xd3d/
|
|
|
|
|
2004-05-08 10:28:29 +02:00
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
2014-06-13 09:36:27 +02:00
|
|
|
COMMENT= Simple scientific visualization tool
|
2003-09-30 16:47:16 +02:00
|
|
|
|
2014-04-21 11:58:05 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2003-09-30 16:47:16 +02:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# You may define these options:
|
|
|
|
#
|
|
|
|
# - WITHOUT_IMAGEMAGICK : if you don't need to export bitmap images
|
|
|
|
# in gif or png format;
|
|
|
|
#
|
2004-12-06 11:15:11 +01:00
|
|
|
# - WITHOUT_GIFSICLE : if you don't need to generate animated gifs;
|
2003-09-30 16:47:16 +02:00
|
|
|
#
|
|
|
|
# - MEMORY_XD3D : Max memory for xd3d (MBytes, 64 by default)
|
|
|
|
#
|
|
|
|
# - F77 : don't use the default fortran compiler;
|
|
|
|
# - FFLAGS : fortran compiler's flags (-O by default).
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
|
2014-07-04 02:09:47 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
2003-09-30 16:47:16 +02:00
|
|
|
.if !defined(WITHOUT_IMAGEMAGICK)
|
2018-11-10 20:57:07 +01:00
|
|
|
RUN_DEPENDS+= convert:graphics/ImageMagick6
|
2003-09-30 16:47:16 +02:00
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_GIFSICLE)
|
2016-04-01 16:00:51 +02:00
|
|
|
RUN_DEPENDS+= gifsicle:graphics/gifsicle
|
2003-09-30 16:47:16 +02:00
|
|
|
.endif
|
|
|
|
|
2007-03-30 22:40:42 +02:00
|
|
|
MASTER_SITES_BACKUP= http://pompo.net/ports/
|
|
|
|
|
2003-09-30 16:47:16 +02:00
|
|
|
REINPLACE_ARGS= -i ""
|
2014-04-21 11:58:05 +02:00
|
|
|
FETCH_ARGS=
|
2003-09-30 16:47:16 +02:00
|
|
|
FETCH_BEFORE_ARGS= -R -o ${DISTDIR}/${DISTFILES}
|
|
|
|
|
2019-11-05 23:16:14 +01:00
|
|
|
USES= fortran xorg
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11 xpm
|
graphics/xd3d: Unbreak build with GCC 10
gspopup.f:324:23:
324 | call x11facette2(ixzone,iyzone,ilar,ihau)
| 1
......
596 | call x11facette2(ixbrow,iybrow,ilarbrow,ihaubrow)
| 2
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
gspopup.f:187:45:
187 | & ,chainesav,longq,longc,lfichiers,idir,inum,0
| 1
Error: Rank mismatch in argument 'lfichiers' at (1) (rank-1 and scalar)
gspopup.f:306:45:
306 | & ,chainesav,longq,longc,lfichiers,idir,inum,0
| 1
Error: Rank mismatch in argument 'lfichiers' at (1) (rank-1 and scalar)
gspopup.f:561:61:
561 | & ,fichiers,longq,longc,lfichiers,idir,inum
| 1
Error: Rank mismatch in argument 'inum' at (1) (rank-1 and scalar)
http://package18.nyi.freebsd.org/data/121amd64-default-PR244494/2020-06-10_18h04m44s/logs/errors/xd3d-8.3.1_18.log
PR: 246700
2020-07-04 14:25:10 +02:00
|
|
|
FFLAGS+= -O -std=legacy
|
2003-09-30 16:47:16 +02:00
|
|
|
MEMORY_XD3D?= 64
|
|
|
|
|
2003-12-05 10:05:06 +01:00
|
|
|
.if defined(LANG) && ${LANG:Mfr*} != ""
|
2003-09-30 16:47:16 +02:00
|
|
|
XD3D_LANG= FRANCAIS
|
|
|
|
.else
|
|
|
|
XD3D_LANG= ENGLISH
|
|
|
|
.endif
|
|
|
|
|
2004-05-08 10:28:29 +02:00
|
|
|
DOCS= BUGS CHANGELOG FAQ FORMATS INSTALL README Manuals/formats.txt \
|
2003-09-30 16:47:16 +02:00
|
|
|
Manuals/xd3d_doc.pdf Manuals/xgraphic_doc.pdf
|
|
|
|
|
2007-11-08 07:21:33 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-09-30 16:47:16 +02:00
|
|
|
do-fetch:
|
|
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
|
|
|
|
${FETCH_CMD} ${FETCH_BEFORE_ARGS} \
|
2007-03-30 22:40:42 +02:00
|
|
|
${MASTER_SITES}download.php?file=${DISTFILES} \
|
|
|
|
|| ${FETCH_CMD} ${FETCH_BEFORE_ARGS} ${MASTER_SITES_BACKUP}${DISTFILES}
|
2003-09-30 16:47:16 +02:00
|
|
|
.endif
|
|
|
|
|
2014-04-21 11:58:05 +02:00
|
|
|
pre-configure:
|
|
|
|
${CP} ${WRKSRC}/RULES.freeBSD ${WRKSRC}/RULES
|
|
|
|
${REINPLACE_CMD} -e "s|%%WRKSRC%%|${WRKSRC}|" \
|
2003-09-30 16:47:16 +02:00
|
|
|
-e "s|%%PREFIX%%|${PREFIX}|" \
|
2014-04-21 11:58:05 +02:00
|
|
|
-e "s|%%X11BASE%%|${LOCALBASE}|" \
|
2003-09-30 16:47:16 +02:00
|
|
|
-e "s|%%LANG%%|${XD3D_LANG}|" \
|
|
|
|
-e "s|%%MEMORY_XD3D%%|${MEMORY_XD3D}|" \
|
|
|
|
-e "s|%%F77%%|${F77}|" \
|
|
|
|
-e "s|%%FFLAGS%%|${FFLAGS}|" \
|
|
|
|
-e "s|%%CC%%|${CC}|" \
|
|
|
|
-e "s|%%CFLAGS%%|${CFLAGS}|" \
|
|
|
|
${WRKSRC}/RULES
|
|
|
|
|
|
|
|
post-install:
|
2014-04-21 11:58:05 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
. for FILE in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
|
|
|
|
. endfor
|
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${CP} -Rp ${WRKSRC}/Examples/* ${STAGEDIR}${EXAMPLESDIR}
|
2003-09-30 16:47:16 +02:00
|
|
|
|
2007-11-08 07:21:33 +01:00
|
|
|
.include <bsd.port.post.mk>
|