blob: 89b1c64d08bca5be91279dfeb3400def1d7819a8 (
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
56
57
58
59
60
61
|
# New ports collection makefile for: bamg
# Date created: 16 December 2003
# Whom: thierry@pompo.net
#
# $FreeBSD$
#
PORTNAME= bamg
PORTVERSION= 0.68
PORTREVISION= 1
CATEGORIES= math science
MASTER_SITES= ftp://ftp.inria.fr/INRIA/Projects/Gamma/bamg/
DISTNAME= ${PORTNAME}-v${PORTVERSION}
.if !defined(NOPORTDOCS)
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}.ps.gz
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
.endif
MAINTAINER= ports@FreeBSD.org
COMMENT= Bidimensional Anisotrope Mesh Generator
RESTRICTED= No resale, contact author for commercial usage
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_XLIB= yes
USE_GMAKE= yes
ALL_TARGET= world
INSTALL_TARGET= install-world
MAKE_ENV= CXX=${CXX} HOSTTYPE=${HOSTTYPE}
BINS= bamg bamg-g cvmsh2 drawbdmesh
EXDIRS= NACA012 quadloop square test
.include <bsd.port.pre.mk>
HOSTTYPE!= ${UNAME} -s
post-patch:
@${MV} ${WRKSRC}/FLAG.linux ${WRKSRC}/FLAG.${HOSTTYPE}
@${MV} ${WRKSRC}/FLAG.linux.orig ${WRKSRC}/FLAG.linux
post-install:
.for bin in ${BINS}
@${STRIP_CMD} ${PREFIX}/bin/${bin}
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${DISTDIR}/bamg.ps.gz ${DOCSDIR}
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.for exdir in ${EXDIRS}
@${MKDIR} ${EXAMPLESDIR}/${exdir}
@${INSTALL_DATA} ${WRKSRC}/examples/${exdir}/* ${EXAMPLESDIR}/${exdir}
.endfor
@${FIND} ${EXAMPLESDIR} \( -name "*.pl" -or -name "*.sh" \) -exec ${CHMOD} a+x {} \;
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
.endif
.include <bsd.port.post.mk>
|