freebsd-ports/science/avogadro/Makefile
Alberto Villa 519877d020 - Detect eigen2 by checking for .pc file, not min. port version.
If a user had eigen3 installed, but not eigen2, the min. port version
check would not differentiate between the two.

Submitted by:	Jason E. Hale <bsdkaffee at gmail.com> via area51
2012-06-27 01:14:01 +00:00

60 lines
1.4 KiB
Makefile

# New ports collection makefile for: avogadro
# Date created: 19 May 2009
# Whom: Troels Kofoed Jacobsen <tkjacobsen@gmail.com>
#
# $FreeBSD$
#
PORTNAME= avogadro
PORTVERSION= 1.0.3
PORTREVISION= 1
CATEGORIES= science
MASTER_SITES= SF
MAINTAINER= tkjacobsen@gmail.com
COMMENT= An advanced molecular editor and viewer
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen2.pc:${PORTSDIR}/math/eigen2
LIB_DEPENDS= openbabel.3:${PORTSDIR}/science/openbabel
USE_LDCONFIG= yes
USE_BZIP2= yes
USE_GL= glu
USE_QT4= gui opengl network linguist_build \
qmake_build moc_build rcc_build uic_build
USE_CMAKE= yes
CMAKE_ARGS= -DENABLE_GLSL=OFF \
-DQT_MKSPECS_RELATIVE=share/qt4/mkspecs
USE_GCC= 4.4+
MAKE_JOBS_SAFE= yes
OPTIONS= PYTHON "Enable python support" off
MAN1= avogadro.1 avopkg.1
.include <bsd.port.options.mk>
.if defined (WITH_PYTHON)
CMAKE_ARGS+= -DENABLE_PYTHON=ON
USE_PYTHON= 2.5+
BUILD_DEPENDS+= ${PYNUMPY} \
sip:${PORTSDIR}/devel/py-sip
RUN_DEPENDS+= ${PYNUMPY} \
sip:${PORTSDIR}/devel/py-sip
LIB_DEPENDS+= boost_python:${PORTSDIR}/devel/boost-python-libs
PLIST_SUB+= PYTHON=""
.else
CMAKE_ARGS+= -DENABLE_PYTHON=OFF
PLIST_SUB+= PYTHON="@comment "
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 700013
BROKEN= requires posix_memalign
.endif
post-patch:
@${REINPLACE_CMD} 's|share/man|man|' ${WRKSRC}/doc/CMakeLists.txt
.include <bsd.port.post.mk>