PORTNAME=	smoldyn
DISTVERSION=	2.68
CATEGORIES=	science
MASTER_SITES=	https://www.smoldyn.org/

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Biochemical simulator for molecular diffusion, surface interactions
WWW=		https://www.smoldyn.org/

LICENSE=	LGPL3
LICENSE_FILE=	${WRKSRC}/License.txt

LIB_DEPENDS=	libtiff.so:graphics/tiff

USES=		cmake:testing compiler:c++11-lang gl localbase:ldflags tar:tgz python:test shebangfix xorg
USE_GL=		gl glu glut
USE_XORG=	xi xmu
USE_LDCONFIG=	yes

SHEBANG_GLOB=	*.py.in

CMAKE_OFF=	OPTION_PYTHON
CMAKE_TESTING_ON=	OPTION_EXAMPLES # all tests fail to run, see https://github.com/ssandrews/Smoldyn/issues/127

PLIST_FILES=	bin/${PORTNAME} \
		include/libsmoldyn.h \
		include/smoldyn.h \
		include/smoldynconfigure.h \
		lib/libsmoldyn_shared.so \
		lib/libsmoldyn_static.a

.include <bsd.port.mk>
