# $Id$ PNAME="kdenetwork" PVER="4.10.5" PBUILD="r1" SPLIT_PACKAGES="kdenetwork-filesharing kdnssd kget kopete kppp krdc krfb" # todo: kwebkitpart, mediastreamer # # kget deps: # torrent support needs qca & gmp # # kopete plugins with deps # latex: latex as runtime depend # statistics: sqlite-3 # webpresence: libxml2, libxslt # # kopete protocols with deps # gadu: openssl, libgadu # groupwise: qca-2 # irc: NO DEPS, probably will fail so inform user about it # jabber: libidn, qca-2 # jingle: speex, ortp # meanwhile: meanwhile # msn: libmsn == this is wlm plugin, we disable msn one # telepathy: net-libs/decibel # webcam support: libv4l # # disabled kopete protocols # telepathy: decibel # irc: NO DEPS # # krdc deps # krdc: jpeg, libvncserver, rdesktop # # krfb deps: # krfb: libvncserver, openslp, libXdamage # COMMON_DEPEND="== kde-base/kdelibs-${PVER}" RUNTIME_DEPEND="== kde-base/kdebase-runtime-${PVER}" PIMLIBS_DEPEND="== kde-base/kdepimlibs-${PVER}" QCA_DEPEND=">= app-crypt/qca-2" AVAHI_DEPEND=">= net-dns/avahi-qt4-0.6.31" JPEG_DEPEND=">= media-libs/libjpeg-8" ZLIB_DEPEND=">= sys-libs/zlib-1.2" FILESHARING_DEPEND="${COMMON_DEPEND} >= net-fs/samba-3.6" KDNSSD_DEPEND="${COMMON_DEPEND} ${AVAHI_DEPEND}" KGET_DEPEND="${COMMON_DEPEND} == kde-base/kdebase-workspace-${PVER} ${PIMLIBS_DEPEND} >= kde-base/libktorrent-1.3 ${QCA_DEPEND} >= dev-db/sqlite-3.7 >= dev-libs/libpcre-8.33" KOPETE_DEPEND="${COMMON_DEPEND} ${RUNTIME_DEPEND} ${PIMLIBS_DEPEND} >= virtual/phonon >= kde-base/qimageblitz-0.0.6 >= dev-libs/soprano-2.9 ${QCA_DEPEND} >= app-crypt/qca-ossl-2 >= dev-libs/glib2-2.36 >= dev-libs/libxml2-2.7 >= dev-libs/libxslt-1.1.26 >= media-libs/giflib-5 >= media-libs/libjasper-1.900 ${JPEG_DEPEND} >= media-libs/libv4l-0.9 >= media-libs/speex-1.1 >= net-dns/libidn-1.27 >= net-libs/libgadu-1.11 >= net-libs/libmsn-4.2 >= net-libs/libotr3-3.2 >= net-libs/meanwhile-1 >= net-libs/ortp-0.20 ${ZLIB_DEPEND} >= x11-libs/libXft-2.3 >= x11-libs/libXpm-3.5 >= x11-libs/libXScrnSaver-1" KPPP_DEPEND="${COMMON_DEPEND} ${RUNTIME_DEPEND} >= net-dialup/ppp-2.4.5" KRDC_DEPEND="${COMMON_DEPEND} ${RUNTIME_DEPEND} ${JPEG_DEPEND} ${AVAHI_DEPEND} >= net-libs/libvncserver-0.9 >= net-misc/rdesktop-1.7" KRFB_DEPEND="${COMMON_DEPEND} ${RUNTIME_DEPEND} ${JPEG_DEPEND} ${ZLIB_DEPEND} >= x11-libs/libXdamage-1" SDEPEND="${FILESHARING_DEPEND} ${KDNSSD_DEPEND} ${KGET_DEPEND} ${KOPETE_DEPEND} ${KPPP_DEPEND} ${KRDC_DEPEND} ${KRFB_DEPEND} >= dev-libs/boost-1.53 >= x11-proto/scrnsaverproto-1" sminclude kde4-split-2 SRC_URI+=( mirror://${PNAME}/${PNAME}-4.9.4-giflib5.patch mirror://${PNAME}/${PNAME}-4.9.4-libotr3.patch ) UP2DATE="updatecmd -listonly http://download.kde.org/stable/ | grep 'stable/[0-9]' | sed -n 's:.*/\([0-9].*\)/:\1:;$ p'" split_info_kdenetwork-filesharing() { DESCRIPTION="KDE4 network file sharing." DEPEND="${FILESHARING_DEPEND}" } split_info_kdnssd() { DESCRIPTION="Zeroconf DNS-SD services." DEPEND="${KDNSSD_DEPEND}" } split_info_kget() { DESCRIPTION="An advanced download manager for KDE4." DEPEND="${KGET_DEPEND}" } split_info_kopete() { DESCRIPTION="Instant Messaging client for KDE4." DEPEND="${KOPETE_DEPEND}" } split_info_kppp() { DESCRIPTION="KDE4 dialer and front end for pppd." DEPEND="${KPPP_DEPEND}" } split_info_krdc() { DESCRIPTION="KDE4 client for Desktop Sharing." DEPEND="${KRDC_DEPEND}" } split_info_krfb() { DESCRIPTION="KDE4 Desktop Sharing server via VNC." DEPEND="${KRFB_DEPEND}" } src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # giflib-5.x compat mpatch ${PNAME}-4.9.4-giflib5.patch || die # explicitly use libotr3 mpatch ${PNAME}-4.9.4-libotr3.patch || die } src_compile() { cd ${SRCDIR} local configure_common local configure_libs local configure_features # common opts configure_common="$(cmake_build kppp) \ $(cmake_with plasma) \ $(cmake_with Nepomuk) \ $(cmake_with Soprano)" # libs progs configure_libs="$(cmake_with Avahi) \ $(cmake_with DNSSD) \ $(cmake_with GMP) \ $(cmake_with IDN) \ $(cmake_with JPEG) \ $(cmake_with KTorrent) \ $(cmake_with Libgadu) \ $(cmake_with LibMeanwhile) \ $(cmake_with LibOTR) \ $(cmake_with Libmsn) \ $(cmake_with LibXml2) \ $(cmake_with LibXslt) \ $(cmake_with LibV4L2) \ $(cmake_with LibVNCServer) \ $(cmake_with OpenSSL) \ $(cmake_with QCA2) \ $(cmake_with Sqlite) \ $(cmake_with SLP) \ $(cmake_without Xmms)" # protocol and other features configure_features="$(cmake_with addbookmarks) \ $(cmake_with alias) \ $(cmake_with autoreplace) \ $(cmake_with bonjour) \ $(cmake_with contactnotes) \ $(cmake_with gadu) \ $(cmake_with groupwise) \ $(cmake_with highlight) \ $(cmake_with history) \ $(cmake_with jabber) \ $(cmake_with latex) \ $(cmake_with meanwhile) \ $(cmake_with nowlistening) \ $(cmake_with oscar) \ $(cmake_with otr) \ $(cmake_with privacy) \ $(cmake_with pipes) \ $(cmake_with qq) \ $(cmake_with sms) \ $(cmake_with statistics) \ $(cmake_with testbed) \ $(cmake_with texteffect) \ $(cmake_with translator) \ $(cmake_with urlpicpreview) \ $(cmake_with webpresence) \ $(cmake_with winpopup) \ $(cmake_with wlm) \ $(cmake_with yahoo) \ $(cmake_without irc) \ $(cmake_without msn) \ $(cmake_without telepathy)" kde4_configure ${configure_common} ${configure_libs} ${configure_features} || die mmake || die }