aboutsummaryrefslogtreecommitdiffstats
path: root/science/p5-Mcstas-Tools/Makefile
blob: c400c35f55d33fdfa15d9655cbfcc6678db9beeb (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
# Created by: Erik B Knudsen
# $FreeBSD$

PORTNAME=   Mcstas-Tools
PORTVERSION=    2.2a
PORTREVISION=   1
CATEGORIES= science
MASTER_SITES=   http://download.mcstas.org/mcstas-${PORTVERSION}/unix/McStas-${PORTVERSION}-UNIX-src/
PKGNAMEPREFIX=  p5-
DISTNAME=   mcstas-tools-perl-${PORTVERSION}-src

MAINTAINER= erkn@fysik.dtu.dk
COMMENT=    Perl based tools for the McStas neutron ray tracing package

LICENSE=    GPLv2

RUN_DEPENDS=    p5-Tk>0:x11-toolkits/p5-Tk \
        p5-PGPLOT>=2.21:graphics/p5-PGPLOT  \
        PDL>0:math/PDL \
        mcstas:science/mcstas

USES=       cmake perl5 shebangfix
CMAKE_ARGS= -Denable_mcstas=1
SHEBANG_FILES=  ${EXECS:S/$/.pl/}

PLIST_SUB=  PORTVERSION=${PORTVERSION}

EXECS=      mcdaemon mcdisplay mcdoc mcformatgui mcgui mcplot mcresplot mcrun mcstas2vitess

post-install:
    ${MV} ${STAGEDIR}${PREFIX}/mcstas/${PORTVERSION}/doc/man/man1/*.1 ${STAGEDIR}${PREFIX}/man/man1/
    ${RMDIR} -p ${STAGEDIR}${PREFIX}/mcstas/${PORTVERSION}/doc/man/man1 || : > /dev/null 2>&1
.for target in ${EXECS}
    ${LN} -s ${PREFIX}/mcstas/${PORTVERSION}/bin/${target} ${STAGEDIR}${PREFIX}/bin/${target}
.endfor

.include <bsd.port.mk>