From 7baacd2bb2b5276d5c9d38d90050383a5a34b6cc Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Fri, 20 Feb 2004 05:32:21 +0000 Subject: upgrade to 1.31.0 - builds the most recent boost version (1.31.0) - respects PTHREAD_{CFLAGS, LIBS} (credits for the PTHREAD_LIBS part go to Craig Rodrigues ) - builds all boost libraries - installs docs into DOCSDIR, and examples into EXAMPLESDIR (as before), but the hyperlinks to the example files are corrected (pls. report if you find some broken links) - has new various tunable options, such as o WITH_DEBUG o WITHOUT_THREAD o WITH_OPTIMIZED_CFLAGS o VERBOSE_BUILD - forced major numbers for shared libraries (everything defaults to .so.1, and is symlinked to .so) - installs the possible versions of the libraries (w/ or w/o debugging or threading support) with the same suffix- and prefix-less name, e.g. instead of libboost_filesystem-gcc-debug-s.so.1 (the gcc toolset, debugging info and single threaded) and libboost_filesystem-gcc-m.so.1 (gcc toolset, release version, multi threaded), there now is only libboost_filesystem.so.1. PR: 63100 Submitted by: maintainer --- devel/boost/scripts/do-install | 53 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 devel/boost/scripts/do-install (limited to 'devel/boost/scripts') diff --git a/devel/boost/scripts/do-install b/devel/boost/scripts/do-install new file mode 100644 index 000000000000..1e9cf6dc4126 --- /dev/null +++ b/devel/boost/scripts/do-install @@ -0,0 +1,53 @@ +#!/bin/sh + +# Fix links to example files +cd ${WRKSRC}/libs && for dir in *; do + if [ -d $dir/doc ]; then + for file in $dir/doc/*; do + ${GREP} -s -q '\.\./example/' $file && \ + ${REINPLACE_CMD} -e\ + "s|../example/|${PREFIX}/share/examples/boost/$dir/|g" $file + done; + fi; +done; + +# Install bjam tool +${BSD_INSTALL_PROGRAM} ${BJAM} ${PREFIX}/bin/ + +# Install libraries +${FIND} ${WRKSRC}/bin/boost/libs -type f -name "*.a"\ + -exec ${BSD_INSTALL_DATA} \{\} ${PREFIX}/lib \; + +${FIND} ${WRKSRC}/bin/boost/libs -type f -name "*.so.1"\ + -exec ${BSD_INSTALL_DATA} \{\} ${PREFIX}/lib \; + +# Create symlinks for shared libraries +cd ${PREFIX}/lib; +for i in libboost*.so.1; do + ${LN} -s $i ${i%%.1}; +done; + +# Install headers +cd ${WRKSRC} && ${FIND} boost -type d\ + -exec ${MKDIR} ${PREFIX}/include/\{\} \; +cd ${WRKSRC} && ${FIND} boost -type f\ + -exec ${BSD_INSTALL_DATA} \{\} ${PREFIX}/include/\{\} \; + +# Documentation & examples +if [ -n ${NOPORTDOCS+xyz} ]; then + ${MKDIR} ${DOCSDIR} ${EXAMPLESDIR} + + ${FIND} ${WRKSRC} -type f -exec chmod 0444 {} \; + cd ${WRKSRC} &&\ + ${FIND} . -name "*.htm" -o -name "*.html" -o -name "*.css"\ + -o -name "*.jp*g" -o -name "*.png" -o -name "*.gif"\ + | ${TAR} cTf - - | ${TAR} xUCf ${DOCSDIR} - + + cd ${WRKSRC}/libs && for dir in *; do + if [ -d ${WRKSRC}/libs/${dir}/example ]; then + ${MKDIR} ${EXAMPLESDIR}/${dir}; + cd ${WRKSRC}/libs/${dir}/example && ${TAR} cf - * \ + | ${TAR} xUCf ${EXAMPLESDIR}/${dir} -; + fi; + done; +fi; -- cgit v1.2.3