2012-12-10 08:37:57 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.42 2012/12/10 13:37:57 landry Exp $
|
2012-04-22 06:18:13 -04:00
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= ${GCC4_ARCHS}
|
2006-11-05 14:20:41 -05:00
|
|
|
|
2007-12-18 15:46:03 -05:00
|
|
|
COMMENT= free peer-reviewed portable C++ source libraries
|
2006-11-13 16:52:52 -05:00
|
|
|
|
2010-04-21 05:26:58 -04:00
|
|
|
VERSION= 1.42.0
|
2006-11-05 14:20:41 -05:00
|
|
|
DISTNAME= boost_${VERSION:S/./_/g}
|
2012-12-09 03:23:31 -05:00
|
|
|
PKGNAME= boost-${VERSION}
|
|
|
|
REVISION= 15
|
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=boost/}
|
2006-11-05 14:20:41 -05:00
|
|
|
|
2011-11-02 07:54:15 -04:00
|
|
|
SO_VERSION= 4.0
|
2008-04-03 03:44:39 -04:00
|
|
|
BOOST_LIBS= boost_date_time boost_date_time-mt \
|
|
|
|
boost_filesystem boost_filesystem-mt \
|
|
|
|
boost_graph boost_graph-mt \
|
2011-05-05 11:09:20 -04:00
|
|
|
boost_iostreams boost_iostreams-mt \
|
2010-03-30 07:00:15 -04:00
|
|
|
boost_math_c99 boost_math_c99-mt \
|
|
|
|
boost_math_c99f boost_math_c99f-mt \
|
|
|
|
boost_math_c99l boost_math_c99l-mt \
|
|
|
|
boost_math_tr1 boost_math_tr1-mt \
|
|
|
|
boost_math_tr1f boost_math_tr1f-mt \
|
|
|
|
boost_math_tr1l boost_math_tr1l-mt \
|
2011-05-05 13:08:27 -04:00
|
|
|
boost_prg_exec_monitor-mt boost_prg_exec_monitor \
|
2008-04-03 03:44:39 -04:00
|
|
|
boost_program_options boost_program_options-mt \
|
|
|
|
boost_python boost_python-mt \
|
|
|
|
boost_regex boost_regex-mt \
|
|
|
|
boost_serialization boost_serialization-mt \
|
|
|
|
boost_signals boost_signals-mt \
|
2010-03-30 07:00:15 -04:00
|
|
|
boost_system boost_system-mt \
|
2008-04-03 03:44:39 -04:00
|
|
|
boost_thread-mt \
|
2011-05-05 13:08:27 -04:00
|
|
|
boost_unit_test_framework boost_unit_test_framework-mt \
|
2011-05-05 11:09:20 -04:00
|
|
|
boost_wave boost_wave-mt \
|
|
|
|
boost_wserialization boost_wserialization-mt
|
2012-12-09 03:23:31 -05:00
|
|
|
|
2008-04-03 03:44:39 -04:00
|
|
|
.for _lib in ${BOOST_LIBS}
|
|
|
|
SHARED_LIBS+= ${_lib} ${SO_VERSION}
|
|
|
|
.endfor
|
2006-11-05 14:20:41 -05:00
|
|
|
|
2012-12-09 03:23:31 -05:00
|
|
|
HOMEPAGE= http://www.boost.org/
|
2006-11-05 14:20:41 -05:00
|
|
|
|
2011-11-26 05:23:31 -05:00
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
|
|
|
|
2006-11-05 14:20:41 -05:00
|
|
|
# MIT-like
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2012-12-09 03:23:31 -05:00
|
|
|
WANTLIB= c m pthread stdc++ util z
|
|
|
|
|
|
|
|
MODULES= lang/python
|
|
|
|
MODPY_RUNDEP= No
|
2006-11-05 14:20:41 -05:00
|
|
|
|
|
|
|
MAKE_ENV= GCC="${CC}" GXX="${CXX}"
|
2010-03-30 07:00:15 -04:00
|
|
|
|
|
|
|
BJAM_CONFIG= -sNO_BZIP2=1 \
|
|
|
|
-d+2 -q \
|
2011-09-19 15:53:20 -04:00
|
|
|
-j ${MAKE_JOBS} \
|
2010-04-21 08:30:57 -04:00
|
|
|
cflags='${CFLAGS}' cxxflags='${CXXFLAGS}' \
|
2012-12-09 03:23:31 -05:00
|
|
|
variant=release link=static,shared threading=single,multi
|
2010-03-30 07:00:15 -04:00
|
|
|
|
2012-12-09 03:23:31 -05:00
|
|
|
BOOTSTRAP= --without-icu \
|
|
|
|
--with-python=${MODPY_BIN} \
|
|
|
|
--with-python-root=${LOCALBASE} \
|
|
|
|
--with-python-version=${MODPY_VERSION}
|
2010-03-30 07:00:15 -04:00
|
|
|
|
2012-12-09 03:23:31 -05:00
|
|
|
# python.port.mk makes assumptions about an empty CONFIGURE_STYLE
|
|
|
|
CONFIGURE_STYLE= none
|
2010-03-30 07:00:15 -04:00
|
|
|
CONFIGURE_ENV= BJAM_CONFIG="${BJAM_CONFIG}"
|
2006-11-05 14:20:41 -05:00
|
|
|
|
2012-12-09 03:23:31 -05:00
|
|
|
VMEM_WARNING= Yes
|
2006-11-13 16:52:52 -05:00
|
|
|
|
2012-12-09 03:23:31 -05:00
|
|
|
DPB_PROPERTIES= parallel
|
2008-01-05 19:01:15 -05:00
|
|
|
|
2012-12-09 03:23:31 -05:00
|
|
|
NO_REGRESS= Yes
|
2008-01-05 19:01:15 -05:00
|
|
|
|
2010-04-21 05:26:58 -04:00
|
|
|
SUBST_VARS+= SO_VERSION
|
|
|
|
|
2006-11-05 14:20:41 -05:00
|
|
|
do-configure:
|
2012-12-09 03:23:31 -05:00
|
|
|
@${SUBST_CMD} ${WRKSRC}/Jamroot
|
2006-11-05 14:20:41 -05:00
|
|
|
@cd ${WRKSRC}/libs/config && \
|
2012-12-09 03:23:31 -05:00
|
|
|
${SETENV} ${CONFIGURE_ENV} /bin/sh ./configure && \
|
|
|
|
cp user.hpp ${WRKSRC}/boost/config
|
2010-03-30 07:00:15 -04:00
|
|
|
@cd ${WRKSRC} && chmod -R a+x ./ && \
|
2012-12-09 03:23:31 -05:00
|
|
|
/bin/sh ./bootstrap.sh ${BOOTSTRAP}
|
2010-03-30 07:00:15 -04:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC} && \
|
2012-12-09 03:23:31 -05:00
|
|
|
./bjam ${BJAM_CONFIG}
|
2006-11-05 14:20:41 -05:00
|
|
|
|
|
|
|
do-install:
|
2008-04-03 03:44:39 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/jam/src/bin.*/bjam \
|
2012-12-09 03:23:31 -05:00
|
|
|
${PREFIX}/bin
|
2007-01-07 17:20:20 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/stage/lib/lib!(*.so) ${PREFIX}/lib
|
2006-11-13 16:52:52 -05:00
|
|
|
@cd ${WRKSRC} && \
|
2012-12-09 03:23:31 -05:00
|
|
|
find boost -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/include/{} \;
|
2006-11-13 16:52:52 -05:00
|
|
|
@cd ${WRKSRC} && \
|
2012-12-09 03:23:31 -05:00
|
|
|
find boost ! -name \*.orig -type f -exec ${INSTALL_DATA} {} ${PREFIX}/include/{} \;
|
2006-11-05 14:20:41 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|