summaryrefslogtreecommitdiff
path: root/science/py-avogadrolibs/Makefile
blob: 1586eab6928ed44de635b7c6a37f66c2b3ebaa32 (plain)
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
# $FreeBSD$

PORTNAME=	avogadrolibs
DISTVERSION=	1.91.0-107
PORTREVISION=	1
DISTVERSIONSUFFIX=	-g60c69b0
CATEGORIES=	science
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Python bindings for Avogadro2 chemistry libraries

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/../LICENSE

BUILD_DEPENDS=	${LOCALBASE}/include/pybind11/pybind11.h:devel/pybind11
LIB_DEPENDS=	libAvogadroCore.so:science/avogadrolibs

USES=		cmake compiler:c++11-lang eigen:3 python:3.5+
USE_GITHUB=	yes
GH_ACCOUNT=	OpenChemistry
USE_PYTHON=	flavors

WRKSRC_SUBDIR=	python

CMAKE_ARGS=	-DINSTALL_LIBRARY_DIR:STRING=${PYTHON_SITELIBDIR}

PLIST_FILES=	${PYTHON_SITELIBDIR}/avogadro/__init__.py \
		${PYTHON_SITELIBDIR}/avogadro/core.so \
		${PYTHON_SITELIBDIR}/avogadro/io.so

.include <bsd.port.mk>