1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/science/mcstas/Makefile
Tobias Kortkamp 2e3378cde0 Cleanup RLN usage
RLN is based on install(1) and -s means "run strip(1) on the installed
binary".  install(1) ignores -s when it makes a link, so it "works"
now instead of failing when it links non-binaries.
2019-01-14 14:05:39 +00:00

30 lines
802 B
Makefile

# $FreeBSD$
PORTNAME= mcstas
PORTVERSION= 2.5
CATEGORIES= science
MASTER_SITES= http://download.mcstas.org/${PORTNAME}-${PORTVERSION}/unix/
DISTNAME= mcstas-${PORTVERSION}-src
MAINTAINER= erkn@fysik.dtu.dk
COMMENT= Monte Carlo neutron ray tracing package
LICENSE= GPLv2
USES= bison:build cmake shebangfix
CMAKE_ARGS= "-Denable_mcstas=1"
SHEBANG_FILES= cmake/support/install-scripts/postinst.in cmake/support/run-scripts/mccode_errmsg.in
MANDIRS= ${PREFIX}/${PORTNAME}/${DISTVERSION}/doc/man/man1
PLIST_SUB+= PORTVERSION=${PORTVERSION}
MCEXECS= mcstas mcformat
post-install:
.for e in ${MCEXECS}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${PORTNAME}/${PORTVERSION}/bin/${e}
${RLN} ${STAGEDIR}/${PREFIX}/${PORTNAME}/${PORTVERSION}/bin/${e} ${STAGEDIR}${PREFIX}/bin/${e}
.endfor
.include <bsd.port.mk>