freebsd-ports/math/metis-edf/Makefile
Pav Lucistnik 8a0dc91f63 - www.code-aster.org was reorganized. fix fetching
PR:		ports/60121
Submitted by:	Thierry Thomas <thierry@pompo.net>
2003-12-10 23:09:50 +00:00

57 lines
1.5 KiB
Makefile

# New ports collection makefile for: metis-edf
# Date created: Thu Jun 26 2003
# Whom: thierry@pompo.net
#
# $FreeBSD$
#
PORTNAME= metis-edf
PORTVERSION= 3.1
CATEGORIES= math
MASTER_SITES= http://www.code-aster.org/FICHIERS/
DISTNAME= ${PORTNAME}-src-${PORTVERSION}-1.noarch
MAINTAINER= ports@FreeBSD.org
COMMENT= Meshes partionning tool used by Code_Aster
CONFLICTS= metis-[0-9]*
ALL_TARGET= default
MAKE_ENV+= CC="${CC}" AR="${AR}" F77="${F77}" FFLAGS="${FFLAGS}"
USE_REINPLACE= yes
REINPLACE_ARGS= -i ""
F77?= f77
FFLAGS?= -O2
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
post-patch:
.if ${MACHINE_ARCH} != "i386"
@${FIND} ${WRKSRC} -type f -name "*.c" -o -name "*.h" | ${XARGS} \
${REINPLACE_CMD} -e "s|long int|int|g" \
-e "s|long|int|g" \
-e "s|\(%[[:digit:]]\)ld|\1d|g" \
-e "s|\(%[[:digit:]]\.[[:digit:]]\)le|\1e|g" \
-e "s|%ld|%d|g"
.endif
do-install:
@${CP} ${WRKSRC}/CONFIG/onmetis.in ${WRKSRC}/onmetis
@${REINPLACE_CMD} -e "s#HOME_METIS#${PREFIX}/bin#" ${WRKSRC}/onmetis
${INSTALL_SCRIPT} ${WRKSRC}/onmetis ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/onmetis.exe ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/libmetis.a ${PREFIX}/lib
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/Doc/manual.ps ${DOCSDIR}
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/Test/fort.81 ${EXAMPLESDIR}
@${ECHO_MSG} "===> Test file installed in ${EXAMPLESDIR}."
.endif
.include <bsd.port.mk>