aboutsummaryrefslogtreecommitdiffstats
path: root/math/emc2/Makefile
blob: 7528e4a64aa2d8ac5dc15343c35c4d44e928f956 (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
# New ports collection makefile for:    emc2
# Date created:        16 December 2003
# Whom:                thierry@pompo.net
#
# $FreeBSD$
#

PORTNAME=   emc2
DISTVERSIONPREFIX=v
DISTVERSION=    2.16c
CATEGORIES= math science
MASTER_SITES=   http://www.ann.jussieu.fr/~hecht/ftp/emc2/
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX}
.if !defined(NOPORTDOCS)
DISTFILES+= RTemc2_fr.pdf RTemc2_gb.pdf
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}
.endif

MAINTAINER= ports@FreeBSD.org
COMMENT=    A graphical editor of two-dimensional mesh geometries

LICENSE=    INRIA
LICENSE_NAME=   INRIA license, perhaps specific to emc2
LICENSE_FILE=   ${WRKSRC}/COPYRIGHT
LICENSE_PERMS=  auto-accept no-dist-sell no-pkg-sell
RESTRICTED= No resale, contact author for commercial usage

USE_XORG=   x11
USE_GMAKE=  yes
ALL_TARGET= ${PORTNAME}

.if defined(LANG) && ${LANG:Mfr*} != ""
CFLAGS+=    -DFRENCH
.endif

.if !defined(NOPORTDOCS)
PORTDOCS=   ${DISTFILES:M*.pdf}
.endif

.if !defined(NOPORTEXAMPLES)
PORTEXAMPLES=   *
.endif

PLIST_FILES=    bin/emc2 bin/prf_f3d

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/emc2 ${PREFIX}/bin
    @${INSTALL_SCRIPT} ${WRKSRC}/prf_f3d ${PREFIX}/bin

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @(cd ${DISTDIR} && ${INSTALL_MAN} ${PORTDOCS} ${DOCSDIR})
.endif
.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>