From f675dec3cb71453ace20ac92a64e048330caa490 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 15 Aug 2017 21:01:45 +0100 Subject: Add bjaminstall --- eclass/bjam.eclass | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'eclass') diff --git a/eclass/bjam.eclass b/eclass/bjam.eclass index ea1e9ef..c9d384e 100644 --- a/eclass/bjam.eclass +++ b/eclass/bjam.eclass @@ -24,6 +24,30 @@ bjambuild() { setarch $(uname -m) -RL b2 ${BJAMOPTS} variant=release -q $@ || die } +bjaminstall() { + local -a other + local include + include=${PN} + while [[ $# -gt 0 ]] ; do + case "$1" in + -i|--include) + include=$2 + shift + ;; + *) + other+=( $1 ) + ;; + esac + shift + done + + bjambuild \ + --prefix="${D}/usr" \ + --libdir="${D}/usr/$(get_libdir)" \ + --includedir="${D}/usr/include/$include" \ + ${other[@]} +} + doxygenbuild() { mkdir -p ${D}/usr/share/man find ${S} -name Doxyfile -printf '%h %p\n' | while read d p ; do -- cgit v1.2.3