Changeset View
Changeset View
Standalone View
Standalone View
biology/py-pysam/Makefile
PORTNAME= pysam | PORTNAME= pysam | ||||
DISTVERSION= 0.20.0 | DISTVERSION= 0.20.0 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= biology python | CATEGORIES= biology python | ||||
MASTER_SITES= PYPI | MASTER_SITES= PYPI | ||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||||
MAINTAINER= yuri@FreeBSD.org | MAINTAINER= yuri@FreeBSD.org | ||||
COMMENT= Python module for reading, manipulating and writing genomic data sets | COMMENT= Python module for reading, manipulating and writing genomic data sets | ||||
WWW= https://github.com/pysam-developers/pysam | WWW= https://github.com/pysam-developers/pysam | ||||
LICENSE= MIT | LICENSE= MIT | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
LIB_DEPENDS= libhts.so:biology/htslib | |||||
USES= gmake python:3.6-3.9 | USES= gmake python:3.6-3.9 | ||||
USE_PYTHON= autoplist distutils cython cython_run pytest | USE_PYTHON= autoplist distutils cython cython_run pytest | ||||
CFLAGS+= -fPIC # workaround for https://github.com/pysam-developers/pysam/issues/1146 | |||||
BINARY_ALIAS= make=${GMAKE} | BINARY_ALIAS= make=${GMAKE} | ||||
MAKE_ENV= HTSLIB_MODE=external \ | |||||
HTSLIB_LIBRARY_DIR=${LOCALBASE}/lib \ | |||||
HTSLIB_INCLUDE_DIR=${LOCALBASE}/include | |||||
post-install: | post-install: | ||||
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pysam/lib*${PYTHON_EXT_SUFFIX}.so | @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pysam/lib*${PYTHON_EXT_SUFFIX}.so | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |