aboutsummaryrefslogtreecommitdiff
path: root/biology/protomol/Makefile
blob: f7084de677a14320c2c629a144e7d939c7b9f4ff (plain) (blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
PORTNAME=	protomol
PORTVERSION=	2.0.3
PORTREVISION=	16
CATEGORIES=	biology
MASTER_SITES=	SF/${PORTNAME}/ProtoMol/${PORTVERSION}
DISTFILES=	${DISTNAME}-tar.gz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	OO, component based, framework for molecular dynamics (MD) simulations
WWW=		https://protomol.sourceforge.net/

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libpng.so:graphics/png \
		libtiff.so:graphics/tiff

USES=		jpeg shebangfix xorg
USE_CXXSTD=	c++98
SHEBANG_FILES=	examples/butane_4/procDihedralFile.awk \
		examples/butane_4/cleanOutput.bash \
		examples/butane_4/runButaneResults.sh \
		examples/butane_4/runButaneTests.sh
SHEBANG_LANG=	awk
awk_OLD_CMD=	/usr/bin/gawk
awk_CMD=	/usr/bin/awk # base awk works fine in this case
GNU_CONFIGURE=	yes
USE_XORG=	xmu xt sm ice xext x11 xi

# Hack to cure a misbehavior of the configure script
CONFIGURE_ARGS+=	--without-irix_mipspro_mpi

CPPFLAGS+=	-I${LOCALBASE}/include
CXXFLAGS+=	-L${LOCALBASE}/lib

WRKSRC=		${WRKDIR}/${PORTNAME}

OPTIONS_DEFINE=	GLUT EXAMPLES
OPTIONS_DEFAULT=	GLUT

GLUT_CONFIGURE_ON=	--with-glut=yes
GLUT_USES=	gl
GLUT_USE=	GL=glut
GLUT_CONFIGURE_OFF=	--with-glut=no

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	cd ${WRKSRC}/examples ; \
		${COPYTREE_SHARE} .  ${STAGEDIR}${EXAMPLESDIR} "! -name .cvsignore"

.include <bsd.port.mk>