Code: Select all
diff --git a/kadu-core/CMakeLists.txt b/kadu-core/CMakeLists.txt
index 28091d8..5384211 100644
--- a/kadu-core/CMakeLists.txt
+++ b/kadu-core/CMakeLists.txt
@@ -34,6 +34,9 @@ if (NOT NETWORK_IMPLEMENTATION)
set (NETWORK_IMPLEMENTATION "Qt" CACHE STRING "Select network-aware implementation (Qt/ntrack/dummy)" FORCE)
message (STATUS "No NETWORK_IMPLEMENTATION defined. Autodetected implementation: Qt")
endif (QNTRACK_FOUND)
+elseif (${NETWORK_IMPLEMENTATION} STREQUAL "ntrack")
+ set (QNtrack_FIND_REQUIRED true)
+ include (FindQNtrack)
endif (NOT NETWORK_IMPLEMENTATION)
set (kadu_SRCSCode: Select all
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit kadu
DESCRIPTION="The core of Kadu IM"
HOMEPAGE="http://kadu.net"
KEYWORDS=""
IUSE="ayatana +ntrack"
RDEPEND="app-crypt/qca:2
>=x11-libs/qt-gui-4.7.0
>=x11-libs/qt-webkit-4.7.0
>=x11-libs/qt-dbus-4.7.0
>=x11-libs/qt-svg-4.7.0
x11-libs/libXfixes
ayatana? ( dev-libs/libindicate-qt )
ntrack? ( >=net-libs/ntrack-0.14[qt4] )"
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}/${P}-cmake.patch"
"${FILESDIR}/${P}-cmake2.patch" )
src_configure() {
# Disable plugins
local mycmakeargs="-DBUILD_PLUGINS:BOOL=OFF"
use ayatana && mycmakeargs="${mycmakeargs} -DWITH_LIBINDICATE_QT:BOOL=ON"
if use ntrack ; then
mycmakeargs="${mycmakeargs} -DNETWORK_IMPLEMENTATION:STRING='ntrack'"
else
mycmakeargs="${mycmakeargs} -DNETWORK_IMPLEMENTATION:STRING='Qt'"
fi
kadu_src_configure
}
pkg_postinst() {
ewarn "If you rebuilt the core by hand, recompiling the modules is advised."
ewarn "You may do so by using emerge -1av \$(qlist -I -C net-im/kadu-)"
ewarn "This requires app-portage/portage-utils to be installed."
}
No i kawałek configure
Code: Select all
>>> Emerging (1 of 1) net-im/kadu-core-0.11.0_beta1 from roslin
* kadu-0.11.0-beta1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking kadu-0.11.0-beta1.tar.bz2 to /var/tmp/portage/net-im/kadu-core-0.11.0_beta1/work
>>> Source unpacked in /var/tmp/portage/net-im/kadu-core-0.11.0_beta1/work
>>> Preparing source in /var/tmp/portage/net-im/kadu-core-0.11.0_beta1/work/kadu-0.11.0-beta1 ...
* Applying kadu-core-0.11.0_beta1-cmake.patch ... [ ok ]
* Applying kadu-core-0.11.0_beta1-cmake2.patch ... [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-im/kadu-core-0.11.0_beta1/work/kadu-0.11.0-beta1 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/net-im/kadu-core-0.11.0_beta1/work/kadu-core-0.11.0_beta1_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/net-im/kadu-core-0.11.0_beta1/temp/gentoo_common_config.cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_PLUGINS:BOOL=OFF -DNETWORK_IMPLEMENTATION:STRING='ntrack' -DBUILD_DESCRIPTION:STRING='Gentoo Linux' -DENABLE_AUTODOWNLOAD:BOOL=OFF -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/net-im/kadu-core-0.11.0_beta1/temp/gentoo_rules.cmake /var/tmp/portage/net-im/kadu-core-0.11.0_beta1/work/kadu-0.11.0-beta1
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/net-im/kadu-core-0.11.0_beta1/temp/gentoo_common_config.cmake
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
fatal: Not a git repository (or any of the parent directories): .git
-- Looking for include files HAVE_EXECINFO
-- Looking for include files HAVE_EXECINFO - found
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake (found suitable version "4.7.4", required is "4.7.0")
-- Found Kadu headers: /usr/include/kadu/kadu
-- Fast linking enabled
-- checking for one of the modules 'indicate-qt'
-- libindicate-qt devel NOT FOUND. Disabling Ayatana support
-- Found QNtrack: /usr/lib64/libntrack-qt4.so
-- checking for one of the modules 'qca2'
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Found X11 libraries: /usr/lib64/libX11.so
-- Found X11 Xfixes extension: /usr/lib64/libXfixes.so
-- Using ntrack network implementation
-- Emoticon theme: penguins
-- Emoticon theme: tango
-- Icon theme: default
-- Icon theme: glass
-- Icon theme: oxygen
-- Sound theme: default
-- Kadu (version: 0.11.0-beta1) will be built:
-- * install prefix: /usr
-- * build type: Gentoo
-- <<< Gentoo configuration >>>
Build type Gentoo
Install path /usr
Compiler flags:
C -Wall -Wextra -Wstrict-aliasing=2 -march=core2 -O2 -pipe
C++ -Wall -Wextra -Woverloaded-virtual -Wstrict-aliasing=2 -march=core2 -O2 -pipe
Linker flags:
Executable -Wl,-O1 -Wl,--as-needed
Module -Wl,-O1 -Wl,--as-needed
Shared -Wl,-O1 -Wl,--as-needed
-- Configuring done





