1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/french/med/Makefile

82 lines
2.2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: med
# Date created: Thu Jun 26 2003
# Whom: thierry@pompo.net
#
# $FreeBSD$
#
PORTNAME= med
DISTVERSIONPREFIX= full-src-
2010-03-26 18:30:47 +00:00
DISTVERSION= 2.3.6
DISTVERSIONSUFFIX= .noarch
PORTREVISION= 1
CATEGORIES= french science
2008-03-23 10:15:49 +00:00
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
2005-01-17 21:08:51 +00:00
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}
2010-03-26 18:30:47 +00:00
ASTER_VER= 10.1.0
ASTER_DISTVERSION= ${ASTER_VER}-4
EXTRACT_WRKSRC= ${WRKDIR}/aster-${DISTVERSIONPREFIX}${ASTER_VER}/SRC
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
2005-01-17 21:08:51 +00:00
TK_VER?= 8.4
SHORT_TK_VER= ${TK_VER:S/.//}
USE_FORTRAN= yes
FFLAGS+= -O2
2008-03-23 10:15:49 +00:00
CONFIGURE_ENV= HDF5HOME=${LOCALBASE} CPPFLAGS="${PTHREAD_CFLAGS}" \
LDFLAGS="${PTHREAD_LIBS}" WISH=${LOCALBASE}/bin/wish${TK_VER}
2008-03-23 10:15:49 +00:00
CONFIGURE_ARGS= --with-f90=${FC} --docdir=${DOCSDIR}
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_AUTOTOOLS= autoconf:267
USE_LDCONFIG= yes
2005-01-17 21:08:51 +00:00
DOC2FIX= . gif html jpg png tests
TST2FIX= c f
PORTDOCS= *
PORTEXAMPLES= *
post-extract:
(cd ${WRKDIR} && \
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${EXTRACT_WRKSRC}/${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS})
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)
${REINPLACE_CMD} -e '/SUBDIRS/ s|doc||' ${WRKSRC}/Makefile.${ext}
. endif
. 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
post-install:
2005-01-17 21:08:51 +00:00
.if !defined(NOPORTDOCS)
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
regression-test:
@(cd ${BUILD_WRKSRC}/tests; \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
2008-03-23 10:15:49 +00:00
.include <bsd.port.mk>