1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/french/med/Makefile

67 lines
1.8 KiB
Makefile
Raw Normal View History

2013-03-19 20:33:55 +00:00
# Created by: thierry@pompo.net
# $FreeBSD$
PORTNAME= med
DISTVERSION= 3.0.8
PORTREVISION= 2
CATEGORIES= french science
2012-07-07 15:15:57 +00:00
MAINTAINER= thierry@FreeBSD.org
COMMENT= Modelisation et Echanges de Donnees
2012-07-07 15:15:57 +00:00
LICENSE= GPLv3
LIB_DEPENDS= libhdf5.so:science/hdf5
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
OPTIONS_DEFINE= DOCS EXAMPLES
USES= fortran gmake libtool tk
CONFIGURE_ARGS= --disable-python --with-hdf5=${LOCALBASE}
CONFIGURE_ENV= WISH=${WISH}
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
PATCH_TK_SCRIPTS= tools/mdump/xmdump2.in tools/mdump/xmdump3.in
2013-03-19 20:33:55 +00:00
2012-07-07 15:15:57 +00:00
DOC2FIX= . dox gif html html.dox jpg png
2005-01-17 21:08:51 +00:00
TST2FIX= c f
PORTDOCS= *
PORTEXAMPLES= *
.include <bsd.port.options.mk>
2005-01-17 21:08:51 +00:00
pre-configure:
${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|' \
${WRKSRC}/include/2.3.6/med_outils.h \
${WRKSRC}/include/med_outils.h
.if ! ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e '/SUBDIRS/ s|doc||' ${WRKSRC}/Makefile.in
.endif
.if ! ${PORT_OPTIONS:MEXAMPLES}
${REINPLACE_CMD} -e '/SUBDIRS/ s|tests||' ${WRKSRC}/Makefile.in
.endif
.for dd in ${DOC2FIX}
2008-03-23 10:15:49 +00:00
${REINPLACE_CMD} -e 's|docdir = $$(datadir)/doc|docdir = @docdir@|' \
${WRKSRC}/doc/${dd}/Makefile.in
2012-07-07 15:15:57 +00:00
.endfor
.for dd in ${TST2FIX}
${FIND} ${WRKSRC}/tests -name Makefile.in | ${XARGS} \
2008-03-23 10:15:49 +00:00
${REINPLACE_CMD} -e 's|test${dd}dir = $$(bindir)/test|test${dd}dir = ${EXAMPLESDIR}/test|' \
2012-07-07 15:15:57 +00:00
-e 's|unittestsdir = $$(bindir)/unit|unittestsdir = ${EXAMPLESDIR}/unit|' \
-e 's|usescasesdir = $$(bindir)/uses|usescasesdir = ${EXAMPLESDIR}/uses|'
2005-01-17 21:08:51 +00:00
.endfor
post-install:
(cd ${STAGEDIR}${PREFIX}/bin && ${LN} -sf mdump3 mdump \
&& ${LN} -sf xmdump3 xmdump)
regression-test:
(cd ${BUILD_WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
.include "${.CURDIR}/../../french/aster/bsd.aster.mk"
2008-03-23 10:15:49 +00:00
.include <bsd.port.mk>