2013-03-19 20:33:55 +00:00
|
|
|
# Created by: thierry@pompo.net
|
2003-07-23 14:35:27 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= med
|
2015-02-18 22:06:54 +00:00
|
|
|
DISTVERSION= 3.0.8
|
2016-04-20 20:42:39 +00:00
|
|
|
PORTREVISION= 2
|
2006-12-12 18:24:23 +00:00
|
|
|
CATEGORIES= french science
|
2003-07-23 14:35:27 +00:00
|
|
|
|
2012-07-07 15:15:57 +00:00
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
2006-06-07 13:33:22 +00:00
|
|
|
COMMENT= Modelisation et Echanges de Donnees
|
2003-07-23 14:35:27 +00:00
|
|
|
|
2012-07-07 15:15:57 +00:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2016-04-01 14:00:51 +00:00
|
|
|
LIB_DEPENDS= libhdf5.so:science/hdf5
|
2003-07-23 14:35:27 +00:00
|
|
|
|
2009-01-14 20:25:24 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2014-03-18 21:09:03 +00:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
2007-01-17 06:06:55 +00:00
|
|
|
|
2014-08-24 07:58:09 +00:00
|
|
|
USES= fortran gmake libtool tk
|
2014-03-18 21:09:03 +00:00
|
|
|
CONFIGURE_ARGS= --disable-python --with-hdf5=${LOCALBASE}
|
|
|
|
CONFIGURE_ENV= WISH=${WISH}
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2006-08-14 23:06:39 +00:00
|
|
|
USE_LDCONFIG= yes
|
2003-07-23 14:35:27 +00:00
|
|
|
|
2014-03-18 21:09:03 +00:00
|
|
|
PATCH_TK_SCRIPTS= tools/mdump/xmdump2.in tools/mdump/xmdump3.in
|
2013-03-19 20:33:55 +00:00
|
|
|
|
2012-07-07 15:15:57 +00:00
|
|
|
DOC2FIX= . dox gif html html.dox jpg png
|
2005-01-17 21:08:51 +00:00
|
|
|
TST2FIX= c f
|
2003-07-23 14:35:27 +00:00
|
|
|
|
2008-08-24 13:04:58 +00:00
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
|
2014-03-18 21:09:03 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2005-01-17 21:08:51 +00:00
|
|
|
pre-configure:
|
2014-03-18 21:09:03 +00: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 10:15:49 +00:00
|
|
|
${REINPLACE_CMD} -e 's|docdir = $$(datadir)/doc|docdir = @docdir@|' \
|
2014-03-18 21:09:03 +00:00
|
|
|
${WRKSRC}/doc/${dd}/Makefile.in
|
2012-07-07 15:15:57 +00:00
|
|
|
.endfor
|
|
|
|
.for dd in ${TST2FIX}
|
2014-03-18 21:09:03 +00:00
|
|
|
${FIND} ${WRKSRC}/tests -name Makefile.in | ${XARGS} \
|
2008-03-23 10:15:49 +00:00
|
|
|
${REINPLACE_CMD} -e 's|test${dd}dir = $$(bindir)/test|test${dd}dir = ${EXAMPLESDIR}/test|' \
|
2012-07-07 15:15:57 +00:00
|
|
|
-e 's|unittestsdir = $$(bindir)/unit|unittestsdir = ${EXAMPLESDIR}/unit|' \
|
|
|
|
-e 's|usescasesdir = $$(bindir)/uses|usescasesdir = ${EXAMPLESDIR}/uses|'
|
2005-01-17 21:08:51 +00:00
|
|
|
.endfor
|
2004-04-28 20:30:20 +00:00
|
|
|
|
2003-07-23 14:35:27 +00:00
|
|
|
post-install:
|
2014-03-18 21:09:03 +00:00
|
|
|
(cd ${STAGEDIR}${PREFIX}/bin && ${LN} -sf mdump3 mdump \
|
|
|
|
&& ${LN} -sf xmdump3 xmdump)
|
2003-07-23 14:35:27 +00:00
|
|
|
|
2006-12-12 18:24:23 +00:00
|
|
|
regression-test:
|
2014-03-18 21:09:03 +00:00
|
|
|
(cd ${BUILD_WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
|
|
|
|
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
|
2006-12-12 18:24:23 +00:00
|
|
|
|
2010-09-16 21:23:24 +00:00
|
|
|
.include "${.CURDIR}/../../french/aster/bsd.aster.mk"
|
2008-03-23 10:15:49 +00:00
|
|
|
.include <bsd.port.mk>
|