# $NetBSD: Makefile.common,v 1.2 2004/06/07 04:45:11 tv Exp $ # BOOST_VERSION= 1.31.0 DISTNAME= boost_${BOOST_VERSION:S/./_/g} PKGREVISION= 1 PKGNAME= boost${BOOST_PKGNAME_ADD}-${BOOST_VERSION} CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=boost/} EXTRACT_SUFX= .tar.bz2 MAINTAINER= tech-pkg@NetBSD.org HOMEPAGE= http://www.boost.org/ DISTINFO_FILE= ${.CURDIR}/../boost/distinfo PATCHDIR= ${.CURDIR}/../boost/patches PLIST_SRC= ${WRKSRC}/PLIST.libs ${.CURDIR}/PLIST USE_BUILDLINK3= yes USE_LANGUAGES+= c++ GCC_REQD+= 3.2 # if using gcc; ignored otherwise BJAM?= ${LOCALBASE}/bin/bjam BJAM_ARGS+= --builddir=${WRKSRC}/build BJAM_ARGS+= --prefix=${PREFIX} BJAM_ARGS+= -sBUILD=${BJAM_BUILD:Q} BJAM_BUILD+= -Wl,-R${LOCALBASE}/lib BJAM_BUILD+= release BJAM_CMD= ${SETENV} ${MAKE_ENV} ${BJAM} ${BJAM_ARGS} .include "../boost/toolset.mk" BJAM_ARGS+= -sTOOLS=${BOOST_TOOLSET} .include "../../mk/bsd.prefs.mk" .if defined(BOOST_DEBUG) && !empty(BOOST_DEBUG:M[Yy][Ee][Ss]) BJAM_BUILD+= debug .endif userhpp-configure: @cd ${WRKSRC}/libs/config && ${SETENV} ${CONFIGURE_ENV} ${SH} ./configure ${CP} -f ${WRKSRC}/libs/config/user.hpp ${WRKSRC}/boost/config/user.hpp post-build: @cd ${WRKSRC}/stage && \ ${LS} -1 lib/libboost_* >${WRKSRC}/PLIST.libs # depend on main package for subpackages (exact version match) .ifdef BOOST_PKGNAME_ADD .include "../../devel/boost/buildlink3.mk" BUILDLINK_DEPENDS.boost= ${PKGNAME:S/${BOOST_PKGNAME_ADD}//} .endif