Changeset View
Changeset View
Standalone View
Standalone View
science/rdkit/Makefile
Show All 11 Lines | |||||
LICENSE= BSD3CLAUSE | LICENSE= BSD3CLAUSE | ||||
LICENSE_FILE= ${WRKSRC}/license.txt | LICENSE_FILE= ${WRKSRC}/license.txt | ||||
BUILD_DEPENDS= catch>0:devel/catch \ | BUILD_DEPENDS= catch>0:devel/catch \ | ||||
flex:textproc/flex \ | flex:textproc/flex \ | ||||
rapidjson>=0:devel/rapidjson | rapidjson>=0:devel/rapidjson | ||||
LIB_DEPENDS= libboost_system.so:devel/boost-libs | LIB_DEPENDS= libboost_system.so:devel/boost-libs | ||||
USES= bison:build cmake eigen:3 python | USES= bison:build cmake compiler:c++11-lang eigen:3 python | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_TUPLE= schrodinger:maeparser:1.0.0:maeparser/External/CoordGen/maeparser \ | GH_TUPLE= schrodinger:maeparser:1.0.0:maeparser/External/CoordGen/maeparser \ | ||||
schrodinger:coordgenlibs:ede3191:coordgenlibs/External/CoordGen/coordgenlibs | schrodinger:coordgenlibs:ede3191:coordgenlibs/External/CoordGen/coordgenlibs | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
CMAKE_OFF= RDK_INSTALL_INTREE RDK_USE_FLEXBISON \ | CMAKE_OFF= RDK_INSTALL_INTREE RDK_USE_FLEXBISON \ | ||||
RDK_INSTALL_STATIC_LIBS RDK_SWIG_STATIC RDK_PGSQL_STATIC | RDK_INSTALL_STATIC_LIBS RDK_SWIG_STATIC RDK_PGSQL_STATIC \ | ||||
RDK_OPTIMIZE_NATIVE | |||||
CMAKE_ARGS= -DFREEBSD_DOCSDIR:PATH=${DOCSDIR} -DCATCH_DIR=${LOCALBASE} | CMAKE_ARGS= -DFREEBSD_DOCSDIR:PATH=${DOCSDIR} -DCATCH_DIR=${LOCALBASE} | ||||
DATADIR= ${PREFIX}/share/RDKit | DATADIR= ${PREFIX}/share/RDKit | ||||
DOCSDIR= ${PREFIX}/share/doc/RDKit | DOCSDIR= ${PREFIX}/share/doc/RDKit | ||||
PLIST_SUB= SHLIB_VER=${PORTVERSION} | PLIST_SUB= SHLIB_VER=${PORTVERSION} | ||||
OPTIONS_DEFINE= PYTHON DOCS | OPTIONS_DEFINE= PYTHON DOCS | ||||
OPTIONS_DEFAULT= PYTHON | OPTIONS_DEFAULT= PYTHON | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
PYTHON_CMAKE_BOOL= RDK_BUILD_PYTHON_WRAPPERS | PYTHON_CMAKE_BOOL= RDK_BUILD_PYTHON_WRAPPERS | ||||
PYTHON_BUILD_DEPENDS= ${PYNUMPY} | PYTHON_BUILD_DEPENDS= ${PYNUMPY} | ||||
PYTHON_LIB_DEPENDS= ${PY_BOOST} | PYTHON_LIB_DEPENDS= ${PY_BOOST} | ||||
PYTHON_RUN_DEPENDS= ${PYNUMPY} \ | PYTHON_RUN_DEPENDS= ${PYNUMPY} \ | ||||
${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ | ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ | ||||
${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \ | ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \ | ||||
${PYTHON_PKGNAMEPREFIX}reportlab>0:print/py-reportlab@${PY_FLAVOR} | ${PYTHON_PKGNAMEPREFIX}reportlab>0:print/py-reportlab@${PY_FLAVOR} | ||||
PORTDOCS= * | PORTDOCS= * | ||||
.include <bsd.port.pre.mk> | |||||
.if ${ARCH} == powerpc64 | |||||
PLIST_SUB+= PPC64="" | |||||
.else | |||||
PLIST_SUB+= PPC64="@comment " | |||||
.endif | |||||
mat: ARCH is defined after bsd.port.options.mk, no need to do the pre/post thing. | |||||
post-extract: | post-extract: | ||||
@${MKDIR} ${WRKSRC}/External/rapidjson-1.1.0 | @${MKDIR} ${WRKSRC}/External/rapidjson-1.1.0 | ||||
@cd ${WRKSRC}/External/rapidjson-1.1.0 && ${LN} -s ${LOCALBASE}/include/rapidjson include | @cd ${WRKSRC}/External/rapidjson-1.1.0 && ${LN} -s ${LOCALBASE}/include/rapidjson include | ||||
post-stage: # https://github.com/rdkit/rdkit/issues/2094 | post-stage: # https://github.com/rdkit/rdkit/issues/2094 | ||||
#@${MKDIR} ${STAGEDIR}${PREFIX}/lib/cmake | #@${MKDIR} ${STAGEDIR}${PREFIX}/lib/cmake | ||||
#@${MV} ${STAGEDIR}${PREFIX}/lib/*.cmake ${STAGEDIR}${PREFIX}/lib/cmake | #@${MV} ${STAGEDIR}${PREFIX}/lib/*.cmake ${STAGEDIR}${PREFIX}/lib/cmake | ||||
.include <bsd.port.mk> | .include <bsd.port.post.mk> |
ARCH is defined after bsd.port.options.mk, no need to do the pre/post thing.