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