aboutsummaryrefslogtreecommitdiffstats
path: root/biology/protomol/Makefile
blob: e8c7d8af8846b92c511d4e6afccb43b069b5617f (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
# Created by: Sangwoo Shim <sangwoos@gmail.com>
# $FreeBSD$

PORTNAME=   protomol
PORTVERSION=    2.0.3
PORTREVISION=   11
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

LIB_DEPENDS=    libpng.so:${PORTSDIR}/graphics/png \
        libjpeg.so:${PORTSDIR}/graphics/jpeg \
        libtiff.so:${PORTSDIR}/graphics/tiff

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
OPTIONS_DEFAULT=    GLUT

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGLUT}
CONFIGURE_ARGS+=    --with-glut=yes
USE_GL= glut
.else
CONFIGURE_ARGS+=    --with-glut=no
.endif

.if ${PORT_OPTIONS:MEXAMPLES}
post-install:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    cd ${WRKSRC}/examples && ${FIND} . | ${EGREP} -v '\.cvsignore' | \
        ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${EXAMPLESDIR}
.endif

.include <bsd.port.mk>