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
|
|
|
|
|
PORTVERSION= 2.1.5
|
2004-02-04 05:21:48 +00:00
|
|
|
|
PORTREVISION= 1
|
2003-07-23 14:35:27 +00:00
|
|
|
|
CATEGORIES= french cad converters
|
2003-12-10 23:09:50 +00:00
|
|
|
|
MASTER_SITES= http://www.code-aster.org/FICHIERS/
|
|
|
|
|
DISTNAME= ${PORTNAME}hdf-src-${PORTVERSION}-1.noarch
|
2003-07-23 14:35:27 +00:00
|
|
|
|
EXTRACT_SUFX= .tar
|
|
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
|
COMMENT= Mod<6F>lisation et <20>changes de Donn<6E>es
|
|
|
|
|
|
2004-02-25 22:55:55 +00:00
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libhdf5.a:${PORTSDIR}/science/hdf5
|
2003-07-23 14:35:27 +00:00
|
|
|
|
|
|
|
|
|
EXTRACT_CMD= ${TAR}
|
|
|
|
|
EXTRACT_BEFORE_ARGS= -xf
|
|
|
|
|
EXTRACT_AFTER_ARGS= # empty
|
|
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --disable-shared
|
|
|
|
|
CONFIGURE_ENV= HDF5HOME=${LOCALBASE}
|
2004-07-09 17:43:11 +00:00
|
|
|
|
USE_INC_LIBTOOL_VER= 13
|
2003-07-23 14:35:27 +00:00
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}.src
|
|
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
|
@(cd ${WRKDIR} && \
|
|
|
|
|
${TAR} xfz ${WRKDIR}/${PORTNAME}${PORTVERSION}.src.tar.gz)
|
|
|
|
|
|
2004-04-28 20:30:20 +00:00
|
|
|
|
pre-configure:
|
|
|
|
|
@${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' \
|
|
|
|
|
${WRKSRC}/config/commence.in
|
|
|
|
|
@${REINPLACE_CMD} -e 's|@PTHREAD_LIBS@|${PTHREAD_LIBS}|' \
|
|
|
|
|
-e 's|@PTHREAD_CFLAGS@|${PTHREAD_CFLAGS}|' \
|
|
|
|
|
${WRKSRC}/tests/Makefile.in
|
|
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
|
|
2003-07-23 14:35:27 +00:00
|
|
|
|
post-install:
|
2004-04-28 20:30:20 +00:00
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
|
@${RM} -rf ${EXAMPLESDIR}
|
|
|
|
|
.else
|
2003-07-23 14:35:27 +00:00
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
|
@${CP} -R ${WRKSRC}/doc/html ${DOCSDIR}
|
|
|
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|