[52531] trunk/dports/devel/boost
nox at macports.org
nox at macports.org
Thu Jun 18 04:51:28 PDT 2009
Revision: 52531
http://trac.macports.org/changeset/52531
Author: nox at macports.org
Date: 2009-06-18 04:51:27 -0700 (Thu, 18 Jun 2009)
Log Message:
-----------
boost:
* Install headers in ${prefix}/include/boost.
* Add unversioned symlinks for each library.
* Specify macosx-version on Darwin PPC when universal variant is selected to enable use of -isysroot flag.
Modified Paths:
--------------
trunk/dports/devel/boost/Portfile
Added Paths:
-----------
trunk/dports/devel/boost/files/patch-Jamroot.diff
Modified: trunk/dports/devel/boost/Portfile
===================================================================
--- trunk/dports/devel/boost/Portfile 2009-06-18 08:54:06 UTC (rev 52530)
+++ trunk/dports/devel/boost/Portfile 2009-06-18 11:51:27 UTC (rev 52531)
@@ -1,10 +1,11 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id$
-PortSystem 1.0
+PortSystem 1.0
name boost
version 1.39.0
+revision 1
categories devel
platforms darwin
maintainers nox openmaintainer
@@ -20,11 +21,12 @@
distname ${name}_[join [split ${version} .] _]
use_bzip2 yes
-checksums md5 a17281fd88c48e0d866e1a12deecbcc0 \
+checksums md5 a17281fd88c48e0d866e1a12deecbcc0 \
sha1 6af42f74ab24ccc51589a025593bad298c8adde8 \
rmd160 4962256b48fa8563bf373b8bed97cc8655206a51
-patchfiles patch-libs-random-random_device.cpp.diff
+patchfiles patch-libs-random-random_device.cpp.diff \
+ patch-Jamroot.diff
post-extract {
file mkdir ${worksrcpath}/libs/random/build
@@ -58,16 +60,12 @@
use_parallel_build yes
pre-build {
- set jobs [option build.jobs]
+ set jobs ${build.jobs}
# if set to '0', use the number of cores for the number of jobs
if {${jobs} == 0} {
- if {[catch {set jobs [exec /usr/sbin/sysctl -n hw.availcpu]}]} {
- set jobs 2
- ui_warn "failed to determine the number of available CPUs (probably not supported on this platform)"
- ui_warn "defaulting to ${jobs} jobs, consider setting buildmakejobs to a nonzero value in macports.conf"
- }
+ set jobs [exec /usr/sbin/sysctl -n hw.availcpu]
}
- if {[string is integer -strict ${jobs}] || ${jobs} <= 1} {
+ if {[string is integer -strict ${jobs}] && ${jobs} > 1} {
build.pre_args-append -j${jobs}
}
}
@@ -79,6 +77,12 @@
eval destroot.args ${build.args}
}
+post-destroot {
+ foreach l [glob -type l -tails -directory ${destroot}${prefix}/lib libboost_*-mt.dylib] {
+ ln -sf ${prefix}/lib/${l} ${destroot}${prefix}/lib/[lindex [split ${l} -] 0].dylib
+ }
+}
+
set pythons_suffixes {24 25 26}
set pythons_ports {}
@@ -211,6 +215,9 @@
platform darwin ppc {
build.args-append --disable-long-double
+ if {[variant_isset universal]} {
+ build.args-append macosx-version=10.4
+ }
}
livecheck.regex <title>${name} (\\d+\\.\\d+\\.\\d+) released
Added: trunk/dports/devel/boost/files/patch-Jamroot.diff
===================================================================
--- trunk/dports/devel/boost/files/patch-Jamroot.diff (rev 0)
+++ trunk/dports/devel/boost/files/patch-Jamroot.diff 2009-06-18 11:51:27 UTC (rev 52531)
@@ -0,0 +1,19 @@
+--- Jamroot.orig 2009-06-18 02:10:59.000000000 +0200
++++ Jamroot 2009-06-18 02:11:55.000000000 +0200
+@@ -371,15 +371,8 @@
+ # Install to system location.
+
+ install-requirements = <install-source-root>$(BOOST_ROOT)/boost ;
++install-requirements += <install-header-subdir>boost ;
+
+-if $(layout-versioned)
+-{
+- install-requirements += <install-header-subdir>boost-$(BOOST_VERSION_TAG)/boost ;
+-}
+-else
+-{
+- install-requirements += <install-header-subdir>boost ;
+-}
+ if [ modules.peek : NT ]
+ {
+ install-requirements += <install-default-prefix>C:/Boost ;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090618/aa8e58cc/attachment.html>
More information about the macports-changes
mailing list