summaryrefslogtreecommitdiff
path: root/devel/boost/scripts
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2004-02-20 05:32:21 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2004-02-20 05:32:21 +0000
commit7baacd2bb2b5276d5c9d38d90050383a5a34b6cc (patch)
tree9464fe87f1aade00cf93928a29509e92798272c4 /devel/boost/scripts
parentTie x11-themes into the build now that it contains some ports. (diff)
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 <rodrigc@crodrigues.org>) - 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
Notes
Notes: svn path=/head/; revision=101470
Diffstat (limited to 'devel/boost/scripts')
-rw-r--r--devel/boost/scripts/do-install53
1 files changed, 53 insertions, 0 deletions
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;