SCONS_BUILD_ARGS+= sundials_libdir=${PREFIX}/lib
SCONS_BUILD_ARGS+= run_examples=no
+# pkgsrc assumes PREFIX to be a standard argument and adds it implicitly
+# This package uses prefix instead. So have to do the following
+.include "../../devel/scons4/build.mk"
+_SCONS_BUILD_ARGS:= ${_SCONS_BUILD_ARGS:NPREFIX=${PREFIX}}
+
+
PKGCONFIG_OVERRIDE+= platform/posix/cantera.pc.in
DEPENDS+= ${PYPKGPREFIX}-packaging>0:../../devel/py-packaging
TOOL_DEPENDS+= ${PYPKGPREFIX}-pip>=0:../../devel/py-pip
TOOL_DEPENDS+= ${PYPKGPREFIX}-ruamel-yaml>=0.18.6:../../devel/py-ruamel-yaml
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
CHECK_RELRO= no
.include "../../wip/sundials/buildlink3.mk"
.include "../../textproc/yaml-cpp/buildlink3.mk"
.include "../../textproc/fmtlib/buildlink3.mk"
-.include "../../devel/scons4/build.mk"
.include "../../devel/googletest/buildlink3.mk"
.include "../../lang/python/wheel.mk"
+.include "../../lang/${PYPACKAGE}/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
-Requires this in scons4/build.mk since PREFIX option is not supported. (Or
-commenting this line should be fine since we add prefix to build args in
-Makefile.) A systematic solution is needed for this.
-
- _SCONS_BUILD_ARGS+= prefix=${PREFIX}
-
Following warning may be handled by building sundials with blas/lapack
- WARNING: External BLAS/LAPACK has been specified for Cantera but SUNDIALS was built without this support. Cantera will use the slower default solver implementations included with SUNDIALS. You can resolve this warning by installing or building SUNDIALS with BLAS/LAPACK support.