aboutsummaryrefslogtreecommitdiff
path: root/science/avogadro/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'science/avogadro/Makefile')
-rw-r--r--science/avogadro/Makefile18
1 files changed, 7 insertions, 11 deletions
diff --git a/science/avogadro/Makefile b/science/avogadro/Makefile
index c02ef9086ff1..4e138a50948a 100644
--- a/science/avogadro/Makefile
+++ b/science/avogadro/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: avogadro
-# Date created: 19 May 2009
-# Whom: Troels Kofoed Jacobsen <tkjacobsen@gmail.com>
-#
+# Created by: Troels Kofoed Jacobsen <tkjacobsen@gmail.com>
# $FreeBSD$
-#
PORTNAME= avogadro
PORTVERSION= 1.0.3
@@ -12,7 +8,7 @@ CATEGORIES= science
MASTER_SITES= SF
MAINTAINER= tkjacobsen@gmail.com
-COMMENT= An advanced molecular editor and viewer
+COMMENT= Advanced molecular editor and viewer
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen2.pc:${PORTSDIR}/math/eigen2
LIB_DEPENDS= openbabel.3:${PORTSDIR}/science/openbabel
@@ -28,19 +24,19 @@ CMAKE_ARGS= -DENABLE_GLSL=OFF \
USE_GCC= 4.4+
MAKE_JOBS_SAFE= yes
-OPTIONS= PYTHON "Enable python support" off
+OPTIONS_DEFINE= PYTHON
MAN1= avogadro.1 avopkg.1
.include <bsd.port.options.mk>
-.if defined (WITH_PYTHON)
+.if ${PORT_OPTIONS:MPYTHON}
CMAKE_ARGS+= -DENABLE_PYTHON=ON
-USE_PYTHON= 2.5+
+USE_PYTHON= -2.7
BUILD_DEPENDS+= ${PYNUMPY} \
- sip:${PORTSDIR}/devel/py-sip
+ ${PYTHON_PKGNAMEPREFIX}sip>0:${PORTSDIR}/devel/py-sip
RUN_DEPENDS+= ${PYNUMPY} \
- sip:${PORTSDIR}/devel/py-sip
+ ${PYTHON_PKGNAMEPREFIX}sip>0:${PORTSDIR}/devel/py-sip
LIB_DEPENDS+= boost_python:${PORTSDIR}/devel/boost-python-libs
PLIST_SUB+= PYTHON=""
.else