mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 11:33:15 -04:00
net-p2p/feather: try to build monero libs staticially
Closes: https://bugs.gentoo.org/884903 Signed-off-by: Adam Pimentel <adam.pimentel@protonmail.com>
This commit is contained in:
@@ -48,8 +48,11 @@ BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DBUILD_SHARED_LIBS=OFF
|
||||
-DARCH=x86-64
|
||||
-DBUILD_TAG="linux-x64"
|
||||
-DBUILD_64=ON
|
||||
-DSELF_CONTAINED=OFF
|
||||
-DLOCALMONERO=$(usex localmonero)
|
||||
-DXMRIG=$(usex xmrig)
|
||||
@@ -58,12 +61,28 @@ src_configure() {
|
||||
-DUSE_DEVICE_TREZOR=OFF
|
||||
-DDONATE_BEG=OFF
|
||||
-DWITH_SCANNER=$(usex qrcode)
|
||||
-DVERSION_IS_RELEASE=OFF
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
echo "#define FEATHER_VERSION \"${PV}\"" > "${WORKDIR}"/${PF}/src/config-feather.h || die
|
||||
echo "#define TOR_VERSION \"NOT_EMBEDDED\"" >> "${WORKDIR}"/${PF}/src/config-feather.h || die
|
||||
|
||||
sed -i 's/set(Boost_USE_STATIC_LIBS ON)/set(Boost_USE_STATIC_LIBS OFF)/g' \
|
||||
"${WORKDIR}"/${PF}/monero/CMakeLists.txt || die
|
||||
sed -i 's/set(Boost_USE_STATIC_RUNTIME ON)/set(Boost_USE_STATIC_RUNTIME OFF)/g' \
|
||||
"${WORKDIR}"/${PF}/monero/CMakeLists.txt || die
|
||||
|
||||
echo "set(STATIC ON)" > "${WORKDIR}"/${PF}/monero/CMakeLists.txt.2 || die
|
||||
cat "${WORKDIR}"/${PF}/monero/CMakeLists.txt >> "${WORKDIR}"/${PF}/monero/CMakeLists2.txt || die
|
||||
mv "${WORKDIR}"/${PF}/monero/CMakeLists2.txt "${WORKDIR}"/${PF}/monero/CMakeLists.txt || die
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_build feather
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user