2008-06-05 08:55:56 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.16 2008/06/05 12:55:56 kurt Exp $
|
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
|
|
|
|
2008-06-05 08:55:56 -04:00
|
|
|
PKGNAME= boost-${VERSION}p2
|
2006-11-05 14:20:41 -05:00
|
|
|
|
2008-04-03 03:44:39 -04:00
|
|
|
VERSION= 1.34.1
|
2006-11-05 14:20:41 -05:00
|
|
|
DISTNAME= boost_${VERSION:S/./_/g}
|
|
|
|
|
2008-04-03 03:44:39 -04:00
|
|
|
SO_VERSION= 1.0
|
|
|
|
BOOST_LIBS= boost_date_time boost_date_time-mt \
|
|
|
|
boost_filesystem boost_filesystem-mt \
|
|
|
|
boost_graph boost_graph-mt \
|
|
|
|
boost_iostreams boost_iostreams-mt \
|
|
|
|
boost_prg_exec_monitor boost_prg_exec_monitor-mt \
|
|
|
|
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 \
|
|
|
|
boost_thread-mt \
|
|
|
|
boost_unit_test_framework boost_unit_test_framework-mt \
|
|
|
|
boost_wave boost_wave-mt
|
|
|
|
.for _lib in ${BOOST_LIBS}
|
|
|
|
SHARED_LIBS+= ${_lib} ${SO_VERSION}
|
|
|
|
.endfor
|
2006-11-05 14:20:41 -05:00
|
|
|
|
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.boost.org/
|
|
|
|
|
2006-12-11 16:42:30 -05:00
|
|
|
MAINTAINER= Deanna Phillips <deanna@openbsd.org>
|
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
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=boost/}
|
|
|
|
|
|
|
|
MAKE_ENV= GCC="${CC}" GXX="${CXX}"
|
2008-04-03 03:44:39 -04:00
|
|
|
CONFIGURE_ENV= BJAM_CONFIG="-sNO_BZIP2=1 -sSO_VERSION=${SO_VERSION}"
|
2006-11-05 14:20:41 -05:00
|
|
|
|
|
|
|
REGRESS_TARGET= check
|
|
|
|
|
2007-12-18 15:46:03 -05:00
|
|
|
WANTLIB= z c
|
2006-11-13 16:52:52 -05:00
|
|
|
|
2008-01-05 19:01:15 -05:00
|
|
|
MODULES= lang/python
|
|
|
|
MODPY_RUNDEP= No
|
|
|
|
|
|
|
|
# python.port.mk makes assumptions about an empty CONFIGURE_STYLE
|
|
|
|
CONFIGURE_STYLE=none
|
|
|
|
|
2006-11-05 14:20:41 -05:00
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC}/libs/config && \
|
2006-11-07 05:55:43 -05:00
|
|
|
${SETENV} ${CONFIGURE_ENV} /bin/sh ./configure && \
|
2006-11-13 16:52:52 -05:00
|
|
|
cp user.hpp ${WRKSRC}/boost/config
|
2006-11-05 14:20:41 -05:00
|
|
|
|
2006-11-13 16:52:52 -05:00
|
|
|
post-configure:
|
2006-11-07 05:55:43 -05:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} /bin/sh ./configure \
|
2008-01-05 19:01:15 -05:00
|
|
|
--with-python=${MODPY_BIN} \
|
|
|
|
--with-python-root=${LOCALBASE} \
|
2008-04-10 16:06:52 -04:00
|
|
|
--with-python-version=${MODPY_VERSION} \
|
|
|
|
--without-icu
|
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 \
|
2006-11-05 14:20:41 -05:00
|
|
|
${PREFIX}/bin
|
|
|
|
|
2007-01-07 17:20:20 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/stage/lib/lib!(*.so) ${PREFIX}/lib
|
2006-11-05 14:20:41 -05:00
|
|
|
|
2006-11-13 16:52:52 -05:00
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
find boost -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/include/{} \;
|
|
|
|
@cd ${WRKSRC} && \
|
2008-04-03 03:44:39 -04:00
|
|
|
find boost ! -name \*.orig -type f -exec ${INSTALL_DATA} {} ${PREFIX}/include/{} \;
|
2006-11-05 14:20:41 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|