pkgsrc/devel/py-boost/Makefile
jperkin 0f31992e8e py-boost: Prune -lutil on SunOS.
This is handled correctly by the python jam file, but for some reason
$(target-os) is set to "unix" instead of "solaris" somewhere indecipherably, so
this way is just simpler.
2020-01-24 15:36:39 +00:00

34 lines
878 B
Makefile

# $NetBSD: Makefile,v 1.12 2020/01/24 15:36:39 jperkin Exp $
BOOST_PACKAGE= python
BOOST_COMMENT= (Boost.Python binary library)
BOOST_CONFIG= installed
INSTALLATION_DIRS+= lib
.include "../../meta-pkgs/boost/Makefile.common"
PKGNAME= ${PYPKGPREFIX}-boost-${BOOST_VERSION}
BJAM_ARGS+= --user-config=${WRKSRC}/user-config.jam
BJAM_ARGS+= --with-python
MAKE_ENV+= BOOST_BUILD_PATH=${WRKSRC}
.include "../../devel/boost-jam/bjam.mk"
.include "../../lang/python/pyversion.mk"
post-configure:
${ECHO} 'using python : ${PYVERSSUFFIX} :' \
'${PREFIX}/bin/python${PYVERSSUFFIX} : ${PREFIX}/include/python${PYVERSSUFFIX} ;' \
>${WRKSRC}/user-config.jam
do-build: bjam-build
do-install: boost-install-libs
PLIST_SUBST+= PYVER=${_PYTHON_VERSION}
BUILDLINK_TRANSFORM.SunOS+= rm:-lutil
.include "../../math/py-numpy/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"