mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# Created by: Sangwoo Shim <sangwoos@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= protomol
|
|
PORTVERSION= 2.0.3
|
|
PORTREVISION= 8
|
|
CATEGORIES= biology
|
|
MASTER_SITES= SF/${PORTNAME}/ProtoMol/${PORTVERSION}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-tar.gz
|
|
EXTRACT_SUFX= # empty
|
|
|
|
MAINTAINER= sangwoos@gmail.com
|
|
COMMENT= OO, component based, framework for molecular dynamics (MD) simulations
|
|
|
|
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg \
|
|
tiff.4:${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
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
.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} ${EXAMPLESDIR}
|
|
cd ${WRKSRC}/examples && ${FIND} . | ${EGREP} -v '\.cvsignore' | \
|
|
${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|