aboutsummaryrefslogtreecommitdiffstats
path: root/science/openstructure/Makefile
blob: beb424be7b316c193c5bd8e48c2db2bb5c134357 (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
# $FreeBSD$

PORTNAME=   openstructure
DISTVERSION=    1.7.1
PORTREVISION=   3
CATEGORIES= science

MAINTAINER= yuri@FreeBSD.org
COMMENT=    Molecular modelling and visualization environment

LICENSE=    LGPL3
LICENSE_FILE=   ${WRKSRC}/LICENSE.txt

BUILD_DEPENDS=  fftw3>0:math/fftw3
LIB_DEPENDS=    libboost_filesystem.so:devel/boost-libs \
        libfftw3f.so:math/fftw3-float \
        libpng16.so:graphics/png \
        libtiff.so:graphics/tiff \
        ${PY_BOOST}
RUN_DEPENDS=    ${PYNUMPY} \
        bash:shells/bash

USES=       cmake:outsource eigen:3 python pyqt:4 qt:4 shebangfix
USE_GITLAB= yes
GL_SITE=    https://git.scicore.unibas.ch/
GL_ACCOUNT= schwede
GL_COMMIT=  ${DISTVERSION}
SHEBANG_FILES=  scripts/dng.in scripts/ost.in scripts/ost_config.in
USE_QT=     corelib gui network opengl xml qmake_build moc_build rcc_build uic_build
USE_PYQT=   core gui
USE_GL=     gl glu
USE_LDCONFIG=   yes

BINARY_ALIAS=   python=${PYTHON_CMD}
CMAKE_ARGS= -DPYTHON_INCLUDE_PATH=${PYTHON_INCLUDEDIR} \
        -DPYTHON_LIBRARIES=${PYTHON_LIBDIR} \
        -DFREEBSD_BOOST_PYTHON_COMPONENT=python${PYTHON_VER:S/.//} \
        -DFREEBSD_PYTHON_LIBRARY=python${PYTHON_VER} \
        -DCMAKE_CXX_FLAGS='-std=c++98' # c++98 is needed until 1.8.0 to prevent C++ code build breakage

post-extract:
    @${MV} ${WRKSRC}-* ${WRKSRC}

.include <bsd.port.mk>