Tweak math/geg version 1.0.2_7
[dports.git] / math / metis-edf / Makefile
1 # Created by: thierry@pompo.net
2 # $FreeBSD$
3
4 PORTNAME=       metis-edf
5 DISTVERSION=    4.0.3-1
6 PORTEPOCH=      1
7 CATEGORIES=     math
8
9 MAINTAINER=     thierry@FreeBSD.org
10 COMMENT=        Meshes partitioning tool used by Code_Aster
11
12 CONFLICTS=      metis-[0-9]* metis4-4*
13
14 ALL_TARGET=     default
15 MAKE_ENV=       PICFLAG="${PICFLAG}" prefix="${PREFIX}" OPTFLAGS="${CFLAGS}"
16
17 PICFLAG?=       -fPIC
18
19 WRKSRC=         ${WRKDIR}/${PORTNAME:C|-edf||}-${PORTVERSION:R}
20
21 DOCS=           CHANGES Doc/manual.ps
22
23 OPTIONS_DEFINE= DOCS EXAMPLES
24
25 .include <bsd.port.pre.mk>
26 .include "${.CURDIR}/../../french/aster/bsd.aster.mk"
27
28 MACHINEARCH=    ${ARCH}
29 USE_LDCONFIG=   yes
30
31 post-install:
32         ${MKDIR} ${STAGEDIR}${DOCSDIR}
33 . for df in ${DOCS}
34         ${INSTALL_DATA} ${WRKSRC}/${df} ${STAGEDIR}${DOCSDIR}
35 . endfor
36         ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
37         ${INSTALL_DATA} ${WRKSRC}/Graphs/* ${STAGEDIR}${EXAMPLESDIR}
38         ${INSTALL_PROGRAM} ${WRKSRC}/Graphs/mtest ${STAGEDIR}${EXAMPLESDIR}
39
40 regression-test:
41         (cd ${WRKSRC}/Graphs && LD_LIBRARY_PATH=${WRKSRC} ./mtest 4elt.graph || ${TRUE})
42
43 .include <bsd.port.post.mk>