blob: 5e5be81d3b90df159d89e4cd2911341fa1b1fdec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# New ports collection makefile for: med
# Date created: Thu Jun 26 2003
# Whom: thierry@pompo.net
#
# $FreeBSD$
#
PORTNAME= med
PORTVERSION= 2.1.5
PORTREVISION= 1
CATEGORIES= french cad converters
MASTER_SITES= http://www.code-aster.org/FICHIERS/
DISTNAME= ${PORTNAME}hdf-src-${PORTVERSION}-1.noarch
EXTRACT_SUFX= .tar
MAINTAINER= ports@FreeBSD.org
COMMENT= Modélisation et Échanges de Données
BUILD_DEPENDS= ${LOCALBASE}/lib/libhdf5.a:${PORTSDIR}/science/hdf5
EXTRACT_CMD= ${TAR}
EXTRACT_BEFORE_ARGS= -xf
EXTRACT_AFTER_ARGS= # empty
CONFIGURE_ARGS= --prefix=${PREFIX} --disable-shared
CONFIGURE_ENV= HDF5HOME=${LOCALBASE}
USE_INC_LIBTOOL_VER= 13
USE_GMAKE= yes
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}.src
post-extract:
@(cd ${WRKDIR} && \
${TAR} xfz ${WRKDIR}/${PORTNAME}${PORTVERSION}.src.tar.gz)
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}
post-install:
.if defined(NOPORTDOCS)
@${RM} -rf ${EXAMPLESDIR}
.else
@${MKDIR} ${DOCSDIR}
@${CP} -R ${WRKSRC}/doc/html ${DOCSDIR}
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
.include <bsd.port.mk>
|