mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
2e3378cde0
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.
30 lines
802 B
Makefile
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>
|