aboutsummaryrefslogtreecommitdiffstats
path: root/french/med/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'french/med/Makefile')
-rw-r--r--french/med/Makefile24
1 files changed, 18 insertions, 6 deletions
diff --git a/french/med/Makefile b/french/med/Makefile
index a4f9fd607ee4..7db88e5883bc 100644
--- a/french/med/Makefile
+++ b/french/med/Makefile
@@ -6,9 +6,12 @@
#
PORTNAME= med
-PORTVERSION= 2.3.4
+DISTVERSIONPREFIX= full-src-
+DISTVERSION= 2.3.5
+DISTVERSIONSUFFIX= .noarch
CATEGORIES= french science
MASTER_SITES= http://www.code-aster.org/V2/UPLOAD/DOC/Telechargement/
+DISTNAME= aster-${DISTVERSIONPREFIX}${ASTER_DISTVERSION}${DISTVERSIONSUFFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Modelisation et Echanges de Donnees
@@ -17,6 +20,12 @@ BUILD_DEPENDS= wish${TK_VER}:${PORTSDIR}/x11-toolkits/tk${SHORT_TK_VER}
LIB_DEPENDS= hdf5.0:${PORTSDIR}/science/hdf5
RUN_DEPENDS= wish${TK_VER}:${PORTSDIR}/x11-toolkits/tk${SHORT_TK_VER}
+ASTER_VER= 9.4.0
+ASTER_DISTVERSION= ${ASTER_VER}-1
+EXTRACT_WRKSRC= ${WRKDIR}/aster-${DISTVERSIONPREFIX}${ASTER_VER}/SRC
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
TK_VER?= 8.4
SHORT_TK_VER= ${TK_VER:S/.//}
@@ -24,8 +33,7 @@ USE_FORTRAN= yes
FFLAGS+= -O2
CONFIGURE_ENV= HDF5HOME=${LOCALBASE} CPPFLAGS="${PTHREAD_CFLAGS}" \
- LDFLAGS="${PTHREAD_LIBS}" WISH=${LOCALBASE}/bin/wish${TK_VER} \
- FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}"
+ LDFLAGS="${PTHREAD_LIBS}" WISH=${LOCALBASE}/bin/wish${TK_VER}
CONFIGURE_ARGS= --with-f90=${FC} --docdir=${DOCSDIR}
GNU_CONFIGURE= yes
USE_GMAKE= yes
@@ -38,13 +46,17 @@ TST2FIX= c f
PORTDOCS= *
PORTEXAMPLES= *
+post-extract:
+ (cd ${WRKDIR} && \
+ ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${EXTRACT_WRKSRC}/${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS})
+
pre-configure:
.for ext in am in
. if defined(NOPORTDOCS)
${REINPLACE_CMD} -e '/SUBDIRS/ s|doc||' ${WRKSRC}/Makefile.${ext}
. endif
-. if defined(NOPORTEXAMPLES)
- ${REINPLACE_CMD} -e '/SUBDIRS/ s|tests||' ${WRKSRC}/Makefile.${ext}
+. if !defined(NOPORTEXAMPLES)
+ ${REINPLACE_CMD} -e '/SUBDIRS/ s|tools|tools tests|' ${WRKSRC}/Makefile.${ext}
. endif
. for dd in ${DOC2FIX}
${REINPLACE_CMD} -e 's|docdir = $$(datadir)/doc|docdir = @docdir@|' \
@@ -62,7 +74,7 @@ post-install:
.endif
regression-test:
- @(cd ${BUILD_WRKSRC}; \
+ @(cd ${BUILD_WRKSRC}/tests; \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
.include <bsd.port.mk>