opencv: update rule to compile lib with tbb options.
This commit is contained in:
parent
f939911a81
commit
b220ad99c7
@ -15,14 +15,22 @@ md5=\
|
||||
|
||||
requires=\
|
||||
(
|
||||
'cmake/host'
|
||||
'ffmpeg/default'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Renato Caldas <rmsc@fe.up.pt>'
|
||||
'Pedro Gonçalves <pedro@fe.up.pt>'
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
wget "http://lsts.pt/glued/tbb43_20141204oss_src.tgz"
|
||||
mv tbb43_20141204oss_src.tgz "3rdparty/tbb/"
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
LINKER_ADDED_FLAGS="-Wl,-rpath,${cfg_dir_rootfs}/usr/lib"
|
||||
@ -47,13 +55,10 @@ configure()
|
||||
-DBUILD_EXAMPLES=OFF \
|
||||
-DBUILD_PERF_TESTS=OFF \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DBUILD_ZLIB=ON \
|
||||
-DBUILD_PNG=ON \
|
||||
-DWITH_1394=ON \
|
||||
-DWITH_JPEG=ON \
|
||||
-DWITH_PNG=ON \
|
||||
-DBUILD_TESTS=OFF \
|
||||
-DBUILD_WITH_DEBUG_INFO=ON \
|
||||
-DBUILD_WITH_DEBUG_INFO=OFF \
|
||||
-DBUILD_TBB=ON \
|
||||
-DWITH_TBB=ON \
|
||||
../opencv-$version/
|
||||
}
|
||||
|
||||
@ -79,4 +84,7 @@ target_install()
|
||||
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
|
||||
fi
|
||||
done
|
||||
|
||||
$cmd_cp -r "${pkg_build_dir}/../build/lib/"libtbb.so "$cfg_dir_rootfs/usr/lib/"
|
||||
$cmd_cp -r "${pkg_build_dir}/../build/lib/"libtbb.so "$cfg_dir_toolchain_sysroot/usr/lib/"
|
||||
}
|
||||
|
Reference in New Issue
Block a user