aboutsummaryrefslogtreecommitdiffstats
path: root/science/mcstas/Makefile
blob: 8567358b16369263cef5109f910079463bd26ee6 (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
# Created by: Joerg Pulz <Joerg.Pulz@frm2.tum.de>
# $FreeBSD$

PORTNAME=   mcstas
PORTVERSION=    1.12c
PORTREVISION=   1
CATEGORIES= science
MASTER_SITES=   http://www.mcstas.org/download/ \
        http://www.c-s.li/ports/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src

MAINTAINER= cs@FreeBSD.org
COMMENT=    A neutron ray-trace simulation package

LICENSE=    GPLv2

BUILD_DEPENDS=  pgxwin_server:${PORTSDIR}/graphics/pgplot
RUN_DEPENDS=    PDL>=0:${PORTSDIR}/math/PDL \
        p5-Tk>=0:${PORTSDIR}/x11-toolkits/p5-Tk

STRIP=
USE_PERL5=  yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
NO_MTREE=   yes
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

PERL_ARCHNAME!= perl -V:archname 2>/dev/null || echo

PLIST_SUB+= PERL_PORT=perl5 PERL_ARCHNAME=${PERL_ARCHNAME:S/archname='//:S/';//}

MAN1=       mcconvert.1 \
        mcdisplay.1 \
        mcdoc.1 \
        mcformat.1 \
        mcgui.1 \
        mcplot.1 \
        mcrun.1 \
        mcstas.1 \

post-configure:
        @cd ${WRKSRC}; make pgplot

.include <bsd.port.mk>