2013-03-19 21:33:55 +01:00
|
|
|
# Created by: thierry@pompo.net
|
2003-07-23 16:35:27 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= med
|
2016-11-13 13:44:13 +01:00
|
|
|
DISTVERSION= 3.2.0
|
Bump PORTREVISIONs for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some
circumstances such as versions of FreeBSD or platforms).
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using using Mk/bsd.octave.mk which in turn has USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
c++11-lang, c++0x, c11, or gcc-c++11-lib.
PR: 216707
2017-04-01 17:23:30 +02:00
|
|
|
PORTREVISION= 2
|
2006-12-12 19:24:23 +01:00
|
|
|
CATEGORIES= french science
|
2003-07-23 16:35:27 +02:00
|
|
|
|
2012-07-07 17:15:57 +02:00
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
2006-06-07 15:33:22 +02:00
|
|
|
COMMENT= Modelisation et Echanges de Donnees
|
2003-07-23 16:35:27 +02:00
|
|
|
|
2012-07-07 17:15:57 +02:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2016-11-13 13:44:13 +01:00
|
|
|
LIB_DEPENDS= libhdf5-18.so:science/hdf5-18
|
2003-07-23 16:35:27 +02:00
|
|
|
|
2009-01-14 21:25:24 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2014-03-18 22:09:03 +01:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
2007-01-17 07:06:55 +01:00
|
|
|
|
2014-08-24 09:58:09 +02:00
|
|
|
USES= fortran gmake libtool tk
|
2014-03-18 22:09:03 +01:00
|
|
|
CONFIGURE_ARGS= --disable-python --with-hdf5=${LOCALBASE}
|
2016-11-13 13:44:13 +01:00
|
|
|
CONFIGURE_ENV= WISH=${WISH} H5DUMP=h5dump-18
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2006-08-15 01:06:39 +02:00
|
|
|
USE_LDCONFIG= yes
|
2003-07-23 16:35:27 +02:00
|
|
|
|
2014-03-18 22:09:03 +01:00
|
|
|
PATCH_TK_SCRIPTS= tools/mdump/xmdump2.in tools/mdump/xmdump3.in
|
2013-03-19 21:33:55 +01:00
|
|
|
|
2012-07-07 17:15:57 +02:00
|
|
|
DOC2FIX= . dox gif html html.dox jpg png
|
2005-01-17 22:08:51 +01:00
|
|
|
TST2FIX= c f
|
2003-07-23 16:35:27 +02:00
|
|
|
|
2008-08-24 15:04:58 +02:00
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
|
2014-03-18 22:09:03 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2005-01-17 22:08:51 +01:00
|
|
|
pre-configure:
|
2014-03-18 22:09:03 +01:00
|
|
|
${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|' \
|
|
|
|
${WRKSRC}/include/2.3.6/med_outils.h \
|
|
|
|
${WRKSRC}/include/med_outils.h
|
|
|
|
.if ! ${PORT_OPTIONS:MDOCS}
|
|
|
|
${REINPLACE_CMD} -e '/SUBDIRS/ s|doc||' ${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
|
|
|
.if ! ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
${REINPLACE_CMD} -e '/SUBDIRS/ s|tests||' ${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
|
|
|
.for dd in ${DOC2FIX}
|
2008-03-23 11:15:49 +01:00
|
|
|
${REINPLACE_CMD} -e 's|docdir = $$(datadir)/doc|docdir = @docdir@|' \
|
2014-03-18 22:09:03 +01:00
|
|
|
${WRKSRC}/doc/${dd}/Makefile.in
|
2012-07-07 17:15:57 +02:00
|
|
|
.endfor
|
|
|
|
.for dd in ${TST2FIX}
|
2014-03-18 22:09:03 +01:00
|
|
|
${FIND} ${WRKSRC}/tests -name Makefile.in | ${XARGS} \
|
2008-03-23 11:15:49 +01:00
|
|
|
${REINPLACE_CMD} -e 's|test${dd}dir = $$(bindir)/test|test${dd}dir = ${EXAMPLESDIR}/test|' \
|
2012-07-07 17:15:57 +02:00
|
|
|
-e 's|unittestsdir = $$(bindir)/unit|unittestsdir = ${EXAMPLESDIR}/unit|' \
|
|
|
|
-e 's|usescasesdir = $$(bindir)/uses|usescasesdir = ${EXAMPLESDIR}/uses|'
|
2005-01-17 22:08:51 +01:00
|
|
|
.endfor
|
2016-11-13 13:44:13 +01:00
|
|
|
# ATM MED is only compatible with hdf5-18
|
|
|
|
${REINPLACE_CMD} -e 's|-lhdf5|-lhdf5-18|' ${WRKSRC}/${CONFIGURE_SCRIPT}
|
2004-04-28 22:30:20 +02:00
|
|
|
|
2003-07-23 16:35:27 +02:00
|
|
|
post-install:
|
2014-03-18 22:09:03 +01:00
|
|
|
(cd ${STAGEDIR}${PREFIX}/bin && ${LN} -sf mdump3 mdump \
|
|
|
|
&& ${LN} -sf xmdump3 xmdump)
|
2003-07-23 16:35:27 +02:00
|
|
|
|
2006-12-12 19:24:23 +01:00
|
|
|
regression-test:
|
2014-03-18 22:09:03 +01:00
|
|
|
(cd ${BUILD_WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
|
|
|
|
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
|
2006-12-12 19:24:23 +01:00
|
|
|
|
2010-09-16 23:23:24 +02:00
|
|
|
.include "${.CURDIR}/../../french/aster/bsd.aster.mk"
|
2008-03-23 11:15:49 +01:00
|
|
|
.include <bsd.port.mk>
|