blob: 1023e154728e92ec6a00182fe72cef402a9fc49f (
plain)
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
|
# New ports collection makefile for: metis-edf
# Date created: Thu Jun 26 2003
# Whom: thierry@pompo.net
#
# $FreeBSD$
#
PORTNAME= metis-edf
PORTVERSION= 3
CATEGORIES= cad
MASTER_SITES= http://www.code-aster.org/FICHIERS/metis/
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}" LD="${LD}" F77="${F77}"
USE_REINPLACE= yes
F77?= f77
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>
|