Lines 24-33
Link Here
|
24 |
# however, it is extremely unlikely that this 'const' would actually |
24 |
# however, it is extremely unlikely that this 'const' would actually |
25 |
# be relied on |
25 |
# be relied on |
26 |
SLOT="0/r131" |
26 |
SLOT="0/r131" |
27 |
IUSE="static-libs" |
27 |
IUSE="static-libs xxhash" |
28 |
|
28 |
|
29 |
CMAKE_USE_DIR=${S}/contrib/cmake_unofficial |
29 |
CMAKE_USE_DIR=${S}/contrib/cmake_unofficial |
30 |
|
30 |
|
|
|
31 |
src_prepare() { |
32 |
if use xxhash; then |
33 |
sed -e 's|"${LZ4_LIB_SOURCE_DIR}/lz4hc.h"|"${LZ4_LIB_SOURCE_DIR}/lz4hc.h"\n "${LZ4_LIB_SOURCE_DIR}/xxhash.h"|g' \ |
34 |
-i ${CMAKE_USE_DIR}/CMakeLists.txt |
35 |
fi |
36 |
eapply_user |
37 |
} |
38 |
|
31 |
multilib_src_configure() { |
39 |
multilib_src_configure() { |
32 |
local mycmakeargs=( |
40 |
local mycmakeargs=( |
33 |
-DBUILD_STATIC_LIBS=$(usex static-libs) |
41 |
-DBUILD_STATIC_LIBS=$(usex static-libs) |