2002-01-15 03:39:11 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: boost
|
|
|
|
# Date Created: 6 January 2002
|
|
|
|
# Whom: Paul Marquis <pmarquis@pobox.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= boost
|
2003-11-10 05:52:33 +00:00
|
|
|
PORTVERSION= 1.30.2
|
|
|
|
PORTREVISION= 0
|
2002-01-15 03:39:11 +00:00
|
|
|
CATEGORIES= devel
|
2003-07-18 14:13:11 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR=${PORTNAME}
|
2003-11-10 05:52:33 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
2002-01-15 03:39:11 +00:00
|
|
|
|
|
|
|
MAINTAINER= pmarquis@pobox.com
|
2003-02-21 11:23:04 +00:00
|
|
|
COMMENT= Free peer-reviewed portable C++ source libraries
|
2002-01-15 03:39:11 +00:00
|
|
|
|
2003-11-20 16:11:52 +00:00
|
|
|
MAKE_ENV= BOOST_ROOT=${WRKSRC} BUILD="debug release"
|
2003-11-10 05:52:33 +00:00
|
|
|
|
|
|
|
.if defined(WITH_PYTHON)
|
2002-01-15 03:39:11 +00:00
|
|
|
USE_PYTHON= yes
|
2003-11-10 05:52:33 +00:00
|
|
|
# 1.30.2 doesn't support python2.3
|
|
|
|
PYTHON_VERSION= python2.2
|
2003-11-20 16:11:52 +00:00
|
|
|
COMPILED_LIBS= python
|
|
|
|
PLIST_SUB= BOOST_PYTHON=""
|
|
|
|
MAKE_ENV+= PYTHON_ROOT="${PREFIX}" \
|
|
|
|
PYTHON_VERSION="${_PYTHON_VERSION}" \
|
|
|
|
PYTHON_INCLUDES="${PYTHON_INCLUDEDIR}" \
|
|
|
|
PYTHON_LIB_PATH="${PYTHON_LIBDIR}"
|
2003-11-10 05:52:33 +00:00
|
|
|
.else
|
2003-11-20 16:11:52 +00:00
|
|
|
PLIST_SUB= BOOST_PYTHON="@comment "
|
2002-05-23 15:07:59 +00:00
|
|
|
.endif
|
2003-11-10 05:52:33 +00:00
|
|
|
|
2002-01-15 03:39:11 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2002-11-06 13:54:17 +00:00
|
|
|
DOCFILES= *.css *.gif *.htm *.html *.jpeg *.jpg *.png
|
2003-11-10 05:52:33 +00:00
|
|
|
|
2003-12-28 11:10:42 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == alpha
|
|
|
|
BJAM= ${WRKSRC}/tools/build/jam_src/bin.freebsdaxp/bjam
|
|
|
|
.elif ${ARCH} == sparc64
|
|
|
|
BJAM= ${WRKSRC}/tools/build/jam_src/bin.freebsdsparc/bjam
|
|
|
|
.else
|
2003-07-18 14:13:11 +00:00
|
|
|
BJAM= ${WRKSRC}/tools/build/jam_src/bin.freebsd/bjam
|
2003-12-28 11:10:42 +00:00
|
|
|
.endif
|
2003-11-10 05:52:33 +00:00
|
|
|
|
|
|
|
COMPILED_LIBS+= date_time filesystem regex signals test thread
|
2003-07-18 14:13:11 +00:00
|
|
|
|
2003-11-20 16:11:52 +00:00
|
|
|
|
2003-07-18 14:13:11 +00:00
|
|
|
do-configure:
|
2003-11-10 05:52:33 +00:00
|
|
|
# for -pthread options
|
|
|
|
.if ${OSVERSION} >= 500016
|
|
|
|
cd ${WRKSRC} && patch < ${FILESDIR}/gcc-tools.jam.diff
|
|
|
|
.endif
|
2002-01-15 03:39:11 +00:00
|
|
|
|
|
|
|
do-build:
|
2003-07-18 14:13:11 +00:00
|
|
|
cd ${WRKSRC}/tools/build/jam_src && ./build.sh gcc
|
2002-11-06 13:54:17 +00:00
|
|
|
.for lib in ${COMPILED_LIBS}
|
2003-07-18 14:13:11 +00:00
|
|
|
cd ${WRKSRC}/libs/${lib}/build && ${SETENV} ${MAKE_ENV} ${BJAM} ${BJAM_FLAGS}
|
2002-11-06 13:54:17 +00:00
|
|
|
.endfor
|
2002-01-15 03:39:11 +00:00
|
|
|
|
|
|
|
do-install:
|
2003-07-18 14:13:11 +00:00
|
|
|
${INSTALL_PROGRAM} ${BJAM} ${PREFIX}/bin/
|
|
|
|
cd ${WRKSRC} && ${FIND} libs -type f -name \*.a -exec ${INSTALL_DATA} \{\} ${PREFIX}/lib \;
|
|
|
|
cd ${WRKSRC} && ${FIND} libs -type f -name \*.so -exec ${INSTALL_PROGRAM} \{\} ${PREFIX}/lib \;
|
|
|
|
cd ${WRKSRC} && ${FIND} boost -type d -exec ${MKDIR} ${PREFIX}/include/\{\} \;
|
|
|
|
cd ${WRKSRC} && ${FIND} boost -type f -exec ${INSTALL_DATA} \{\} ${PREFIX}/include/\{\} \;
|
2002-01-15 03:39:11 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-11-06 13:54:17 +00:00
|
|
|
${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
|
2003-07-18 14:13:11 +00:00
|
|
|
cd ${WRKSRC} && ${FIND} * -type f \( -name \*.htm ${DOCFILES:S/^/-o -name \\/} \) | ${TAR} cTf - - | ${TAR} xUCf ${DOCSDIR} -
|
|
|
|
cd ${WRKSRC} && ${FIND} libs -type d -name example\* | ${TAR} cTf - - | ${TAR} xUCf ${EXAMPLESDIR} -
|
2002-01-15 03:39:11 +00:00
|
|
|
.endif
|
|
|
|
|
2003-11-10 05:52:33 +00:00
|
|
|
.include <bsd.port.post.mk>
|