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
|
2006-12-12 19:24:23 +01:00
|
|
|
PORTVERSION= 2.3.1
|
2007-09-30 06:47:36 +02:00
|
|
|
PORTREVISION= 3
|
2006-12-12 19:24:23 +01:00
|
|
|
CATEGORIES= french science
|
2003-12-11 00:09:50 +01:00
|
|
|
MASTER_SITES= http://www.code-aster.org/FICHIERS/
|
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}
|
|
|
|
LIB_DEPENDS= hdf5.0:${PORTSDIR}/science/hdf5
|
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
|
|
|
|
2005-01-17 22:08:51 +01:00
|
|
|
TK_VER?= 8.4
|
|
|
|
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
|
|
|
CONFIGURE_ENV+= FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}"
|
|
|
|
FFLAGS+= -O2
|
|
|
|
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2007-01-17 07:06:55 +01:00
|
|
|
CONFIGURE_ENV+= HDF5HOME=${LOCALBASE} CPPFLAGS="${PTHREAD_CFLAGS}" \
|
|
|
|
LDFLAGS="${PTHREAD_LIBS}" WISH=${LOCALBASE}/bin/wish${TK_VER} \
|
|
|
|
--with-f90=${FC}
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2003-07-23 16:35:27 +02:00
|
|
|
USE_GMAKE= yes
|
2007-09-30 06:47:36 +02:00
|
|
|
USE_AUTOTOOLS= autoconf:261 libtool:15
|
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
|
|
|
|
2005-01-17 22:08:51 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2003-07-23 16:35:27 +02:00
|
|
|
|
2005-01-17 22:08:51 +01:00
|
|
|
pre-configure:
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
@${REINPLACE_CMD} -e 's|SUBDIRS = src tests tools doc|SUBDIRS = src tests tools|' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
|
|
|
.for dd in ${DOC2FIX}
|
|
|
|
@${REINPLACE_CMD} -e 's|docdir = $$(datadir)/doc|docdir = $$(datadir)/doc/@PACKAGE@|' \
|
|
|
|
${WRKSRC}/doc/${dd}/Makefile.in
|
|
|
|
.endfor
|
|
|
|
.for dd in ${TST2FIX}
|
|
|
|
@${REINPLACE_CMD} -e 's|test${dd}dir = $$(bindir)/test|test${dd}dir = ${EXAMPLESDIR}/test|' \
|
|
|
|
${WRKSRC}/tests/${dd}/Makefile.in
|
|
|
|
.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:
|
|
|
|
@(cd ${BUILD_WRKSRC}; \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
|
|
|
|
|
2005-01-17 22:08:51 +01:00
|
|
|
.include <bsd.port.post.mk>
|