freebsd-ports/science/avogadro/Makefile
Rene Ladan 5727b9916c - Reset maintainer [1]
While here:
- convert Makefile header
- pet portlint (including USE_GNOME=pkgconfig -> USE_PKGCONFIG=yes)
- drop support for unsupported FreeBSD versions
- convert to optionsNG

Submitted by:	previous maintainer (tkjacobsen@gmail.com) [1] in
		http://lists.freebsd.org/pipermail/freebsd-ports/2013-April/082815.html
Feature safe:	yes
2013-04-16 16:00:08 +00:00

50 lines
1.2 KiB
Makefile

# Created by: Troels Kofoed Jacobsen <tkjacobsen@gmail.com>
# $FreeBSD$
PORTNAME= avogadro
PORTVERSION= 1.0.3
PORTREVISION= 2
CATEGORIES= science
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Advanced molecular editor and viewer
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen2.pc:${PORTSDIR}/math/eigen2
LIB_DEPENDS= openbabel:${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
USES= cmake
CMAKE_ARGS= -DENABLE_GLSL=OFF \
-DQT_MKSPECS_RELATIVE=share/qt4/mkspecs
USE_GCC= 4.4+
MAKE_JOBS_SAFE= yes
OPTIONS_DEFINE= PYTHON
MAN1= avogadro.1 avopkg.1
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPYTHON}
CMAKE_ARGS+= -DENABLE_PYTHON=ON
USE_PYTHON= -2.7
BUILD_DEPENDS+= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}sip>0:${PORTSDIR}/devel/py-sip
RUN_DEPENDS+= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}sip>0:${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
post-patch:
@${REINPLACE_CMD} 's|share/man|man|' ${WRKSRC}/doc/CMakeLists.txt
.include <bsd.port.mk>