1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/science/py-pymol/Makefile
Kevin Bowling da3162c7c9 graphics/mesa-libs: Bump reverse deps for libglvnd
Per discussion with bapt on helping pkg handle the changing of these
deps and avoiding impossible upgrade senarios.

PR:		246767
Reviewed by:	manu, bapt
Approved by:	x11
Differential Revision:	https://reviews.freebsd.org/D30824
2021-06-22 11:53:08 -07:00

59 lines
1.9 KiB
Makefile

# Created by: Nakata Maho <chat95@mbox.kyoto-inet.or.jp>
PORTNAME= pymol
DISTVERSIONPREFIX= v
DISTVERSION= 2.4.0
PORTREVISION= 3
CATEGORIES= science biology python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= OpenGL-based molecular visualization system
LICENSE= PyMOL
LICENSE_NAME= Open-Source PyMOL Copyright
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BUILD_DEPENDS= ${PYNUMPY} \
${LOCALBASE}/include/glm/glm.hpp:math/glm \
${LOCALBASE}/include/mmtf.hpp:science/mmtf-cpp
LIB_DEPENDS= libfreetype.so:print/freetype2 \
libpng.so:graphics/png \
libmsgpackc.so:devel/msgpack \
libnetcdf.so:science/netcdf
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}msgpack>0:devel/py-msgpack@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}Pmw>0:x11-toolkits/py-Pmw@${PY_FLAVOR} \
${PYNUMPY}
USES= compiler:c++11-lang gl gnome python:3.5+ shebangfix tar:bz2
USE_GITHUB= yes
GH_ACCOUNT= schrodinger
GH_PROJECT= ${PORTNAME}-open-source
USE_GL= gl glew glu glut
USE_GNOME= libxml2
USE_PYTHON= distutils concurrent # autoplist is broken: https://github.com/schrodinger/pymol-open-source/issues/99
SHEBANG_FILES= test/show test/run test/cyg
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}chempy # https://github.com/schrodinger/pymol-open-source/issues/100
OPTIONS_SINGLE= GUI
OPTIONS_SINGLE_GUI= QT5 TK
OPTIONS_DEFAULT= QT5
QT5_USES= pyqt:5
QT5_USE= PYQT=core_run,gui_run,opengl_run
post-patch-TK-on:
@${REINPLACE_CMD} -e ' \
23s|if not PYQT_NAME:|if False:| ; \
s|from PyQt5 import|from X import|' \
${WRKSRC}/modules/${PORTNAME}/Qt/__init__.py
post-install:
@${REINPLACE_CMD} -i '' -e 's|#!/bin/bash|#!/bin/sh|' ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/_cmd*.so
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/chempy/champ/_champ*.so
.include <bsd.port.mk>