1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00
freebsd-ports/science/yoda/Makefile
Yuri Victorovich fe77478798 science/yoda: Update 1.9.0 -> 1.9.1
Now the python binding builds fine.
The project also installs the completion file by itself.
2021-09-12 10:27:25 -07:00

37 lines
963 B
Makefile

PORTNAME= yoda
DISTVERSION= 1.9.1
CATEGORIES= science
MASTER_SITES= https://yoda.hepforge.org/downloads/
DISTNAME= ${PORTNAME:tu}-${DISTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Particle physics package with classes for data analysis, histogramming
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler:c++11-lang gmake libtool
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
OPTIONS_DEFINE= PYTHON
OPTIONS_DEFAULT= PYTHON
OPTIONS_SUB= yes
PYTHON_USES= python shebangfix
PYTHON_USE= PYTHON=cython
PYTHON_CONFIGURE_ENABLE= pyext
PYTHON_MAKE_ENV= PYTHON_VERSION=${PYTHON_VER} PYTHON=${PYTHON_CMD}
PYTHON_VARS= SHEBANG_FILES="bin/${PORTNAME}* bin/aida2yoda bin/aida2flat bin/flat2yoda"
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libYODA.so
post-install-PYTHON-on:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/*.so
post-install-PYTHON-off:
@${RM} -r ${STAGEDIR}${PREFIX}/share/${PORTNAME:tu}
.include <bsd.port.mk>