aboutsummaryrefslogtreecommitdiffstats
path: root/biology/protomol/Makefile
blob: dd40c86556d6958d2f234d1ed2f4b87ee744b806 (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
52
53
54
55
# New ports collection makefile for:   protomol
# Date created:         5 May 2006
# Whom:                 Sangwoo Shim <sangwoos@gmail.com>
#
# $FreeBSD$

PORTNAME=   protomol
PORTVERSION=    2.0.3
PORTREVISION=   1
CATEGORIES= biology
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   ${PORTNAME}-${PORTVERSION}-tar.gz
EXTRACT_SUFX=   # nada

MAINTAINER= sangwoos@gmail.com
COMMENT=    OO, component based, framework for molecular dynamics (MD) simulations

LIB_DEPENDS=    png.5:${PORTSDIR}/graphics/png \
        jpeg.9:${PORTSDIR}/graphics/jpeg \
        tiff.4:${PORTSDIR}/graphics/tiff

GNU_CONFIGURE=  yes
USE_XLIB=   yes
USE_GCC=    3.4+

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

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

CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}"

WRKSRC=     ${WRKDIR}/${PORTNAME}

OPTIONS=    GLUT "Use glut" on

.include <bsd.port.pre.mk>

.if defined(WITH_GLUT)
CONFIGURE_ARGS+=    --with-glut=yes
LIB_DEPENDS+=   glut.4:${PORTSDIR}/graphics/libglut
.else
CONFIGURE_ARGS+=    --with-glut=no
.endif

.if !defined(NOPORTDOCS)
post-install:
    @${MKDIR} ${EXAMPLESDIR}
    cd ${WRKSRC}/examples && ${FIND} . | ${EGREP} -v '\.cvsignore' | \
        ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif

.include <bsd.port.post.mk>