blob: d561ae31929a06db907c5dad45c46107553f909f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
#
# Author: Hanno Meyer-Thurow
# Purpose: Serve paths to boost libraries & headers
#
inherit flag-o-matic multilib
# get_boost_library_path
get_boost_library_path() {
local version="$(grep -o -e "[0-9]_[0-9][0-9]" \
/usr/include/boost/version.hpp)"
local path="/usr/$(get_libdir)/boost-${version}"
[ -d "${path}" ] && echo -n "${path}"
}
# add_boost_library_path
add_boost_library_path() {
local path="$(get_boost_library_path)"
if [ "${path}" ] ; then
append-ldflags "-L${path}"
else
die "path not found! (${path})"
fi
}
# add_boost_paths: convenient wrapper
add_boost_paths() {
add_boost_library_path
}
|