2003-07-23 14:35:27 +00:00
|
|
|
# New ports collection makefile for: med
|
|
|
|
# Date created: Thu Jun 26 2003
|
|
|
|
# Whom: thierry@pompo.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= med
|
2010-03-26 18:30:47 +00:00
|
|
|
DISTVERSION= 2.3.6
|
2011-07-15 07:00:46 +00:00
|
|
|
PORTREVISION= 4
|
2006-12-12 18:24:23 +00:00
|
|
|
CATEGORIES= french science
|
2003-07-23 14:35:27 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-06-07 13:33:22 +00:00
|
|
|
COMMENT= Modelisation et Echanges de Donnees
|
2003-07-23 14:35:27 +00:00
|
|
|
|
2005-01-17 21:08:51 +00:00
|
|
|
BUILD_DEPENDS= wish${TK_VER}:${PORTSDIR}/x11-toolkits/tk${SHORT_TK_VER}
|
2011-07-15 07:00:46 +00:00
|
|
|
LIB_DEPENDS= hdf5.7:${PORTSDIR}/science/hdf5-18
|
2006-01-21 09:01:47 +00:00
|
|
|
RUN_DEPENDS= wish${TK_VER}:${PORTSDIR}/x11-toolkits/tk${SHORT_TK_VER}
|
2003-07-23 14:35:27 +00:00
|
|
|
|
2010-09-16 21:23:24 +00:00
|
|
|
LICENSE= GPLv3
|
2009-01-14 20:25:24 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2010-09-16 21:23:24 +00:00
|
|
|
TK_VER?= 8.5
|
2005-01-17 21:08:51 +00:00
|
|
|
SHORT_TK_VER= ${TK_VER:S/.//}
|
|
|
|
|
2007-07-14 10:02:06 +00:00
|
|
|
USE_FORTRAN= yes
|
2007-01-17 06:06:55 +00:00
|
|
|
FFLAGS+= -O2
|
|
|
|
|
2008-03-23 10:15:49 +00:00
|
|
|
CONFIGURE_ENV= HDF5HOME=${LOCALBASE} CPPFLAGS="${PTHREAD_CFLAGS}" \
|
2009-01-14 20:25:24 +00:00
|
|
|
LDFLAGS="${PTHREAD_LIBS}" WISH=${LOCALBASE}/bin/wish${TK_VER}
|
2008-03-23 10:15:49 +00:00
|
|
|
CONFIGURE_ARGS= --with-f90=${FC} --docdir=${DOCSDIR}
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-07-23 14:35:27 +00:00
|
|
|
USE_GMAKE= yes
|
2010-12-04 07:34:27 +00:00
|
|
|
USE_AUTOTOOLS= autoconf
|
2006-08-14 23:06:39 +00:00
|
|
|
USE_LDCONFIG= yes
|
2003-07-23 14:35:27 +00:00
|
|
|
|
2005-01-17 21:08:51 +00:00
|
|
|
DOC2FIX= . gif html jpg png tests
|
|
|
|
TST2FIX= c f
|
2003-07-23 14:35:27 +00:00
|
|
|
|
2008-08-24 13:04:58 +00:00
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
|
2005-01-17 21:08:51 +00:00
|
|
|
pre-configure:
|
2008-03-23 10:15:49 +00:00
|
|
|
.for ext in am in
|
|
|
|
. if defined(NOPORTDOCS)
|
2008-08-24 13:04:58 +00:00
|
|
|
${REINPLACE_CMD} -e '/SUBDIRS/ s|doc||' ${WRKSRC}/Makefile.${ext}
|
|
|
|
. endif
|
2010-06-19 15:08:23 +00:00
|
|
|
. if defined(NOPORTEXAMPLES)
|
|
|
|
${REINPLACE_CMD} -e '/SUBDIRS/ s|tests||' ${WRKSRC}/Makefile.${ext}
|
2008-03-23 10:15:49 +00:00
|
|
|
. endif
|
|
|
|
. for dd in ${DOC2FIX}
|
|
|
|
${REINPLACE_CMD} -e 's|docdir = $$(datadir)/doc|docdir = @docdir@|' \
|
|
|
|
${WRKSRC}/doc/${dd}/Makefile.${ext}
|
|
|
|
. endfor
|
|
|
|
. for dd in ${TST2FIX}
|
|
|
|
${REINPLACE_CMD} -e 's|test${dd}dir = $$(bindir)/test|test${dd}dir = ${EXAMPLESDIR}/test|' \
|
|
|
|
${WRKSRC}/tests/${dd}/Makefile.${ext}
|
|
|
|
. endfor
|
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:
|
2005-01-17 21:08:51 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-07-23 14:35:27 +00:00
|
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
|
|
.endif
|
|
|
|
|
2006-12-12 18:24:23 +00:00
|
|
|
regression-test:
|
2009-01-14 20:25:24 +00:00
|
|
|
@(cd ${BUILD_WRKSRC}/tests; \
|
2006-12-12 18:24:23 +00:00
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
|
|
|
|
|
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>
|